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.001518/0.001518, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.963/1.963, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001088/0.001088, allocations: 90.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.271/0.271, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.414e-05/3.431e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 58.86 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4802/0.5936, allocations: 88.5 MB / 0.5592 GB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.594, allocations: 64.97 kB / 0.5593 GB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1382/0.7321, allocations: 28.98 MB / 0.5876 GB, free: 6.762 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.7322, allocations: 0 / 0.5876 GB, free: 6.762 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001461/0.7324, allocations: 27.92 kB / 0.5876 GB, free: 6.734 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.003008/0.7354, allocations: 1.077 MB / 0.5887 GB, free: 5.621 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.7354, allocations: 8.031 kB / 0.5887 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005247/0.736, allocations: 102.8 kB / 0.5888 GB, free: 5.512 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/0.7389, allocations: 0.7271 MB / 0.5895 GB, free: 4.852 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.603e-05/0.7391, allocations: 23 kB / 0.5895 GB, free: 4.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.7392, allocations: 26.86 kB / 0.5895 GB, free: 4.816 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009714/0.7402, allocations: 409 kB / 0.5899 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.7402, allocations: 0 / 0.5899 GB, free: 4.449 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.883e-05/0.7403, allocations: 10.94 kB / 0.5899 GB, free: 4.445 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.7403, allocations: 4 kB / 0.5899 GB, free: 4.441 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006057/0.7409, allocations: 210.2 kB / 0.5901 GB, free: 4.297 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.7444, allocations: 1.618 MB / 0.5917 GB, free: 2.871 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.7457, allocations: 0.496 MB / 0.5922 GB, free: 2.418 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005145/0.7462, allocations: 189.5 kB / 0.5924 GB, free: 2.262 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.351e-05/0.7463, allocations: 12.16 kB / 0.5924 GB, free: 2.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008386/0.7471, allocations: 364.4 kB / 0.5927 GB, free: 1.938 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 4.038e-06/0.7471, allocations: 0 / 0.5927 GB, free: 1.938 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.001761/0.7489, allocations: 0.5219 MB / 0.5932 GB, free: 1.523 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002572/0.7492, allocations: 460.1 kB / 0.5937 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002474/0.7517, allocations: 0.949 MB / 0.5946 GB, free: 244 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001909/0.7519, allocations: 44.2 kB / 0.5946 GB, free: 204 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003373/0.7523, allocations: 363.3 kB / 0.595 GB, free: 12 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.7525, allocations: 124.6 kB / 0.5951 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.7526, allocations: 9.688 kB / 0.5951 GB, free: 15.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.7527, allocations: 331.5 kB / 0.5954 GB, free: 15.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/0.7532, allocations: 136.6 kB / 0.5956 GB, free: 15.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/0.7539, allocations: 362.3 kB / 0.5959 GB, free: 15.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004765/0.7544, allocations: 170.9 kB / 0.5961 GB, free: 15.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.7544, allocations: 4 kB / 0.5961 GB, free: 15.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001256/0.7557, allocations: 460.4 kB / 0.5965 GB, free: 14.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.7558, allocations: 8 kB / 0.5965 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.7558, allocations: 4 kB / 0.5965 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.7558, allocations: 4 kB / 0.5965 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000726/0.7566, allocations: 95.7 kB / 0.5966 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.7566, allocations: 11.98 kB / 0.5966 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009961/0.7576, allocations: 83.56 kB / 0.5967 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.435e-05/0.7577, allocations: 19.81 kB / 0.5967 GB, free: 14.46 MB / 410.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.0003067/0.758, allocations: 185.3 kB / 0.5969 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.7584, allocations: 98.83 kB / 0.597 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.7604, allocations: 0.6098 MB / 0.5976 GB, free: 13.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.7605, allocations: 8 kB / 0.5976 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.7605, allocations: 4 kB / 0.5976 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.7605, allocations: 0 / 0.5976 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.7622, allocations: 0.6713 MB / 0.5983 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.7622, allocations: 0 / 0.5983 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003483/0.7626, allocations: 51.09 kB / 0.5983 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.749e-05/0.7626, allocations: 7.953 kB / 0.5983 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.523e-05/0.7627, allocations: 18.92 kB / 0.5983 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.7627, allocations: 8 kB / 0.5983 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.7627, allocations: 4 kB / 0.5984 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.7646, allocations: 0.7138 MB / 0.599 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.7652, allocations: 219.9 kB / 0.5993 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.7655, allocations: 30.11 kB / 0.5993 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007559/0.7662, allocations: 55.64 kB / 0.5993 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.7664, allocations: 53.98 kB / 0.5994 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.976e-05/0.7665, allocations: 25.11 kB / 0.5994 GB, free: 12.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001707/0.7682, allocations: 0.7441 MB / 0.6001 GB, free: 11.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.42e-07/0.7683, allocations: 0 / 0.6001 GB, free: 11.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001196/0.7695, allocations: 180.5 kB / 0.6003 GB, free: 11.36 MB / 410.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.001435/0.7709, allocations: 448.4 kB / 0.6007 GB, free: 10.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.7723, allocations: 410.9 kB / 0.6011 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.7724, allocations: 4.5 kB / 0.6011 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007789/0.7732, allocations: 282.9 kB / 0.6014 GB, free: 10.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/0.7754, allocations: 260.5 kB / 0.6017 GB, free: 10.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.7788, allocations: 1.17 MB / 0.6028 GB, free: 9.254 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007988/0.7796, allocations: 1.007 MB / 0.6038 GB, free: 8.238 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006605/0.7803, allocations: 105.9 kB / 0.6039 GB, free: 8.141 MB / 410.7 MB Notification: Performance of SimCode: time 1.543e-06/0.7803, allocations: 4 kB / 0.6039 GB, free: 8.137 MB / 410.7 MB [CodegenCpp.tpl:12105:14-12105:14:writable] Error: Template error: literalExpConst failed: {}. [CodegenCpp.tpl:12051:14-12051:14:writable] Error: Template error: literalExpConst failed: {}.