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.444/2.444, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006914/0.0006914, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3787, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.5335, allocations: 81.85 MB / 451.2 MB, free: 8.641 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.5339, allocations: 71.91 kB / 451.3 MB, free: 8.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05475/0.5886, allocations: 9.386 MB / 460.7 MB, free: 15.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5887, allocations: 0 / 460.7 MB, free: 15.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.191e-05/0.5888, allocations: 4 kB / 460.7 MB, free: 15.15 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.002189/0.591, allocations: 0.6929 MB / 461.4 MB, free: 14.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.591, allocations: 12.03 kB / 461.4 MB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001332/0.5912, allocations: 54.5 kB / 461.4 MB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.5913, allocations: 35.53 kB / 461.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007002/0.592, allocations: 291 kB / 461.7 MB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.5921, allocations: 16 kB / 461.8 MB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.5922, allocations: 23.98 kB / 461.8 MB, free: 13.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008285/0.5931, allocations: 275.1 kB / 462 MB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.5931, allocations: 4 kB / 462 MB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.5932, allocations: 11.95 kB / 462.1 MB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.5932, allocations: 0 / 462.1 MB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007946/0.594, allocations: 237.6 kB / 462.3 MB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002243/0.5963, allocations: 0.7655 MB / 463.1 MB, free: 12.59 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000832/0.5972, allocations: 296.9 kB / 463.3 MB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.814e-05/0.5973, allocations: 0 / 463.3 MB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.5973, allocations: 46.5 kB / 463.4 MB, free: 12.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 2.264e-06/0.5974, allocations: 0 / 463.4 MB, free: 12.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.001925/0.5993, allocations: 0.5534 MB / 463.9 MB, free: 11.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.875e-05/0.5994, allocations: 81.11 kB / 464 MB, free: 11.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005643/0.6, allocations: 311.7 kB / 464.3 MB, free: 11.26 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.6001, allocations: 33.7 kB / 464.4 MB, free: 11.22 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.6003, allocations: 203.2 kB / 464.6 MB, free: 11.02 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.6005, allocations: 102.5 kB / 464.7 MB, free: 10.92 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.415e-05/0.6005, allocations: 7.938 kB / 464.7 MB, free: 10.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.6007, allocations: 342.8 kB / 465 MB, free: 10.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008007/0.6015, allocations: 288.9 kB / 465.3 MB, free: 10.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008855/0.6024, allocations: 339.5 kB / 465.6 MB, free: 9.949 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009468/0.6034, allocations: 329.8 kB / 465.9 MB, free: 9.625 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.6035, allocations: 4 kB / 465.9 MB, free: 9.621 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002066/0.6056, allocations: 0.7494 MB / 466.7 MB, free: 8.871 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.6056, allocations: 4 kB / 466.7 MB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.153e-05/0.6057, allocations: 8 kB / 466.7 MB, free: 8.859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.6057, allocations: 3.984 kB / 466.7 MB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009516/0.6067, allocations: 103.9 kB / 466.8 MB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.6067, allocations: 0 / 466.8 MB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003782/0.6071, allocations: 71.11 kB / 466.9 MB, free: 8.684 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.6072, allocations: 12 kB / 466.9 MB, free: 8.672 MB / 394.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.0004264/0.6076, allocations: 196.2 kB / 467.1 MB, free: 8.477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.6077, allocations: 27.53 kB / 467.1 MB, free: 8.449 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.6079, allocations: 42.7 kB / 467.2 MB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.6079, allocations: 4 kB / 467.2 MB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.6079, allocations: 0 / 467.2 MB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.6079, allocations: 0 / 467.2 MB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006734/0.6086, allocations: 341.3 kB / 467.5 MB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.6086, allocations: 0 / 467.5 MB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007637/0.6094, allocations: 55.84 kB / 467.5 MB, free: 7.957 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.6094, allocations: 4 kB / 467.5 MB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.674e-05/0.6095, allocations: 15.98 kB / 467.6 MB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.6095, allocations: 0 / 467.6 MB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.6095, allocations: 4 kB / 467.6 MB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.6114, allocations: 0.7733 MB / 468.3 MB, free: 7.133 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.6116, allocations: 100.9 kB / 468.4 MB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.6117, allocations: 15.98 kB / 468.5 MB, free: 7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.6121, allocations: 11.98 kB / 468.5 MB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.6122, allocations: 15.92 kB / 468.5 MB, free: 6.973 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.6123, allocations: 15.98 kB / 468.5 MB, free: 6.957 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004273/0.6127, allocations: 219 kB / 468.7 MB, free: 6.746 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6127, allocations: 7.938 kB / 468.7 MB, free: 6.738 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00145/0.6142, allocations: 271.7 kB / 469 MB, free: 6.473 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 () * 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.003333/0.6176, allocations: 1.564 MB / 470.5 MB, free: 4.879 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.6197, allocations: 0.7409 MB / 471.3 MB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.6197, allocations: 0 / 471.3 MB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006258/0.6204, allocations: 195.8 kB / 471.5 MB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005842/0.621, allocations: 40.14 kB / 471.5 MB, free: 3.887 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.6245, allocations: 1.634 MB / 473.2 MB, free: 2.191 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005233/0.6251, allocations: 0.8148 MB / 474 MB, free: 1.352 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003998/0.6255, allocations: 107.4 kB / 474.1 MB, free: 1.246 MB / 394.7 MB Notification: Performance of SimCode: time 4.288e-06/0.6256, allocations: 0 / 474.1 MB, free: 1.246 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:45: error: use of undeclared identifier '_omcQ_24tmpVar0_'; did you mean '_omcQ_24tmpVar1_'? _omcQ_24tmpVar1_ = std::abs(_omcQ_24tmpVar0_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar1_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1257:20: note: '_omcQ_24tmpVar1_' declared here double _omcQ_24tmpVar1_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1327:45: error: use of undeclared identifier '_omcQ_24tmpVar3_'; did you mean '_omcQ_24tmpVar4_'? _omcQ_24tmpVar4_ = std::abs(_omcQ_24tmpVar3_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar4_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1299:20: note: '_omcQ_24tmpVar4_' declared here double _omcQ_24tmpVar4_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1373:45: error: use of undeclared identifier '_omcQ_24tmpVar6_'; did you mean '_omcQ_24tmpVar7_'? _omcQ_24tmpVar7_ = std::abs(_omcQ_24tmpVar6_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar7_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1345:20: note: '_omcQ_24tmpVar7_' declared here double _omcQ_24tmpVar7_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1415:46: error: use of undeclared identifier '_omcQ_24tmpVar9_'; did you mean '_omcQ_24tmpVar10_'? _omcQ_24tmpVar10_ = std::abs(_omcQ_24tmpVar9_); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar10_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_PadeDelay2Functions.cpp:1387:20: note: '_omcQ_24tmpVar10_' declared here double _omcQ_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