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.431/2.431, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.604e-05, allocations: 4 kB / 309.8 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3785, allocations: 54.85 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.525, allocations: 81.77 MB / 446.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/0.5253, allocations: 63.97 kB / 446.5 MB, free: 14.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0497/0.575, allocations: 9.355 MB / 455.8 MB, free: 5.316 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.575, allocations: 4 kB / 455.8 MB, free: 5.312 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.764e-05/0.5751, allocations: 4 kB / 455.8 MB, free: 5.309 MB / 378.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.001703/0.5768, allocations: 0.6574 MB / 456.5 MB, free: 4.605 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5769, allocations: 8.031 kB / 456.5 MB, free: 4.598 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.259e-05/0.577, allocations: 50.44 kB / 456.5 MB, free: 4.539 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.599e-05/0.5771, allocations: 35.52 kB / 456.6 MB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005569/0.5776, allocations: 288.1 kB / 456.8 MB, free: 4.184 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.5777, allocations: 16.56 kB / 456.9 MB, free: 4.168 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.44e-05/0.5778, allocations: 16 kB / 456.9 MB, free: 4.152 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006941/0.5785, allocations: 272.5 kB / 457.1 MB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.5785, allocations: 0 / 457.1 MB, free: 3.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.071e-05/0.5785, allocations: 11.94 kB / 457.2 MB, free: 3.863 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.5786, allocations: 4 kB / 457.2 MB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005556/0.5791, allocations: 204.9 kB / 457.4 MB, free: 3.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001929/0.5811, allocations: 0.7694 MB / 458.1 MB, free: 2.836 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.5818, allocations: 273.2 kB / 458.4 MB, free: 2.551 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.5822, allocations: 182.5 kB / 458.6 MB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.978e-05/0.5823, allocations: 4 kB / 458.6 MB, free: 2.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.5823, allocations: 46.5 kB / 458.6 MB, free: 2.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.695e-06/0.5823, allocations: 0 / 458.6 MB, free: 2.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.001073/0.5834, allocations: 370.7 kB / 459 MB, free: 1.938 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.5835, allocations: 81.11 kB / 459.1 MB, free: 1.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004864/0.584, allocations: 306.7 kB / 459.4 MB, free: 1.531 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.563e-05/0.5841, allocations: 29.7 kB / 459.4 MB, free: 1.496 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.5842, allocations: 212.5 kB / 459.6 MB, free: 1.285 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.5843, allocations: 102.5 kB / 459.7 MB, free: 1.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.5844, allocations: 12 kB / 459.7 MB, free: 1.172 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.5846, allocations: 350.8 kB / 460.1 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006456/0.5852, allocations: 268.7 kB / 460.3 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006984/0.5859, allocations: 322.2 kB / 460.6 MB, free: 240 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/0.5867, allocations: 313.9 kB / 460.9 MB, free: 15.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.5868, allocations: 0 / 460.9 MB, free: 15.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001631/0.5884, allocations: 0.7114 MB / 461.6 MB, free: 15.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.5884, allocations: 4 kB / 461.7 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.779e-05/0.5885, allocations: 11.98 kB / 461.7 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.5885, allocations: 4 kB / 461.7 MB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009278/0.5894, allocations: 103.9 kB / 461.8 MB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.5895, allocations: 0 / 461.8 MB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003482/0.5898, allocations: 71.11 kB / 461.8 MB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.5899, allocations: 15.94 kB / 461.9 MB, free: 15 MB / 394.7 MB Warning: Assuming fixed start value for the following 6 variables: padeDelay2a.x[3]:VARIABLE(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(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(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(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(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(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 () * 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.0002262/0.5901, allocations: 138.9 kB / 462 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.5903, allocations: 27.62 kB / 462 MB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.5904, allocations: 42.83 kB / 462.1 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.5904, allocations: 4 kB / 462.1 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5904, allocations: 0 / 462.1 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.5905, allocations: 0 / 462.1 MB, free: 14.79 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000618/0.5911, allocations: 337.2 kB / 462.4 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5911, allocations: 0 / 462.4 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007344/0.5918, allocations: 55.91 kB / 462.4 MB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.5919, allocations: 4 kB / 462.5 MB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.01e-05/0.5919, allocations: 15.98 kB / 462.5 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.5919, allocations: 0 / 462.5 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.592, allocations: 3.984 kB / 462.5 MB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.5934, allocations: 0.7282 MB / 463.2 MB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.41e-05/0.5935, allocations: 112.7 kB / 463.3 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.443e-05/0.5936, allocations: 16 kB / 463.3 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.594, allocations: 19.92 kB / 463.3 MB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.5941, allocations: 11.98 kB / 463.4 MB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.434e-05/0.5941, allocations: 11.98 kB / 463.4 MB, free: 13.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003195/0.5945, allocations: 218.2 kB / 463.6 MB, free: 13.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5945, allocations: 0 / 463.6 MB, free: 13.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00114/0.5956, allocations: 271.7 kB / 463.8 MB, free: 12.91 MB / 394.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 () * 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.002432/0.5981, allocations: 1.52 MB / 465.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.5995, allocations: 0.7138 MB / 466.1 MB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5996, allocations: 0 / 466.1 MB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.6, allocations: 183.8 kB / 466.3 MB, free: 10.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.6005, allocations: 37.19 kB / 466.3 MB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.6029, allocations: 1.044 MB / 467.3 MB, free: 9.316 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.6034, allocations: 0.8184 MB / 468.2 MB, free: 8.473 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003336/0.6037, allocations: 107.3 kB / 468.3 MB, free: 8.367 MB / 394.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6038, allocations: 0 / 468.3 MB, free: 8.367 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=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_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:1285:41: error: use of undeclared identifier 'D_24tmpVar0_'; did you mean 'D_24tmpVar1_'? D_24tmpVar1_ = std::abs(D_24tmpVar0_); ^~~~~~~~~~~~ D_24tmpVar1_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1257:20: note: 'D_24tmpVar1_' declared here double D_24tmpVar1_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1327:41: error: use of undeclared identifier 'D_24tmpVar3_'; did you mean 'D_24tmpVar4_'? D_24tmpVar4_ = std::abs(D_24tmpVar3_); ^~~~~~~~~~~~ D_24tmpVar4_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1299:20: note: 'D_24tmpVar4_' declared here double D_24tmpVar4_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1373:41: error: use of undeclared identifier 'D_24tmpVar6_'; did you mean 'D_24tmpVar7_'? D_24tmpVar7_ = std::abs(D_24tmpVar6_); ^~~~~~~~~~~~ D_24tmpVar7_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1345:20: note: 'D_24tmpVar7_' declared here double D_24tmpVar7_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1415:42: error: use of undeclared identifier 'D_24tmpVar9_'; did you mean 'D_24tmpVar10_'? D_24tmpVar10_ = std::abs(D_24tmpVar9_); ^~~~~~~~~~~~ D_24tmpVar10_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1387:20: note: 'D_24tmpVar10_' declared here double D_24tmpVar10_; ^ 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