Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Continuous_InitialOutput.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialOutput,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.176/2.176, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005889/0.000589, allocations: 12 kB / 314.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3266, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialOutput): time 0.004549/0.3313, allocations: 2.657 MB / 371.9 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003522/0.3348, allocations: 1.396 MB / 373.3 MB, free: 6.645 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003204/0.3352, allocations: 11.94 kB / 373.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004455/0.3356, allocations: 91.34 kB / 373.4 MB, free: 6.543 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006342/0.3363, allocations: 175.5 kB / 373.6 MB, free: 6.371 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.3377, allocations: 391.2 kB / 374 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.339, allocations: 0.62 MB / 374.6 MB, free: 5.367 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003916/0.3394, allocations: 164.8 kB / 374.8 MB, free: 5.203 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005979/0.34, allocations: 302.8 kB / 375.1 MB, free: 4.906 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005974/0.3406, allocations: 314.5 kB / 375.4 MB, free: 4.598 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.652e-05/0.3407, allocations: 20 kB / 375.4 MB, free: 4.578 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003063/0.3411, allocations: 107.8 kB / 375.5 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002275/0.3413, allocations: 147.4 kB / 375.6 MB, free: 4.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.3415, allocations: 125.3 kB / 375.7 MB, free: 4.199 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008987/0.3424, allocations: 0.5855 MB / 376.3 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.3424, allocations: 0 / 376.3 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3424, allocations: 0 / 376.3 MB, free: 3.613 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.3424, allocations: 0 / 376.3 MB, free: 3.613 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.003234/0.3457, allocations: 1.016 MB / 377.4 MB, free: 2.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3457, allocations: 8.031 kB / 377.4 MB, free: 2.539 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.3459, allocations: 78.52 kB / 377.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.3461, allocations: 86.97 kB / 377.5 MB, free: 2.367 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.3473, allocations: 0.4908 MB / 378 MB, free: 1.832 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.3474, allocations: 37 kB / 378 MB, free: 1.793 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.3475, allocations: 51.91 kB / 378.1 MB, free: 1.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.3492, allocations: 0.5404 MB / 378.6 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.3493, allocations: 0 / 378.6 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.949e-05/0.3493, allocations: 23.95 kB / 378.7 MB, free: 1.152 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.3494, allocations: 12 kB / 378.7 MB, free: 1.141 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001848/0.3512, allocations: 465.9 kB / 379.1 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005047/0.3563, allocations: 1.943 MB / 381.1 MB, free: 14.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.3582, allocations: 0.5445 MB / 381.6 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.101e-05/0.3583, allocations: 4 kB / 381.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.3584, allocations: 38.78 kB / 381.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.916e-06/0.3584, allocations: 4 kB / 381.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.004193/0.3626, allocations: 1.168 MB / 382.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/0.3627, allocations: 132.5 kB / 383 MB, free: 12.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.364, allocations: 0.5939 MB / 383.6 MB, free: 12.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.912e-05/0.364, allocations: 37.7 kB / 383.6 MB, free: 12.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.3644, allocations: 339 kB / 383.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/0.3646, allocations: 177.4 kB / 384.1 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.3646, allocations: 12 kB / 384.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3648, allocations: 330.8 kB / 384.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.366, allocations: 296.9 kB / 384.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.3672, allocations: 396.8 kB / 385.1 MB, free: 10.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001223/0.3685, allocations: 316.2 kB / 385.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/0.3685, allocations: 8 kB / 385.4 MB, free: 10.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002718/0.3712, allocations: 0.7479 MB / 386.2 MB, free: 9.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.3714, allocations: 178.9 kB / 386.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.3714, allocations: 0 / 386.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.3714, allocations: 8 kB / 386.4 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00162/0.3731, allocations: 199.8 kB / 386.5 MB, free: 9.004 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.3731, allocations: 7.984 kB / 386.6 MB, free: 8.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009134/0.374, allocations: 83.64 kB / 386.6 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.3741, allocations: 27.94 kB / 386.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.636e-06/0.3741, allocations: 4 kB / 386.7 MB, free: 8.883 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002418/0.3766, allocations: 0.6713 MB / 387.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3766, allocations: 4.281 kB / 387.3 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.3766, allocations: 12 kB / 387.4 MB, free: 8.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001522/0.3781, allocations: 183.8 kB / 387.5 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.3782, allocations: 11.92 kB / 387.5 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005944/0.3788, allocations: 71.56 kB / 387.6 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.338e-05/0.3789, allocations: 24 kB / 387.6 MB, free: 7.91 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000435/0.3793, allocations: 273 kB / 387.9 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/0.3795, allocations: 75.16 kB / 388 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002255/0.3798, allocations: 85.62 kB / 388.1 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.3798, allocations: 8 kB / 388.1 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3798, allocations: 0 / 388.1 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.3798, allocations: 3.984 kB / 388.1 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.383, allocations: 1.253 MB / 389.3 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.383, allocations: 8.016 kB / 389.3 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001283/0.3843, allocations: 111.9 kB / 389.4 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.3843, allocations: 7.938 kB / 389.5 MB, free: 6.016 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.406e-05/0.3844, allocations: 19.98 kB / 389.5 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.3844, allocations: 4 kB / 389.5 MB, free: 5.992 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.3844, allocations: 4 kB / 389.5 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003586/0.388, allocations: 1.208 MB / 390.7 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.3884, allocations: 196.2 kB / 390.9 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.3885, allocations: 16 kB / 390.9 MB, free: 4.527 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009395/0.3895, allocations: 59.94 kB / 391 MB, free: 4.469 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.3897, allocations: 43.8 kB / 391 MB, free: 4.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.881e-05/0.3897, allocations: 12 kB / 391 MB, free: 4.414 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009793/0.3907, allocations: 423 kB / 391.4 MB, free: 4.004 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3907, allocations: 4 kB / 391.4 MB, free: 4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001092/0.3918, allocations: 204 kB / 391.6 MB, free: 3.801 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004206/0.3961, allocations: 1.812 MB / 393.4 MB, free: 1.953 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.3998, allocations: 0.9847 MB / 394.4 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3999, allocations: 0 / 394.4 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.4011, allocations: 315.8 kB / 394.7 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.4024, allocations: 152.8 kB / 394.9 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.4146, allocations: 4.667 MB / 399.5 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008192/0.4155, allocations: 0.9416 MB / 400.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.4162, allocations: 235.4 kB / 400.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.4162, allocations: 0 / 400.7 MB, free: 10.54 MB / 330.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning generated. clang++ -shared -o ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.so OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2" -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputCalcHelperMain.o: In function `Functions::Modelica_Math_Matrices_LAPACK_dgglse__vec(BaseArray&, BaseArray&, BaseArray&, BaseArray&, Modelica_Math_Matrices_LAPACK_dgglse__vecType&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Continuous_InitialOutput/./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutputFunctions.cpp:101: undefined reference to `dgglse_' clang: error: linker command failed with exit code 1 (use -v to see invocation) ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu' failed make: *** [ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Continuous_InitialOutput.fmu] Error 1