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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.485/2.485, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.061e-05/2.071e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3508, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1713/0.5222, allocations: 89.39 MB / 447.5 MB, free: 5.336 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003192/0.5226, allocations: 63.97 kB / 447.6 MB, free: 5.273 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5604/1.083, allocations: 27.42 MB / 475 MB, free: 96.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/1.083, allocations: 3.531 kB / 475 MB, free: 96.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001015/1.083, allocations: 22.25 kB / 475 MB, free: 96.86 MB / 394.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.01563/1.099, allocations: 0.9228 MB / 475.9 MB, free: 96.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/1.099, allocations: 13.31 kB / 476 MB, free: 96.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005043/1.099, allocations: 80.09 kB / 476 MB, free: 96.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/1.102, allocations: 0.5435 MB / 476.6 MB, free: 95.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.972e-05/1.102, allocations: 9.969 kB / 476.6 MB, free: 95.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/1.102, allocations: 34.81 kB / 476.6 MB, free: 95.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001297/1.103, allocations: 310.6 kB / 476.9 MB, free: 95.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/1.105, allocations: 419.5 kB / 477.3 MB, free: 95.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/1.105, allocations: 3.531 kB / 477.3 MB, free: 95.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-05/1.105, allocations: 3.219 kB / 477.3 MB, free: 95.88 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/1.105, allocations: 11.81 kB / 477.4 MB, free: 95.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01639/1.121, allocations: 1.833 MB / 479.2 MB, free: 95.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000943/1.122, allocations: 410.7 kB / 479.6 MB, free: 95.08 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000401/1.123, allocations: 189.2 kB / 479.8 MB, free: 94.99 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.059e-05/1.123, allocations: 9.531 kB / 479.8 MB, free: 94.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/1.123, allocations: 40.84 kB / 479.8 MB, free: 94.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=44): time 3.386e-06/1.123, allocations: 3.344 kB / 479.8 MB, free: 94.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.001922/1.125, allocations: 0.7244 MB / 480.6 MB, free: 94.56 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/1.125, allocations: 106.8 kB / 480.7 MB, free: 94.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007052/1.126, allocations: 459.4 kB / 481.1 MB, free: 94.21 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001119/1.126, allocations: 25.7 kB / 481.1 MB, free: 94.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/1.126, allocations: 333.8 kB / 481.5 MB, free: 93.88 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/1.126, allocations: 175.5 kB / 481.6 MB, free: 93.74 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.717e-05/1.126, allocations: 3.438 kB / 481.6 MB, free: 93.74 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.38e-05/1.126, allocations: 329.9 kB / 482 MB, free: 93.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/1.127, allocations: 190.4 kB / 482.1 MB, free: 93.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004976/1.127, allocations: 287 kB / 482.4 MB, free: 93.17 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006479/1.128, allocations: 232.5 kB / 482.6 MB, free: 93.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/1.128, allocations: 0 / 482.6 MB, free: 93.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001315/1.129, allocations: 0.5251 MB / 483.2 MB, free: 92.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000235/1.13, allocations: 1.058 MB / 484.2 MB, free: 91.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/1.13, allocations: 7.453 kB / 484.2 MB, free: 91.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/1.13, allocations: 6.75 kB / 484.2 MB, free: 91.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/1.131, allocations: 196.2 kB / 484.4 MB, free: 91.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/1.131, allocations: 6.5 kB / 484.4 MB, free: 91.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000976/1.132, allocations: 72.03 kB / 484.5 MB, free: 91.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.647e-05/1.133, allocations: 19.34 kB / 484.5 MB, free: 91.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/1.133, allocations: 6.594 kB / 484.5 MB, free: 91.73 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001328/1.134, allocations: 482.2 kB / 485 MB, free: 91.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/1.134, allocations: 2.781 kB / 485 MB, free: 91.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/1.134, allocations: 6.625 kB / 485 MB, free: 91.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/1.136, allocations: 192.7 kB / 485.2 MB, free: 91.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/1.136, allocations: 6.25 kB / 485.2 MB, free: 91.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005833/1.136, allocations: 62.17 kB / 485.3 MB, free: 91.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/1.136, allocations: 21.56 kB / 485.3 MB, free: 91.54 MB / 394.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 () * 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.0001909/1.137, allocations: 115.9 kB / 485.4 MB, free: 91.42 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001136/1.138, allocations: 440.8 kB / 485.8 MB, free: 91.24 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/1.138, allocations: 69.08 kB / 485.9 MB, free: 91.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/1.138, allocations: 79.83 kB / 486 MB, free: 91.15 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/1.138, allocations: 11.66 kB / 486 MB, free: 91.15 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/1.138, allocations: 0 / 486 MB, free: 91.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/1.138, allocations: 7.406 kB / 486 MB, free: 91.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/1.14, allocations: 1.072 MB / 487.1 MB, free: 90.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.14, allocations: 0 / 487.1 MB, free: 90.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/1.142, allocations: 117.5 kB / 487.2 MB, free: 90.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.19e-05/1.142, allocations: 3.406 kB / 487.2 MB, free: 90.53 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.9e-05/1.142, allocations: 14.45 kB / 487.2 MB, free: 90.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/1.142, allocations: 7.844 kB / 487.2 MB, free: 90.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/1.142, allocations: 3.953 kB / 487.2 MB, free: 90.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/1.143, allocations: 0.984 MB / 488.2 MB, free: 89.89 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003357/1.144, allocations: 185.3 kB / 488.4 MB, free: 89.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/1.144, allocations: 11.03 kB / 488.4 MB, free: 89.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009605/1.145, allocations: 43.88 kB / 488.4 MB, free: 89.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/1.145, allocations: 51.2 kB / 488.5 MB, free: 89.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.731e-05/1.145, allocations: 13.19 kB / 488.5 MB, free: 89.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005731/1.146, allocations: 350.6 kB / 488.8 MB, free: 89.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.146, allocations: 0 / 488.8 MB, free: 89.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001174/1.147, allocations: 197.4 kB / 489 MB, free: 89.52 MB / 394.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 () * 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.002173/1.149, allocations: 1.851 MB / 490.9 MB, free: 88.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001772/1.151, allocations: 0.7049 MB / 491.6 MB, free: 87.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.151, allocations: 0 / 491.6 MB, free: 87.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005057/1.151, allocations: 215 kB / 491.8 MB, free: 87.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/1.153, allocations: 151.4 kB / 491.9 MB, free: 87.24 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/1.157, allocations: 1.335 MB / 493.3 MB, free: 86.05 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/1.157, allocations: 0.9468 MB / 494.2 MB, free: 85.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006591/1.158, allocations: 238.4 kB / 494.5 MB, free: 84.97 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/1.158, allocations: 0 / 494.5 MB, free: 84.97 MB / 394.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=2 -DSUNDIALS_MINOR_VERSION=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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/OMCompiler/build/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/OMCompiler/build/lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2" -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:108: 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