Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.BooleanTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable1.y|booleanTable2a.y|booleanTable2b.y|booleanTable3a.y|booleanTable3b.y|booleanTable3c.y|booleanTable4a.y|booleanTable4b.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable") translateModel(ModelicaTest.Blocks.BooleanTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable1.y|booleanTable2a.y|booleanTable2b.y|booleanTable3a.y|booleanTable3b.y|booleanTable3c.y|booleanTable4a.y|booleanTable4b.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009332/0.0009333, allocations: 184 kB / 8.525 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 221.4 MB / 230.3 MB, free: 7.691 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000894/0.0008941, allocations: 87.23 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1951/0.1951, allocations: 44.15 MB / 376.1 MB, free: 3.211 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/7.995e-06, allocations: 4.219 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1318, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3556/0.4875, allocations: 89.33 MB / 0.5813 GB, free: 7.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.4877, allocations: 61.69 kB / 0.5814 GB, free: 7.133 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.08157/0.5693, allocations: 28.83 MB / 0.6095 GB, free: 10.45 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.226e-05/0.5694, allocations: 20 kB / 0.6096 GB, free: 10.43 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001758/0.5712, allocations: 1.096 MB / 0.6106 GB, free: 9.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.5712, allocations: 8.031 kB / 0.6106 GB, free: 9.242 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.5714, allocations: 98.77 kB / 0.6107 GB, free: 9.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.5729, allocations: 0.7376 MB / 0.6114 GB, free: 8.352 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.5729, allocations: 8 kB / 0.6115 GB, free: 8.344 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.081e-05/0.573, allocations: 23.97 kB / 0.6115 GB, free: 8.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003619/0.5734, allocations: 180.9 kB / 0.6116 GB, free: 8.145 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.5739, allocations: 380.6 kB / 0.612 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.5739, allocations: 0 / 0.612 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.574, allocations: 3.984 kB / 0.612 GB, free: 7.715 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.574, allocations: 8 kB / 0.612 GB, free: 7.707 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.5758, allocations: 1.572 MB / 0.6136 GB, free: 6.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005938/0.5764, allocations: 474.2 kB / 0.614 GB, free: 5.535 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.5767, allocations: 182.9 kB / 0.6142 GB, free: 5.332 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.5767, allocations: 16.22 kB / 0.6142 GB, free: 5.316 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004326/0.5772, allocations: 334.2 kB / 0.6145 GB, free: 4.949 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.835e-06/0.5772, allocations: 0 / 0.6145 GB, free: 4.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.0008692/0.578, allocations: 440.6 kB / 0.6149 GB, free: 4.512 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002297/0.5783, allocations: 449 kB / 0.6154 GB, free: 3.969 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001386/0.5797, allocations: 0.9101 MB / 0.6163 GB, free: 3.035 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.665e-05/0.5797, allocations: 33.69 kB / 0.6163 GB, free: 2.996 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.5799, allocations: 192.8 kB / 0.6165 GB, free: 2.805 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.5801, allocations: 130.3 kB / 0.6166 GB, free: 2.676 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.886e-05/0.5801, allocations: 0 / 0.6166 GB, free: 2.676 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5802, allocations: 326 kB / 0.6169 GB, free: 2.352 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.5804, allocations: 133.3 kB / 0.617 GB, free: 2.223 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003811/0.5808, allocations: 356.1 kB / 0.6174 GB, free: 1.785 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.5811, allocations: 161.9 kB / 0.6175 GB, free: 1.629 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-06/0.5811, allocations: 0 / 0.6175 GB, free: 1.629 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007646/0.5819, allocations: 488 kB / 0.618 GB, free: 1.145 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.5819, allocations: 6.188 kB / 0.618 GB, free: 1.141 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.5819, allocations: 4 kB / 0.618 GB, free: 1.137 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.5819, allocations: 12.16 kB / 0.618 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003861/0.5823, allocations: 99.83 kB / 0.6181 GB, free: 1.027 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.5824, allocations: 7.984 kB / 0.6181 GB, free: 1.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00048/0.5828, allocations: 63.66 kB / 0.6182 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.065e-05/0.5829, allocations: 23.98 kB / 0.6182 GB, free: 0.9336 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 48 ($whenCondition8,$PRE.booleanTable1.combiTimeTable.nextTimeEvent,booleanTable1.y,booleanTable1.combiTimeTable.nextTimeEvent,$PRE.booleanTable1.combiTimeTable.nextTimeEventScaled,booleanTable1.combiTimeTable.nextTimeEventScaled,$whenCondition7,$PRE.booleanTable2a.combiTimeTable.nextTimeEvent,booleanTable2a.y,booleanTable2a.combiTimeTable.nextTimeEvent,$PRE.booleanTable2a.combiTimeTable.nextTimeEventScaled,booleanTable2a.combiTimeTable.nextTimeEventScaled,$whenCondition6,$PRE.booleanTable2b.combiTimeTable.nextTimeEvent,booleanTable2b.y,booleanTable2b.combiTimeTable.nextTimeEvent,$PRE.booleanTable2b.combiTimeTable.nextTimeEventScaled,booleanTable2b.combiTimeTable.nextTimeEventScaled,$whenCondition5,$PRE.booleanTable3a.combiTimeTable.nextTimeEvent,booleanTable3a.y,booleanTable3a.combiTimeTable.nextTimeEvent,$PRE.booleanTable3a.combiTimeTable.nextTimeEventScaled,booleanTable3a.combiTimeTable.nextTimeEventScaled,$whenCondition4,$PRE.booleanTable3b.combiTimeTable.nextTimeEvent,booleanTable3b.y,booleanTable3b.combiTimeTable.nextTimeEvent,$PRE.booleanTable3b.combiTimeTable.nextTimeEventScaled,booleanTable3b.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.booleanTable3c.combiTimeTable.nextTimeEvent,booleanTable3c.y,booleanTable3c.combiTimeTable.nextTimeEvent,$PRE.booleanTable3c.combiTimeTable.nextTimeEventScaled,booleanTable3c.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.booleanTable4a.combiTimeTable.nextTimeEvent,booleanTable4a.y,booleanTable4a.combiTimeTable.nextTimeEvent,$PRE.booleanTable4a.combiTimeTable.nextTimeEventScaled,booleanTable4a.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.booleanTable4b.combiTimeTable.nextTimeEvent,booleanTable4b.y,booleanTable4b.combiTimeTable.nextTimeEvent,$PRE.booleanTable4b.combiTimeTable.nextTimeEventScaled,booleanTable4b.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * 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 prepare postOptimizeDAE: time 0.0002218/0.5831, allocations: 153.3 kB / 0.6183 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.5833, allocations: 98.78 kB / 0.6184 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000868/0.5842, allocations: 0.5089 MB / 0.6189 GB, free: 164 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5842, allocations: 8 kB / 0.6189 GB, free: 156 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.5842, allocations: 0 / 0.6189 GB, free: 156 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5842, allocations: 4 kB / 0.619 GB, free: 152 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.5849, allocations: 0.6225 MB / 0.6196 GB, free: 15.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.5849, allocations: 4 kB / 0.6196 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.5851, allocations: 51.86 kB / 0.6196 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.5851, allocations: 4 kB / 0.6196 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/0.5852, allocations: 11.98 kB / 0.6196 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.5852, allocations: 4 kB / 0.6196 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5852, allocations: 8.156 kB / 0.6196 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007805/0.586, allocations: 0.6199 MB / 0.6202 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002683/0.5862, allocations: 223.8 kB / 0.6205 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/0.5864, allocations: 15.98 kB / 0.6205 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.5868, allocations: 51.95 kB / 0.6205 GB, free: 14.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.5869, allocations: 43.94 kB / 0.6206 GB, free: 14.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.153e-05/0.587, allocations: 23.98 kB / 0.6206 GB, free: 14.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009079/0.5879, allocations: 0.7031 MB / 0.6213 GB, free: 13.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006413/0.5885, allocations: 159.8 kB / 0.6214 GB, free: 13.45 MB / 442.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.combiTimeTable.nextTimeEvent,booleanTable1.combiTimeTable.nextTimeEventScaled,$whenCondition7,booleanTable2a.y,booleanTable2a.combiTimeTable.nextTimeEvent,booleanTable2a.combiTimeTable.nextTimeEventScaled,$whenCondition6,booleanTable2b.y,booleanTable2b.combiTimeTable.nextTimeEvent,booleanTable2b.combiTimeTable.nextTimeEventScaled,$whenCondition5,booleanTable3a.y,booleanTable3a.combiTimeTable.nextTimeEvent,booleanTable3a.combiTimeTable.nextTimeEventScaled,$whenCondition4,booleanTable3b.y,booleanTable3b.combiTimeTable.nextTimeEvent,booleanTable3b.combiTimeTable.nextTimeEventScaled,$whenCondition3,booleanTable3c.y,booleanTable3c.combiTimeTable.nextTimeEvent,booleanTable3c.combiTimeTable.nextTimeEventScaled,$whenCondition2,booleanTable4a.y,booleanTable4a.combiTimeTable.nextTimeEvent,booleanTable4a.combiTimeTable.nextTimeEventScaled,$whenCondition1,booleanTable4b.y,booleanTable4b.combiTimeTable.nextTimeEvent,booleanTable4b.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 16 (booleanTable4b.combiTimeTable.nextTimeEvent,booleanTable4b.combiTimeTable.nextTimeEventScaled,booleanTable4a.combiTimeTable.nextTimeEvent,booleanTable4a.combiTimeTable.nextTimeEventScaled,booleanTable3c.combiTimeTable.nextTimeEvent,booleanTable3c.combiTimeTable.nextTimeEventScaled,booleanTable3b.combiTimeTable.nextTimeEvent,booleanTable3b.combiTimeTable.nextTimeEventScaled,booleanTable3a.combiTimeTable.nextTimeEvent,booleanTable3a.combiTimeTable.nextTimeEventScaled,booleanTable2b.combiTimeTable.nextTimeEvent,booleanTable2b.combiTimeTable.nextTimeEventScaled,booleanTable2a.combiTimeTable.nextTimeEvent,booleanTable2a.combiTimeTable.nextTimeEventScaled,booleanTable1.combiTimeTable.nextTimeEvent,booleanTable1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0007793/0.5893, allocations: 375.4 kB / 0.6218 GB, free: 13.15 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006703/0.59, allocations: 399.3 kB / 0.6222 GB, free: 12.76 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.59, allocations: 0 / 0.6222 GB, free: 12.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004477/0.5905, allocations: 275.7 kB / 0.6224 GB, free: 12.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.5916, allocations: 230.6 kB / 0.6226 GB, free: 12.27 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.5937, allocations: 1.1 MB / 0.6237 GB, free: 11.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009121/0.5946, allocations: 1.14 MB / 0.6248 GB, free: 9.953 MB / 442.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5946, allocations: 0 / 0.6248 GB, free: 9.953 MB / 442.7 MB [CodegenCFunctions.tpl:3420:14-3420:14:writable] Error: Template error: literalExpConst failed: {}. Notification: Performance of Templates: time 0.01935/0.614, allocations: 11.01 MB / 0.6356 GB, free: 15 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.makefile clang -fPIC -falign-functions -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_4_0_0_ModelicaTest_Blocks_BooleanTable -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.o ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.c In file included from ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.c:2: In file included from ./ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable_model.h:85: ./ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable_literals.h:24:2: error: "[CodegenCFunctions.tpl:3420:14-3420:14] literalExpConst failed: {}" #error "[CodegenCFunctions.tpl:3420:14-3420:14] literalExpConst failed: {}" ^ 1 error generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Blocks.BooleanTable.o] Error 1