Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.BooleanTable.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002324/0.002324, allocations: 170.2 kB / 8.144 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.878/1.878, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001255, allocations: 85.25 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2943/0.2943, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.255e-06/8.406e-06, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2718, allocations: 58.83 MB / 476.5 MB, free: 5.07 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1568/0.4286, allocations: 87.77 MB / 0.5511 GB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.429, allocations: 71.95 kB / 0.5511 GB, free: 11.22 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1324/0.5614, allocations: 28.16 MB / 0.5786 GB, free: 15.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001385/0.5616, allocations: 23.83 kB / 0.5787 GB, free: 15 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.002897/0.5645, allocations: 1.092 MB / 0.5797 GB, free: 13.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.5645, allocations: 12.03 kB / 0.5797 GB, free: 13.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000494/0.5651, allocations: 94.78 kB / 0.5798 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002662/0.5678, allocations: 0.7338 MB / 0.5805 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.885e-05/0.5678, allocations: 12 kB / 0.5806 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.904e-05/0.5679, allocations: 16 kB / 0.5806 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006721/0.5686, allocations: 188.9 kB / 0.5808 GB, free: 12.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008821/0.5695, allocations: 382.3 kB / 0.5811 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.5696, allocations: 7.938 kB / 0.5811 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.644e-05/0.5696, allocations: 0 / 0.5811 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.5697, allocations: 8 kB / 0.5811 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003752/0.5734, allocations: 1.572 MB / 0.5827 GB, free: 10.63 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.575, allocations: 467.3 kB / 0.5831 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006164/0.5756, allocations: 183 kB / 0.5833 GB, free: 9.902 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.807e-05/0.5757, allocations: 7.938 kB / 0.5833 GB, free: 9.895 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001052/0.5767, allocations: 330.8 kB / 0.5836 GB, free: 9.535 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 4.579e-06/0.5768, allocations: 0 / 0.5836 GB, free: 9.535 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.00198/0.5787, allocations: 440.5 kB / 0.584 GB, free: 9.098 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000303/0.5791, allocations: 452.9 kB / 0.5845 GB, free: 8.551 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003162/0.5822, allocations: 0.914 MB / 0.5854 GB, free: 7.613 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.5824, allocations: 37.64 kB / 0.5854 GB, free: 7.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.5826, allocations: 175.3 kB / 0.5856 GB, free: 7.398 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002628/0.5829, allocations: 130.3 kB / 0.5857 GB, free: 7.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.583, allocations: 0 / 0.5857 GB, free: 7.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.5832, allocations: 326.8 kB / 0.586 GB, free: 6.941 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.5838, allocations: 133.3 kB / 0.5861 GB, free: 6.812 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.5849, allocations: 350.9 kB / 0.5865 GB, free: 6.379 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007429/0.5856, allocations: 157.8 kB / 0.5866 GB, free: 6.227 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.5857, allocations: 0 / 0.5866 GB, free: 6.227 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001907/0.5876, allocations: 409.5 kB / 0.587 GB, free: 5.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.5876, allocations: 11.98 kB / 0.587 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.5877, allocations: 4 kB / 0.587 GB, free: 5.805 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.708e-05/0.5877, allocations: 8 kB / 0.587 GB, free: 5.797 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.5888, allocations: 95.83 kB / 0.5871 GB, free: 5.703 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.023e-05/0.5889, allocations: 7.938 kB / 0.5871 GB, free: 5.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008004/0.5897, allocations: 55.72 kB / 0.5872 GB, free: 5.641 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-05/0.5898, allocations: 27.92 kB / 0.5872 GB, free: 5.613 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.0003144/0.5901, allocations: 79.42 kB / 0.5873 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005895/0.5907, allocations: 102.8 kB / 0.5874 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002317/0.593, allocations: 0.505 MB / 0.5879 GB, free: 4.914 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/0.5931, allocations: 8 kB / 0.5879 GB, free: 4.906 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.5931, allocations: 4 kB / 0.5879 GB, free: 4.902 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.866e-05/0.5932, allocations: 7.969 kB / 0.5879 GB, free: 4.895 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.5949, allocations: 0.6226 MB / 0.5885 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.5949, allocations: 0 / 0.5885 GB, free: 4.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.5954, allocations: 43.92 kB / 0.5885 GB, free: 4.191 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/0.5954, allocations: 15.98 kB / 0.5886 GB, free: 4.176 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.562e-05/0.5955, allocations: 8 kB / 0.5886 GB, free: 4.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.61e-05/0.5955, allocations: 11.89 kB / 0.5886 GB, free: 4.156 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.5955, allocations: 4 kB / 0.5886 GB, free: 4.152 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002046/0.5976, allocations: 0.6122 MB / 0.5892 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006369/0.5983, allocations: 227.7 kB / 0.5894 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003718/0.5986, allocations: 19.98 kB / 0.5894 GB, free: 3.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.5997, allocations: 43.97 kB / 0.5894 GB, free: 3.145 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.6, allocations: 43.84 kB / 0.5895 GB, free: 3.102 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.6001, allocations: 23.98 kB / 0.5895 GB, free: 3.078 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002391/0.6025, allocations: 0.7069 MB / 0.5902 GB, free: 2.359 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001554/0.6041, allocations: 163.8 kB / 0.5904 GB, free: 2.199 MB / 426.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.001655/0.6057, allocations: 390.5 kB / 0.5907 GB, free: 1.844 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001705/0.6075, allocations: 395.9 kB / 0.5911 GB, free: 1.461 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6075, allocations: 0 / 0.5911 GB, free: 1.461 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.6086, allocations: 271.7 kB / 0.5914 GB, free: 1.195 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002776/0.6114, allocations: 235.9 kB / 0.5916 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004931/0.6163, allocations: 1.156 MB / 0.5927 GB, free: 15.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002046/0.6184, allocations: 1.129 MB / 0.5938 GB, free: 14.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6185, allocations: 0 / 0.5938 GB, free: 14.6 MB / 442.7 MB [CodegenCpp.tpl:12015:14-12015:14:writable] Error: Template error: literalExpConst failed: {}. [CodegenCpp.tpl:11961:14-11961:14:writable] Error: Template error: literalExpConst failed: {}.