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: "" <> buildModelFMU(ModelicaTest.Blocks.BooleanTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.BooleanTable,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) [: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.0009972/0.0009972, allocations: 177.5 kB / 8.516 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.13/1.13, allocations: 221.4 MB / 230.3 MB, free: 7.723 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.0009295/0.0009295, allocations: 81.88 kB / 281.2 MB, free: 5.543 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.1567/0.1567, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1694/0.3261, allocations: 68.02 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.424, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2612/0.6853, allocations: 89.33 MB / 0.5814 GB, free: 7.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.6855, allocations: 63.97 kB / 0.5815 GB, free: 7.367 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.08066/0.7662, allocations: 29.95 MB / 0.6107 GB, free: 9.309 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.7662, allocations: 11.94 kB / 0.6107 GB, free: 9.297 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.7665, allocations: 98.78 kB / 0.6108 GB, free: 9.199 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001439/0.7679, allocations: 0.7298 MB / 0.6115 GB, free: 8.414 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.768, allocations: 15.98 kB / 0.6116 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.891e-05/0.768, allocations: 16 kB / 0.6116 GB, free: 8.383 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003417/0.7684, allocations: 188.9 kB / 0.6117 GB, free: 8.199 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.7689, allocations: 380.6 kB / 0.6121 GB, free: 7.773 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.7689, allocations: 0 / 0.6121 GB, free: 7.773 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.7689, allocations: 4 kB / 0.6121 GB, free: 7.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.769, allocations: 4 kB / 0.6121 GB, free: 7.766 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.7708, allocations: 1.572 MB / 0.6137 GB, free: 6.129 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.7714, allocations: 474.2 kB / 0.6141 GB, free: 5.594 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.7716, allocations: 186.9 kB / 0.6143 GB, free: 5.387 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.7717, allocations: 8 kB / 0.6143 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004171/0.7721, allocations: 338.2 kB / 0.6146 GB, free: 5.008 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.825e-06/0.7721, allocations: 0 / 0.6146 GB, free: 5.008 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.0007457/0.7729, allocations: 436.2 kB / 0.615 GB, free: 4.574 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001722/0.773, allocations: 456.9 kB / 0.6155 GB, free: 4.023 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.7742, allocations: 0.9101 MB / 0.6164 GB, free: 3.09 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.7743, allocations: 29.7 kB / 0.6164 GB, free: 3.055 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.7744, allocations: 197 kB / 0.6166 GB, free: 2.859 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.7745, allocations: 122.4 kB / 0.6167 GB, free: 2.738 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.85e-05/0.7746, allocations: 0 / 0.6167 GB, free: 2.738 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.7747, allocations: 322 kB / 0.617 GB, free: 2.418 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.7749, allocations: 133.3 kB / 0.6171 GB, free: 2.289 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.7753, allocations: 356.2 kB / 0.6175 GB, free: 1.852 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.7755, allocations: 166.3 kB / 0.6176 GB, free: 1.691 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.7755, allocations: 0 / 0.6176 GB, free: 1.691 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007268/0.7763, allocations: 484.4 kB / 0.6181 GB, free: 1.211 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.7763, allocations: 8 kB / 0.6181 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.649e-06/0.7763, allocations: 7.984 kB / 0.6181 GB, free: 1.195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.7763, allocations: 11.84 kB / 0.6181 GB, free: 1.184 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.7767, allocations: 95.83 kB / 0.6182 GB, free: 1.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.7767, allocations: 8 kB / 0.6182 GB, free: 1.082 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000407/0.7771, allocations: 59.81 kB / 0.6183 GB, free: 1.023 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.7772, allocations: 27.98 kB / 0.6183 GB, free: 0.9961 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.0001428/0.7773, allocations: 153.1 kB / 0.6184 GB, free: 0.8398 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.7775, allocations: 106.8 kB / 0.6185 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008284/0.7783, allocations: 0.5046 MB / 0.619 GB, free: 224 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/0.7783, allocations: 8 kB / 0.619 GB, free: 216 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.7784, allocations: 4 kB / 0.619 GB, free: 212 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.7784, allocations: 7.984 kB / 0.6191 GB, free: 204 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006643/0.779, allocations: 0.6186 MB / 0.6197 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.7791, allocations: 4 kB / 0.6197 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.7792, allocations: 59.84 kB / 0.6197 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.7792, allocations: 4 kB / 0.6197 GB, free: 15.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.7793, allocations: 11.98 kB / 0.6197 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.7793, allocations: 7.938 kB / 0.6197 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.7793, allocations: 0 / 0.6197 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007756/0.7801, allocations: 0.6244 MB / 0.6203 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008605/0.7809, allocations: 1.007 MB / 0.6213 GB, free: 13.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002556/0.7812, allocations: 215.9 kB / 0.6215 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001592/0.7814, allocations: 23.89 kB / 0.6216 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003829/0.7818, allocations: 43.95 kB / 0.6216 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.7819, allocations: 51.94 kB / 0.6217 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.728e-05/0.7819, allocations: 23.98 kB / 0.6217 GB, free: 13.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008948/0.7828, allocations: 0.6953 MB / 0.6224 GB, free: 12.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001172/0.784, allocations: 163.8 kB / 0.6225 GB, free: 12.41 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.0007897/0.7848, allocations: 382.8 kB / 0.6229 GB, free: 12.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006177/0.7855, allocations: 399.2 kB / 0.6233 GB, free: 11.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7855, allocations: 0 / 0.6233 GB, free: 11.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003953/0.7859, allocations: 275.7 kB / 0.6235 GB, free: 11.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009951/0.7869, allocations: 225.4 kB / 0.6237 GB, free: 11.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.7888, allocations: 1.104 MB / 0.6248 GB, free: 10.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000867/0.7897, allocations: 1.136 MB / 0.6259 GB, free: 8.918 MB / 442.7 MB Notification: Performance of SimCode: time 3.01e-07/0.7897, allocations: 0 / 0.6259 GB, free: 8.918 MB / 442.7 MB [CodegenCFunctions.tpl:3420:14-3420:14:writable] Error: Template error: literalExpConst failed: {}. Error: Internal error SimCode: The model ModelicaTest.Blocks.BooleanTable could not be translated to FMU