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.387/2.387, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.235e-05/3.249e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3884, allocations: 54.85 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1672/0.5556, allocations: 90.06 MB / 454.7 MB, free: 6.398 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.5559, allocations: 63.97 kB / 454.7 MB, free: 6.336 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1422/0.6982, allocations: 27.61 MB / 482.3 MB, free: 10.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.6982, allocations: 3.938 kB / 482.3 MB, free: 10.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001393/0.6984, allocations: 23.88 kB / 482.4 MB, free: 10.64 MB / 410.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.004265/0.7027, allocations: 0.9113 MB / 483.3 MB, free: 9.684 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.717e-05/0.7028, allocations: 8.031 kB / 483.3 MB, free: 9.676 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000332/0.7031, allocations: 82.52 kB / 483.4 MB, free: 9.586 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004401/0.7036, allocations: 82.97 kB / 483.5 MB, free: 9.504 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002627/0.7062, allocations: 0.5465 MB / 484 MB, free: 8.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.409e-05/0.7064, allocations: 32.78 kB / 484 MB, free: 8.879 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.7066, allocations: 52 kB / 484.1 MB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.7084, allocations: 473.1 kB / 484.5 MB, free: 8.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.717e-05/0.7085, allocations: 3.906 kB / 484.5 MB, free: 8.336 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.285e-05/0.7086, allocations: 20 kB / 484.6 MB, free: 8.316 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.573e-05/0.7086, allocations: 13.03 kB / 484.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.7101, allocations: 342 kB / 484.9 MB, free: 7.969 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008052/0.7182, allocations: 1.92 MB / 486.8 MB, free: 5.973 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.72, allocations: 435.9 kB / 487.3 MB, free: 5.516 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008128/0.7209, allocations: 199 kB / 487.5 MB, free: 5.312 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.71e-05/0.721, allocations: 19.89 kB / 487.5 MB, free: 5.293 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.7211, allocations: 42.5 kB / 487.5 MB, free: 5.242 MB / 410.7 MB Notification: Performance of pre-optimization done (n=44): time 4.849e-06/0.7211, allocations: 1.406 kB / 487.5 MB, free: 5.242 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.003221/0.7243, allocations: 0.7503 MB / 488.3 MB, free: 4.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.7245, allocations: 110.8 kB / 488.4 MB, free: 4.348 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.7259, allocations: 0.4958 MB / 488.9 MB, free: 3.848 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001712/0.7261, allocations: 37.7 kB / 488.9 MB, free: 3.805 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004115/0.7265, allocations: 334.9 kB / 489.2 MB, free: 3.477 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.7269, allocations: 181.3 kB / 489.4 MB, free: 3.297 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.818e-05/0.727, allocations: 8 kB / 489.4 MB, free: 3.289 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.7272, allocations: 338.8 kB / 489.8 MB, free: 2.949 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008702/0.7281, allocations: 197.1 kB / 489.9 MB, free: 2.758 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009758/0.7291, allocations: 296.1 kB / 490.2 MB, free: 2.434 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000952/0.7301, allocations: 234 kB / 490.5 MB, free: 2.207 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.7301, allocations: 0 / 490.5 MB, free: 2.207 MB / 410.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002385/0.7325, allocations: 0.5764 MB / 491 MB, free: 1.625 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006651/0.7332, allocations: 1.051 MB / 492.1 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.7332, allocations: 3.938 kB / 492.1 MB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.9e-05/0.7333, allocations: 11.98 kB / 492.1 MB, free: 492 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002674/0.736, allocations: 195.8 kB / 492.3 MB, free: 296 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.736, allocations: 4 kB / 492.3 MB, free: 292 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.7375, allocations: 91.47 kB / 492.4 MB, free: 200 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.7376, allocations: 20 kB / 492.4 MB, free: 180 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.7376, allocations: 4 kB / 492.4 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002212/0.7399, allocations: 0.5318 MB / 492.9 MB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.7399, allocations: 4 kB / 492.9 MB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.7399, allocations: 8 kB / 493 MB, free: 15.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002461/0.7424, allocations: 187.8 kB / 493.1 MB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.56e-05/0.7425, allocations: 16.03 kB / 493.2 MB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000947/0.7435, allocations: 67.61 kB / 493.2 MB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.7436, allocations: 20 kB / 493.2 MB, free: 15.34 MB / 426.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.0002983/0.7439, allocations: 128.9 kB / 493.4 MB, free: 15.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003806/0.7443, allocations: 75.16 kB / 493.4 MB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003609/0.7447, allocations: 85.41 kB / 493.5 MB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.7447, allocations: 4 kB / 493.5 MB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.7447, allocations: 0 / 493.5 MB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.7448, allocations: 0 / 493.5 MB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/0.7487, allocations: 1.163 MB / 494.7 MB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-05/0.7487, allocations: 7.984 kB / 494.7 MB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001863/0.7506, allocations: 107.9 kB / 494.8 MB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.36e-05/0.7506, allocations: 0 / 494.8 MB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.7508, allocations: 23.98 kB / 494.8 MB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.588e-05/0.7508, allocations: 7.953 kB / 494.8 MB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.671e-05/0.7508, allocations: 4.031 kB / 494.8 MB, free: 13.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/0.7538, allocations: 1.014 MB / 495.9 MB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005694/0.7544, allocations: 188.2 kB / 496 MB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.7546, allocations: 19.98 kB / 496.1 MB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001438/0.7561, allocations: 59.94 kB / 496.1 MB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.7563, allocations: 36.05 kB / 496.1 MB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.88e-05/0.7564, allocations: 23.92 kB / 496.2 MB, free: 12.26 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001067/0.7575, allocations: 399.1 kB / 496.6 MB, free: 11.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.7575, allocations: 0 / 496.6 MB, free: 11.88 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001917/0.7595, allocations: 223.9 kB / 496.8 MB, free: 11.66 MB / 426.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.004053/0.7636, allocations: 1.885 MB / 498.7 MB, free: 9.719 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003152/0.7668, allocations: 0.7424 MB / 499.4 MB, free: 8.977 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.435e-05/0.7669, allocations: 4 kB / 499.4 MB, free: 8.973 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.7679, allocations: 228 kB / 499.6 MB, free: 8.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002218/0.7702, allocations: 149.9 kB / 499.8 MB, free: 8.609 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005164/0.7754, allocations: 1.375 MB / 0.4894 GB, free: 7.176 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007443/0.7762, allocations: 0.9453 MB / 0.4903 GB, free: 6.203 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007811/0.777, allocations: 240 kB / 0.4906 GB, free: 5.969 MB / 426.7 MB Notification: Performance of SimCode: time 3.787e-06/0.777, allocations: 0 / 0.4906 GB, free: 5.969 MB / 426.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=6 -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 -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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