Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.PadeDelay2.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.PadeDelay2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.277/2.277, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004363, allocations: 12 kB / 314.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3501, allocations: 54.86 MB / 369.3 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.PadeDelay2): time 0.002589/0.3527, allocations: 1.479 MB / 370.7 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002932/0.3557, allocations: 1.305 MB / 372 MB, free: 9.879 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.3559, allocations: 0 / 372 MB, free: 9.879 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.3561, allocations: 23.86 kB / 372.1 MB, free: 9.855 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.3562, allocations: 27.88 kB / 372.1 MB, free: 9.828 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.3582, allocations: 439 kB / 372.5 MB, free: 9.398 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.3587, allocations: 167.7 kB / 372.7 MB, free: 9.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.3588, allocations: 32.3 kB / 372.7 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003168/0.3592, allocations: 111.6 kB / 372.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002976/0.3595, allocations: 159.5 kB / 373 MB, free: 8.938 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.3595, allocations: 12 kB / 373 MB, free: 8.926 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.3611, allocations: 0.6201 MB / 373.6 MB, free: 8.305 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.3614, allocations: 99.7 kB / 373.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.3615, allocations: 69.52 kB / 373.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001657/0.3632, allocations: 0.8273 MB / 374.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3632, allocations: 0 / 374.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3632, allocations: 0 / 374.6 MB, free: 7.305 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.3632, allocations: 0 / 374.6 MB, free: 7.305 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001823/0.3651, allocations: 0.6815 MB / 375.3 MB, free: 6.574 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.3651, allocations: 12.03 kB / 375.3 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.93e-05/0.3652, allocations: 42.56 kB / 375.3 MB, free: 6.512 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.3653, allocations: 27.62 kB / 375.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.3658, allocations: 275.2 kB / 375.6 MB, free: 6.172 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.3659, allocations: 16 kB / 375.7 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.76e-05/0.366, allocations: 27.91 kB / 375.7 MB, free: 6.129 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008119/0.3668, allocations: 271.2 kB / 375.9 MB, free: 5.852 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.3668, allocations: 7.953 kB / 376 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.3669, allocations: 4 kB / 376 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.3669, allocations: 4 kB / 376 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007514/0.3677, allocations: 235.8 kB / 376.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.3697, allocations: 0.7694 MB / 377 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007978/0.3705, allocations: 300.8 kB / 377.3 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.899e-05/0.3706, allocations: 4 kB / 377.3 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.3706, allocations: 30.56 kB / 377.3 MB, free: 4.426 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.146e-06/0.3706, allocations: 0 / 377.3 MB, free: 4.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001778/0.3724, allocations: 0.5526 MB / 377.8 MB, free: 3.867 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.3725, allocations: 81.11 kB / 377.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005202/0.3731, allocations: 344.5 kB / 378.3 MB, free: 3.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.082e-05/0.3732, allocations: 37.7 kB / 378.3 MB, free: 3.387 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.3733, allocations: 207.1 kB / 378.5 MB, free: 3.184 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3735, allocations: 94.62 kB / 378.6 MB, free: 3.09 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/0.3735, allocations: 4 kB / 378.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.3737, allocations: 350.8 kB / 378.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000769/0.3745, allocations: 284.9 kB / 379.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008072/0.3753, allocations: 343.5 kB / 379.5 MB, free: 2.113 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008903/0.3762, allocations: 337 kB / 379.9 MB, free: 1.781 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.3762, allocations: 0 / 379.9 MB, free: 1.781 MB / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001921/0.3782, allocations: 0.7494 MB / 380.6 MB, free: 1.027 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.208e-05/0.3782, allocations: 8 kB / 380.6 MB, free: 1.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/0.3783, allocations: 4 kB / 380.6 MB, free: 1.016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.274e-05/0.3783, allocations: 3.984 kB / 380.6 MB, free: 1.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009149/0.3792, allocations: 103.9 kB / 380.7 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.3793, allocations: 4 kB / 380.7 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.3797, allocations: 71.05 kB / 380.8 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.3797, allocations: 15.95 kB / 380.8 MB, free: 0.8203 MB / 298.7 MB Warning: Assuming fixed start value for the following 6 variables: padeDelay2a.x[3]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay2a.x[2]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay2a.x[1]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[3]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[2]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] padeDelay1a.x[1]:VARIABLE(fixed = true final = true ) "State of transfer function from controller canonical form (balance=false), or balanced controller canonical form (balance=true)" type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0003891/0.3801, allocations: 187.7 kB / 381 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.3803, allocations: 23.62 kB / 381 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.3804, allocations: 46.64 kB / 381.1 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.3804, allocations: 4 kB / 381.1 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3804, allocations: 0 / 381.1 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3805, allocations: 0 / 381.1 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006389/0.3811, allocations: 345.2 kB / 381.4 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3811, allocations: 0 / 381.4 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.3819, allocations: 51.97 kB / 381.5 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.3819, allocations: 4 kB / 381.5 MB, free: 112 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.247e-05/0.382, allocations: 11.98 kB / 381.5 MB, free: 100 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.382, allocations: 4 kB / 381.5 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3821, allocations: 0 / 381.5 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.3839, allocations: 0.7675 MB / 382.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.3841, allocations: 104.8 kB / 382.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.3842, allocations: 19.98 kB / 382.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003828/0.3846, allocations: 11.98 kB / 382.4 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.101e-05/0.3847, allocations: 11.98 kB / 382.4 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.3847, allocations: 15.98 kB / 382.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003473/0.3851, allocations: 223 kB / 382.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3851, allocations: 0 / 382.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001128/0.3862, allocations: 252 kB / 382.9 MB, free: 14.66 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (padeDelay2a.x[1],padeDelay2a.x[2],padeDelay2a.x[3],padeDelay2a.x[4],padeDelay2b.x[1],padeDelay2b.x[2],padeDelay2b.x[3],padeDelay2b.x[4],padeDelay1b.x[1],padeDelay1b.x[2],padeDelay1b.x[3],padeDelay1b.x[4],padeDelay1a.x[1],padeDelay1a.x[2],padeDelay1a.x[3],padeDelay1a.x[4]) * 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 (24): * Single equations (assignments): 24 * 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.002913/0.3892, allocations: 1.438 MB / 384.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.391, allocations: 0.7418 MB / 385.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.3911, allocations: 3.938 kB / 385.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005882/0.3917, allocations: 200.6 kB / 385.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.3922, allocations: 35.47 kB / 385.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/0.3954, allocations: 1.463 MB / 386.8 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005301/0.396, allocations: 0.8226 MB / 387.6 MB, free: 9.836 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.3964, allocations: 99.41 kB / 387.7 MB, free: 9.738 MB / 314.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3964, allocations: 0 / 387.7 MB, free: 9.738 MB / 314.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_PadeDelay2CalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2CalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:155:49: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar0_ = std::abs(As_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:197:49: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar2_ = std::abs(Cs_(_omcQ_24i1_,i_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:243:52: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar4_ = std::abs(As_(i_,_omcQ_24i1_)); ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:285:52: error: use of undeclared identifier '_omcQ_24i1_' _omcQ_24tmpVar6_ = std::abs(Bs_(i_,_omcQ_24i1_)); ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2FMU.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 and 4 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2CalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2CalcHelperMain.o] Error 1