Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.BooleanTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001574, allocations: 182.3 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008148/0.0008147, allocations: 82.38 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3398/0.3398, allocations: 43.56 MB / 363.8 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 12 kB / 432.6 MB, free: 5.891 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1226, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3203/0.4429, allocations: 88.64 MB / 0.5665 GB, free: 13.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.4432, allocations: 63.97 kB / 0.5665 GB, free: 13.72 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07931/0.5225, allocations: 29.06 MB / 0.5949 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5226, allocations: 0 / 0.5949 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001379/0.5227, allocations: 27.88 kB / 0.5949 GB, free: 0.6758 MB / 410.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.002778/0.5255, allocations: 1.278 MB / 0.5962 GB, free: 15.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.5256, allocations: 8.031 kB / 0.5962 GB, free: 15.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003674/0.5259, allocations: 99.75 kB / 0.5963 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.5276, allocations: 0.7731 MB / 0.5971 GB, free: 14.37 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.62e-05/0.5277, allocations: 20.94 kB / 0.5971 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.864e-05/0.5278, allocations: 32.36 kB / 0.5971 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007715/0.5286, allocations: 418.9 kB / 0.5975 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.5286, allocations: 192 / 0.5975 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.223e-05/0.5286, allocations: 19.94 kB / 0.5975 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.5287, allocations: 8 kB / 0.5975 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005294/0.5292, allocations: 219.7 kB / 0.5977 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002185/0.5314, allocations: 1.615 MB / 0.5993 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.5324, allocations: 0.5285 MB / 0.5998 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003848/0.5328, allocations: 206.8 kB / 0.6 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.5329, allocations: 7.938 kB / 0.6 GB, free: 11.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006333/0.5335, allocations: 387.5 kB / 0.6004 GB, free: 10.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.374e-06/0.5335, allocations: 0 / 0.6004 GB, free: 10.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.001627/0.5352, allocations: 0.7077 MB / 0.6011 GB, free: 9.965 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002115/0.5354, allocations: 456.9 kB / 0.6015 GB, free: 9.414 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.5371, allocations: 1.071 MB / 0.6026 GB, free: 8.316 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.817e-05/0.5372, allocations: 41.7 kB / 0.6026 GB, free: 8.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.5375, allocations: 369.1 kB / 0.603 GB, free: 7.906 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/0.5376, allocations: 126.3 kB / 0.6031 GB, free: 7.781 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.762e-05/0.5377, allocations: 15.94 kB / 0.6031 GB, free: 7.766 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5378, allocations: 326 kB / 0.6034 GB, free: 7.441 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.5382, allocations: 153 kB / 0.6036 GB, free: 7.293 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000545/0.5388, allocations: 375.8 kB / 0.6039 GB, free: 6.832 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000745/0.5395, allocations: 430.7 kB / 0.6043 GB, free: 6.363 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5395, allocations: 0 / 0.6043 GB, free: 6.363 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001197/0.5407, allocations: 0.5509 MB / 0.6049 GB, free: 5.805 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.5408, allocations: 7.938 kB / 0.6049 GB, free: 5.797 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.5408, allocations: 7.938 kB / 0.6049 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.5408, allocations: 8 kB / 0.6049 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003494/0.5412, allocations: 91.83 kB / 0.605 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.5412, allocations: 15.92 kB / 0.605 GB, free: 5.676 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.5417, allocations: 79.72 kB / 0.6051 GB, free: 5.598 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.5418, allocations: 27.98 kB / 0.6051 GB, free: 5.57 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 () * Number of clocked 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.0004735/0.5423, allocations: 298.1 kB / 0.6054 GB, free: 5.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.5425, allocations: 106.7 kB / 0.6055 GB, free: 5.164 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.5438, allocations: 0.6298 MB / 0.6061 GB, free: 4.527 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.5438, allocations: 11.98 kB / 0.6061 GB, free: 4.516 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.5438, allocations: 4 kB / 0.6061 GB, free: 4.512 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.5438, allocations: 3.984 kB / 0.6061 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008908/0.5447, allocations: 0.6691 MB / 0.6068 GB, free: 3.789 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/0.5448, allocations: 7.938 kB / 0.6068 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.5449, allocations: 47.86 kB / 0.6068 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.5449, allocations: 15.92 kB / 0.6068 GB, free: 3.719 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.545, allocations: 19.98 kB / 0.6069 GB, free: 3.699 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.544e-05/0.545, allocations: 4 kB / 0.6069 GB, free: 3.695 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.545, allocations: 0 / 0.6069 GB, free: 3.695 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.5462, allocations: 0.6582 MB / 0.6075 GB, free: 2.992 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003164/0.5465, allocations: 231.6 kB / 0.6077 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.5466, allocations: 23.98 kB / 0.6078 GB, free: 2.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/0.547, allocations: 51.97 kB / 0.6078 GB, free: 2.672 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.5472, allocations: 55.91 kB / 0.6079 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/0.5472, allocations: 23.98 kB / 0.6079 GB, free: 2.594 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001232/0.5485, allocations: 0.7537 MB / 0.6086 GB, free: 1.828 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5485, allocations: 0 / 0.6086 GB, free: 1.828 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007263/0.5492, allocations: 171.8 kB / 0.6088 GB, free: 1.66 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) * Number of clocked states: 0 () * 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.001144/0.5504, allocations: 498.5 kB / 0.6093 GB, free: 1.254 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000971/0.5513, allocations: 456.3 kB / 0.6097 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5514, allocations: 0.5 kB / 0.6097 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.5519, allocations: 291.7 kB / 0.61 GB, free: 0.5273 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.5533, allocations: 244.5 kB / 0.6102 GB, free: 296 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.5557, allocations: 1.634 MB / 0.6118 GB, free: 14.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005929/0.5563, allocations: 0.9928 MB / 0.6128 GB, free: 13.58 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003112/0.5567, allocations: 107.4 kB / 0.6129 GB, free: 13.48 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5567, allocations: 0 / 0.6129 GB, free: 13.48 MB / 442.7 MB [CodegenCppOld.tpl:11977:14-11977:14:writable] Error: Template error: literalExpConst failed: {}. [CodegenCppOld.tpl:11923:14-11923:14:writable] Error: Template error: literalExpConst failed: {}.