Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.BooleanTable.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.BooleanTable,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.183/2.183, allocations: 234.9 MB / 250.5 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000431/0.0004312, allocations: 15.98 kB / 314.4 MB, free: 10.49 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3303, allocations: 54.86 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.BooleanTable): time 0.002122/0.3325, allocations: 1.258 MB / 370.5 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002197/0.3347, allocations: 1.032 MB / 371.6 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.36e-05/0.3348, allocations: 4 kB / 371.6 MB, free: 8.516 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.3349, allocations: 15.86 kB / 371.6 MB, free: 8.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001226/0.3351, allocations: 19.95 kB / 371.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001957/0.337, allocations: 479 kB / 372.1 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.3373, allocations: 139.8 kB / 372.2 MB, free: 7.875 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.412e-05/0.3374, allocations: 9.547 kB / 372.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.3375, allocations: 83.75 kB / 372.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.3376, allocations: 83.69 kB / 372.4 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.3377, allocations: 12 kB / 372.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006793/0.3384, allocations: 319.5 kB / 372.7 MB, free: 7.379 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.418e-05/0.3385, allocations: 27.91 kB / 372.7 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.113e-05/0.3386, allocations: 65.64 kB / 372.8 MB, free: 7.281 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005986/0.3392, allocations: 312.4 kB / 373.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.3392, allocations: 0 / 373.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3392, allocations: 0 / 373.1 MB, free: 6.977 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.3392, allocations: 3.938 kB / 373.1 MB, free: 6.973 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008236/0.34, allocations: 0.9079 MB / 374 MB, free: 5.918 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/0.3401, allocations: 12.03 kB / 374 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.343e-05/0.3402, allocations: 42.56 kB / 374.1 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.808e-05/0.3403, allocations: 27.81 kB / 374.1 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.3404, allocations: 190.8 kB / 374.3 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.3405, allocations: 8 kB / 374.3 MB, free: 5.594 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.051e-05/0.3405, allocations: 20 kB / 374.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005259/0.3411, allocations: 239.8 kB / 374.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3411, allocations: 0 / 374.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/0.3411, allocations: 11.95 kB / 374.5 MB, free: 5.301 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.3412, allocations: 0 / 374.5 MB, free: 5.301 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.3415, allocations: 111.8 kB / 374.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003888/0.3419, allocations: 315.7 kB / 375 MB, free: 4.812 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004678/0.3424, allocations: 276.9 kB / 375.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.321e-05/0.3424, allocations: 4 kB / 375.2 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007766/0.3432, allocations: 0.5345 MB / 375.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.124e-06/0.3432, allocations: 0 / 375.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002223/0.3454, allocations: 1.418 MB / 377.2 MB, free: 2.223 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003583/0.3458, allocations: 0.6823 MB / 377.9 MB, free: 1.387 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.346, allocations: 182.2 kB / 378.1 MB, free: 1.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.494e-05/0.3461, allocations: 41.7 kB / 378.1 MB, free: 1.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.311e-05/0.3462, allocations: 167.2 kB / 378.3 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/0.3463, allocations: 75.08 kB / 378.3 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.3464, allocations: 8 kB / 378.3 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3465, allocations: 326.8 kB / 378.7 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.3468, allocations: 92.84 kB / 378.7 MB, free: 492 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.3471, allocations: 162.8 kB / 378.9 MB, free: 308 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005291/0.3477, allocations: 0.5265 MB / 379.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3477, allocations: 0 / 379.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001262/0.349, allocations: 0.8169 MB / 380.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002676/0.3493, allocations: 455.2 kB / 380.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3493, allocations: 4 kB / 380.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.3493, allocations: 7.938 kB / 380.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.689e-05/0.3494, allocations: 11.98 kB / 380.7 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.3494, allocations: 7.891 kB / 380.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.3497, allocations: 47.67 kB / 380.8 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/0.3498, allocations: 20.5 kB / 380.8 MB, free: 14.11 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 56 ($whenCondition8,$PRE.booleanTable1.y,booleanTable1.y,$PRE.booleanTable1.nextTime,booleanTable1.nextTime,$PRE.booleanTable1.index,booleanTable1.index,$whenCondition7,$PRE.booleanTable2a.y,booleanTable2a.y,$PRE.booleanTable2a.nextTime,booleanTable2a.nextTime,$PRE.booleanTable2a.index,booleanTable2a.index,$whenCondition6,$PRE.booleanTable2b.y,booleanTable2b.y,$PRE.booleanTable2b.nextTime,booleanTable2b.nextTime,$PRE.booleanTable2b.index,booleanTable2b.index,$whenCondition5,$PRE.booleanTable3a.y,booleanTable3a.y,$PRE.booleanTable3a.nextTime,booleanTable3a.nextTime,$PRE.booleanTable3a.index,booleanTable3a.index,$whenCondition4,$PRE.booleanTable3b.y,booleanTable3b.y,$PRE.booleanTable3b.nextTime,booleanTable3b.nextTime,$PRE.booleanTable3b.index,booleanTable3b.index,$whenCondition3,$PRE.booleanTable3c.y,booleanTable3c.y,$PRE.booleanTable3c.nextTime,booleanTable3c.nextTime,$PRE.booleanTable3c.index,booleanTable3c.index,$whenCondition2,$PRE.booleanTable4a.y,booleanTable4a.y,$PRE.booleanTable4a.nextTime,booleanTable4a.nextTime,$PRE.booleanTable4a.index,booleanTable4a.index,$whenCondition1,$PRE.booleanTable4b.y,booleanTable4b.y,$PRE.booleanTable4b.nextTime,booleanTable4b.nextTime,$PRE.booleanTable4b.index,booleanTable4b.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 16 * 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.0004417/0.3503, allocations: 429 kB / 381.2 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3504, allocations: 35.81 kB / 381.2 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.3504, allocations: 12.94 kB / 381.3 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3504, allocations: 7.984 kB / 381.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3505, allocations: 3.938 kB / 381.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3505, allocations: 11.95 kB / 381.3 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003521/0.3508, allocations: 301.2 kB / 381.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3509, allocations: 4 kB / 381.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-06/0.3509, allocations: 0 / 381.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.3509, allocations: 7.984 kB / 381.6 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.092e-05/0.351, allocations: 20 kB / 381.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.351, allocations: 4 kB / 381.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.351, allocations: 7.938 kB / 381.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.3527, allocations: 0.8635 MB / 382.5 MB, free: 12.22 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.3528, allocations: 96.86 kB / 382.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.3529, allocations: 23.98 kB / 382.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.3533, allocations: 47.97 kB / 382.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.3535, allocations: 35.84 kB / 382.7 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.3e-05/0.3536, allocations: 20 kB / 382.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001394/0.3537, allocations: 136.2 kB / 382.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3537, allocations: 0 / 382.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007638/0.3545, allocations: 180 kB / 383 MB, free: 11.67 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition8,booleanTable1.y,booleanTable1.nextTime,booleanTable1.index,$whenCondition7,booleanTable2a.y,booleanTable2a.nextTime,booleanTable2a.index,$whenCondition6,booleanTable2b.y,booleanTable2b.nextTime,booleanTable2b.index,$whenCondition5,booleanTable3a.y,booleanTable3a.nextTime,booleanTable3a.index,$whenCondition4,booleanTable3b.y,booleanTable3b.nextTime,booleanTable3b.index,$whenCondition3,booleanTable3c.y,booleanTable3c.nextTime,booleanTable3c.index,$whenCondition2,booleanTable4a.y,booleanTable4a.nextTime,booleanTable4a.index,$whenCondition1,booleanTable4b.y,booleanTable4b.nextTime,booleanTable4b.index) * Number of discrete states: 32 (booleanTable4b.y,booleanTable4b.nextTime,booleanTable4b.index,$whenCondition1,booleanTable4a.y,booleanTable4a.nextTime,booleanTable4a.index,$whenCondition2,booleanTable3c.y,booleanTable3c.nextTime,booleanTable3c.index,$whenCondition3,booleanTable3b.y,booleanTable3b.nextTime,booleanTable3b.index,$whenCondition4,booleanTable3a.y,booleanTable3a.nextTime,booleanTable3a.index,$whenCondition5,booleanTable2b.y,booleanTable2b.nextTime,booleanTable2b.index,$whenCondition6,booleanTable2a.y,booleanTable2a.nextTime,booleanTable2a.index,$whenCondition7,booleanTable1.y,booleanTable1.nextTime,booleanTable1.index,$whenCondition8) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 8 * 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.002602/0.3571, allocations: 1.562 MB / 384.6 MB, free: 10.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.3586, allocations: 1.19 MB / 385.8 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.3587, allocations: 4 kB / 385.8 MB, free: 8.621 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008997/0.3596, allocations: 0.7061 MB / 386.5 MB, free: 7.816 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.3598, allocations: 27.95 kB / 386.5 MB, free: 7.789 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.3634, allocations: 1.574 MB / 388.1 MB, free: 6.121 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3638, allocations: 0.7367 MB / 388.8 MB, free: 5.359 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.67e-05/0.3639, allocations: 43.42 kB / 388.9 MB, free: 5.312 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3639, allocations: 0 / 388.9 MB, free: 5.312 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_BooleanTableCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTableCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTableCalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTable.cpp:192:37: error: use of undeclared identifier 'booleanTable4b_P_table_' _booleanTable4b_P_nextTime_ = booleanTable4b_P_table_(_booleanTable4b_P_index_) /*stmtAssign*/; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTable.cpp:265:37: error: use of undeclared identifier 'booleanTable4a_P_table_' _booleanTable4a_P_nextTime_ = booleanTable4a_P_table_(_booleanTable4a_P_index_) /*stmtAssign*/; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTableCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTableFMU.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 2 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTableCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_BooleanTableCalcHelperMain.o] Error 1