Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.BooleanTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Blocks.BooleanTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009618/0.0009618, allocations: 194 kB / 16.79 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 244.1 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007394/0.0007394, allocations: 101.6 kB / 296.1 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2802/0.2802, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002418, allocations: 8 kB / 465.9 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2536, allocations: 62.96 MB / 0.5165 GB, free: 37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09854/0.3522, allocations: 91.49 MB / 0.6058 GB, free: 13.91 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.3524, allocations: 67.98 kB / 0.6059 GB, free: 13.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08142/0.4338, allocations: 31.51 MB / 0.6367 GB, free: 14.29 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4339, allocations: 0 / 0.6367 GB, free: 14.29 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.28e-05/0.4339, allocations: 23.94 kB / 0.6367 GB, free: 14.27 MB / 458.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.002047/0.436, allocations: 1.345 MB / 0.638 GB, free: 12.83 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.436, allocations: 12.02 kB / 0.638 GB, free: 12.82 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.4362, allocations: 107.6 kB / 0.6381 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.4377, allocations: 0.8367 MB / 0.6389 GB, free: 11.82 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.4377, allocations: 24.88 kB / 0.6389 GB, free: 11.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.881e-05/0.4378, allocations: 28.36 kB / 0.639 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006426/0.4384, allocations: 419 kB / 0.6394 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.4384, allocations: 4.188 kB / 0.6394 GB, free: 11.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.946e-05/0.4385, allocations: 19.88 kB / 0.6394 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.4385, allocations: 4 kB / 0.6394 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000446/0.4389, allocations: 211.8 kB / 0.6396 GB, free: 11.07 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.4407, allocations: 1.642 MB / 0.6412 GB, free: 9.352 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009637/0.4417, allocations: 0.5285 MB / 0.6417 GB, free: 8.75 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.4421, allocations: 206.8 kB / 0.6419 GB, free: 8.523 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.4421, allocations: 20.14 kB / 0.6419 GB, free: 8.504 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005684/0.4427, allocations: 379.5 kB / 0.6423 GB, free: 8.094 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 1.973e-06/0.4427, allocations: 0 / 0.6423 GB, free: 8.094 MB / 458.7 MB Notification: Performance of matching and sorting (n=48): time 0.001444/0.4441, allocations: 0.7203 MB / 0.643 GB, free: 7.367 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/0.4443, allocations: 453 kB / 0.6434 GB, free: 6.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.4458, allocations: 1.138 MB / 0.6445 GB, free: 5.66 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/0.4458, allocations: 45.7 kB / 0.6446 GB, free: 5.609 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.4461, allocations: 393.3 kB / 0.645 GB, free: 5.223 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.4463, allocations: 130.3 kB / 0.6451 GB, free: 5.094 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.167e-05/0.4463, allocations: 8 kB / 0.6451 GB, free: 5.086 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4464, allocations: 334 kB / 0.6454 GB, free: 4.754 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000338/0.4468, allocations: 157 kB / 0.6456 GB, free: 4.602 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004903/0.4473, allocations: 371.8 kB / 0.6459 GB, free: 4.145 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006964/0.448, allocations: 429.7 kB / 0.6463 GB, free: 3.676 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.448, allocations: 0 / 0.6463 GB, free: 3.676 MB / 458.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001019/0.449, allocations: 0.5551 MB / 0.6469 GB, free: 3.113 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.449, allocations: 15.88 kB / 0.6469 GB, free: 3.098 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-06/0.4491, allocations: 4 kB / 0.6469 GB, free: 3.094 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4491, allocations: 4 kB / 0.6469 GB, free: 3.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.4494, allocations: 95.83 kB / 0.647 GB, free: 2.996 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.4494, allocations: 7.938 kB / 0.647 GB, free: 2.988 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.4498, allocations: 87.72 kB / 0.6471 GB, free: 2.902 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.833e-05/0.4499, allocations: 23.98 kB / 0.6471 GB, free: 2.879 MB / 458.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.0003624/0.4503, allocations: 297.6 kB / 0.6474 GB, free: 2.578 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.4504, allocations: 106.6 kB / 0.6475 GB, free: 2.473 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.4516, allocations: 0.6387 MB / 0.6481 GB, free: 1.828 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.4516, allocations: 8 kB / 0.6481 GB, free: 1.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4516, allocations: 0 / 0.6481 GB, free: 1.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.4516, allocations: 7.984 kB / 0.6481 GB, free: 1.812 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007353/0.4524, allocations: 0.6976 MB / 0.6488 GB, free: 1.066 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4524, allocations: 3.938 kB / 0.6488 GB, free: 1.062 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.4526, allocations: 56.03 kB / 0.6489 GB, free: 1.008 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.4526, allocations: 11.94 kB / 0.6489 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.804e-05/0.4526, allocations: 15.98 kB / 0.6489 GB, free: 0.9805 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4526, allocations: 4 kB / 0.6489 GB, free: 0.9766 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4526, allocations: 4 kB / 0.6489 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.4537, allocations: 0.6686 MB / 0.6495 GB, free: 268 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.454, allocations: 235.6 kB / 0.6498 GB, free: 12 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/0.4541, allocations: 24.05 kB / 0.6498 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.4545, allocations: 51.91 kB / 0.6498 GB, free: 15.94 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.4546, allocations: 51.94 kB / 0.6499 GB, free: 15.89 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-05/0.4546, allocations: 23.98 kB / 0.6499 GB, free: 15.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.4557, allocations: 0.8027 MB / 0.6507 GB, free: 15.05 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.463e-06/0.4557, allocations: 0 / 0.6507 GB, free: 15.05 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006056/0.4563, allocations: 191.8 kB / 0.6509 GB, free: 14.86 MB / 474.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.0009703/0.4573, allocations: 492.3 kB / 0.6514 GB, free: 14.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0008946/0.4582, allocations: 451.8 kB / 0.6518 GB, free: 14.08 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4582, allocations: 4.125 kB / 0.6518 GB, free: 14.08 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005292/0.4587, allocations: 288.7 kB / 0.6521 GB, free: 13.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.4601, allocations: 254.5 kB / 0.6523 GB, free: 13.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.4623, allocations: 1.715 MB / 0.654 GB, free: 11.78 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005374/0.4628, allocations: 1.009 MB / 0.655 GB, free: 10.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002663/0.4631, allocations: 103.4 kB / 0.6551 GB, free: 10.64 MB / 474.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4631, allocations: 4 kB / 0.6551 GB, free: 10.64 MB / 474.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: {}.