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.002145/0.002145, allocations: 185.8 kB / 16.4 MB, free: 5.699 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.895/1.895, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001129/0.001128, allocations: 95.59 kB / 270.9 MB, free: 8.367 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.4989/0.4989, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004592/0.0004591, allocations: 15.94 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.119, allocations: 58.84 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.5714, allocations: 88.58 MB / 0.5652 GB, free: 13.98 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5717, allocations: 63.97 kB / 0.5653 GB, free: 13.92 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1296/0.7014, allocations: 29.07 MB / 0.5937 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.7014, allocations: 0 / 0.5937 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001144/0.7016, allocations: 23.92 kB / 0.5937 GB, free: 0.8594 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.003439/0.705, allocations: 1.286 MB / 0.595 GB, free: 15.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.7051, allocations: 8.031 kB / 0.595 GB, free: 15.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004929/0.7056, allocations: 98.88 kB / 0.5951 GB, free: 15.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002782/0.7084, allocations: 0.7448 MB / 0.5958 GB, free: 14.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.886e-05/0.7085, allocations: 28.53 kB / 0.5958 GB, free: 14.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.393e-05/0.7086, allocations: 24 kB / 0.5958 GB, free: 14.53 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.7098, allocations: 414.3 kB / 0.5962 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.7099, allocations: 8 kB / 0.5962 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.71, allocations: 12 kB / 0.5962 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.71, allocations: 4 kB / 0.5962 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008613/0.7109, allocations: 220.8 kB / 0.5965 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003481/0.7144, allocations: 1.61 MB / 0.598 GB, free: 12.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.7164, allocations: 0.5332 MB / 0.5986 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.5e-05/0.7165, allocations: 24.33 kB / 0.5986 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001113/0.7176, allocations: 379.5 kB / 0.5989 GB, free: 11.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 4.138e-06/0.7176, allocations: 0 / 0.5989 GB, free: 11.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.002936/0.7206, allocations: 0.705 MB / 0.5996 GB, free: 10.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002322/0.7208, allocations: 452.9 kB / 0.6001 GB, free: 9.859 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002832/0.7237, allocations: 0.9646 MB / 0.601 GB, free: 8.871 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.724, allocations: 45.7 kB / 0.601 GB, free: 8.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.7244, allocations: 351.4 kB / 0.6014 GB, free: 8.477 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.7247, allocations: 134.3 kB / 0.6015 GB, free: 8.344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.7247, allocations: 12 kB / 0.6015 GB, free: 8.332 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.7249, allocations: 330.8 kB / 0.6018 GB, free: 8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007083/0.7256, allocations: 153 kB / 0.602 GB, free: 7.852 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008755/0.7265, allocations: 379.7 kB / 0.6023 GB, free: 7.387 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006777/0.7272, allocations: 182.1 kB / 0.6025 GB, free: 7.211 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.7272, allocations: 0 / 0.6025 GB, free: 7.211 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001713/0.7289, allocations: 485.4 kB / 0.603 GB, free: 6.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.729, allocations: 12.03 kB / 0.603 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.729, allocations: 8.109 kB / 0.603 GB, free: 6.711 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/0.7291, allocations: 11.94 kB / 0.603 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006877/0.7298, allocations: 99.77 kB / 0.6031 GB, free: 6.602 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.7298, allocations: 8 kB / 0.6031 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009416/0.7308, allocations: 79.66 kB / 0.6032 GB, free: 6.516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.317e-05/0.7308, allocations: 23.98 kB / 0.6032 GB, free: 6.492 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.0007051/0.7316, allocations: 297.6 kB / 0.6035 GB, free: 6.191 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000269/0.7318, allocations: 102.7 kB / 0.6036 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.734, allocations: 0.634 MB / 0.6042 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/0.7341, allocations: 8 kB / 0.6042 GB, free: 5.438 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.669e-06/0.7341, allocations: 4 kB / 0.6042 GB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.7341, allocations: 0 / 0.6042 GB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.7353, allocations: 0.6729 MB / 0.6049 GB, free: 4.711 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.7353, allocations: 0 / 0.6049 GB, free: 4.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.7356, allocations: 51.89 kB / 0.6049 GB, free: 4.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.268e-05/0.7356, allocations: 7.953 kB / 0.6049 GB, free: 4.652 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.281e-05/0.7357, allocations: 19.98 kB / 0.605 GB, free: 4.633 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.7357, allocations: 12 kB / 0.605 GB, free: 4.621 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7357, allocations: 4 kB / 0.605 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/0.7377, allocations: 0.7451 MB / 0.6057 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004343/0.7382, allocations: 239.6 kB / 0.6059 GB, free: 3.527 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/0.7384, allocations: 16 kB / 0.6059 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006721/0.7391, allocations: 55.95 kB / 0.606 GB, free: 3.457 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.7393, allocations: 55.86 kB / 0.606 GB, free: 3.402 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.941e-05/0.7394, allocations: 23.98 kB / 0.6061 GB, free: 3.379 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001899/0.7413, allocations: 0.7537 MB / 0.6068 GB, free: 2.613 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7413, allocations: 0 / 0.6068 GB, free: 2.613 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00129/0.7426, allocations: 171.9 kB / 0.607 GB, free: 2.445 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.001518/0.7442, allocations: 494.2 kB / 0.6074 GB, free: 2.047 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001898/0.7461, allocations: 451.5 kB / 0.6079 GB, free: 1.609 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.7462, allocations: 0 / 0.6079 GB, free: 1.609 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.7472, allocations: 296.7 kB / 0.6082 GB, free: 1.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.7493, allocations: 240.8 kB / 0.6084 GB, free: 1.086 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003932/0.7533, allocations: 1.625 MB / 0.61 GB, free: 15.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008205/0.7542, allocations: 1.012 MB / 0.611 GB, free: 14.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006281/0.7548, allocations: 111.4 kB / 0.6111 GB, free: 14.25 MB / 442.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7548, allocations: 3.938 kB / 0.6111 GB, free: 14.25 MB / 442.7 MB [CodegenCppOld.tpl:12129:14-12129:14:writable] Error: Template error: literalExpConst failed: {}. [CodegenCppOld.tpl:12075:14-12075:14:writable] Error: Template error: literalExpConst failed: {}.