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.001423/0.001423, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.975/1.975, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001149/0.001149, allocations: 79.8 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.304/0.304, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.346e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.3946, allocations: 58.85 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.5578, allocations: 87.84 MB / 0.5517 GB, free: 11.48 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.5582, allocations: 67.97 kB / 0.5517 GB, free: 11.41 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.136/0.6942, allocations: 28.75 MB / 0.5798 GB, free: 14.63 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6943, allocations: 3.938 kB / 0.5798 GB, free: 14.62 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001405/0.6944, allocations: 27.94 kB / 0.5798 GB, free: 14.6 MB / 427.1 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.002909/0.6973, allocations: 1.08 MB / 0.5809 GB, free: 13.43 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.6974, allocations: 11.97 kB / 0.5809 GB, free: 13.42 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006071/0.698, allocations: 98.78 kB / 0.581 GB, free: 13.32 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002768/0.7008, allocations: 0.7221 MB / 0.5817 GB, free: 12.55 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.838e-05/0.7009, allocations: 15.98 kB / 0.5817 GB, free: 12.53 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.995e-05/0.701, allocations: 27.88 kB / 0.5817 GB, free: 12.5 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006085/0.7016, allocations: 181.1 kB / 0.5819 GB, free: 12.33 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009009/0.7026, allocations: 377.3 kB / 0.5823 GB, free: 11.9 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.7026, allocations: 3.938 kB / 0.5823 GB, free: 11.9 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.7027, allocations: 0 / 0.5823 GB, free: 11.9 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.814e-05/0.7027, allocations: 8 kB / 0.5823 GB, free: 11.89 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003472/0.7062, allocations: 1.56 MB / 0.5838 GB, free: 10.27 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.7074, allocations: 475.3 kB / 0.5843 GB, free: 9.73 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/0.7078, allocations: 183 kB / 0.5844 GB, free: 9.527 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.7079, allocations: 8.219 kB / 0.5844 GB, free: 9.52 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008178/0.7087, allocations: 346.8 kB / 0.5848 GB, free: 9.145 MB / 427.1 MB Notification: Performance of pre-optimization done (n=48): time 3.727e-06/0.7087, allocations: 0 / 0.5848 GB, free: 9.145 MB / 427.1 MB Notification: Performance of matching and sorting (n=48): time 0.002419/0.7112, allocations: 0.4963 MB / 0.5853 GB, free: 8.641 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003886/0.7116, allocations: 460.9 kB / 0.5857 GB, free: 8.086 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00412/0.7158, allocations: 0.9023 MB / 0.5866 GB, free: 7.16 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002338/0.7161, allocations: 37.7 kB / 0.5866 GB, free: 7.117 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007055/0.7168, allocations: 351.6 kB / 0.587 GB, free: 6.773 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00043/0.7172, allocations: 130.3 kB / 0.5871 GB, free: 6.645 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.7173, allocations: 0 / 0.5871 GB, free: 6.645 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0002396/0.7176, allocations: 326.8 kB / 0.5874 GB, free: 6.316 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007011/0.7183, allocations: 129.1 kB / 0.5875 GB, free: 6.191 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009399/0.7193, allocations: 347.5 kB / 0.5878 GB, free: 5.762 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006454/0.72, allocations: 167 kB / 0.588 GB, free: 5.602 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.72, allocations: 0 / 0.588 GB, free: 5.602 MB / 427.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002043/0.7221, allocations: 409.4 kB / 0.5884 GB, free: 5.195 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/0.7222, allocations: 8 kB / 0.5884 GB, free: 5.188 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.7222, allocations: 4 kB / 0.5884 GB, free: 5.184 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.278e-05/0.7222, allocations: 7.938 kB / 0.5884 GB, free: 5.176 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.7233, allocations: 95.88 kB / 0.5885 GB, free: 5.082 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.801e-05/0.7233, allocations: 11.94 kB / 0.5885 GB, free: 5.07 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.7248, allocations: 67.72 kB / 0.5886 GB, free: 5.004 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.7249, allocations: 20 kB / 0.5886 GB, free: 4.984 MB / 427.1 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.0003789/0.7253, allocations: 156.8 kB / 0.5888 GB, free: 4.824 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004948/0.7259, allocations: 106.8 kB / 0.5889 GB, free: 4.719 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.7287, allocations: 0.5638 MB / 0.5894 GB, free: 4.141 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.728e-05/0.7288, allocations: 15.92 kB / 0.5894 GB, free: 4.125 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.631e-05/0.7288, allocations: 4.25 kB / 0.5894 GB, free: 4.121 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-05/0.7289, allocations: 3.984 kB / 0.5894 GB, free: 4.117 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.7309, allocations: 0.6226 MB / 0.59 GB, free: 3.457 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/0.7309, allocations: 4 kB / 0.59 GB, free: 3.453 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005422/0.7315, allocations: 47.91 kB / 0.5901 GB, free: 3.406 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.089e-05/0.7315, allocations: 4 kB / 0.5901 GB, free: 3.402 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.7317, allocations: 15.98 kB / 0.5901 GB, free: 3.387 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.338e-05/0.7317, allocations: 7.953 kB / 0.5901 GB, free: 3.379 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.127e-05/0.7317, allocations: 7.938 kB / 0.5901 GB, free: 3.371 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.7345, allocations: 0.6734 MB / 0.5908 GB, free: 2.609 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008523/0.7354, allocations: 223.8 kB / 0.591 GB, free: 2.371 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004/0.7359, allocations: 15.95 kB / 0.591 GB, free: 2.355 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.7371, allocations: 47.95 kB / 0.5911 GB, free: 2.309 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.7375, allocations: 55.88 kB / 0.5911 GB, free: 2.254 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.7376, allocations: 23.98 kB / 0.5911 GB, free: 2.23 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.002752/0.7404, allocations: 0.6953 MB / 0.5918 GB, free: 1.523 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.944e-06/0.7404, allocations: 4 kB / 0.5918 GB, free: 1.52 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001924/0.7424, allocations: 163.8 kB / 0.592 GB, free: 1.359 MB / 427.1 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.002084/0.7445, allocations: 414.1 kB / 0.5924 GB, free: 0.9961 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.7465, allocations: 396.1 kB / 0.5927 GB, free: 0.6094 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.7465, allocations: 0 / 0.5927 GB, free: 0.6094 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.7478, allocations: 256.7 kB / 0.593 GB, free: 368 kB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/0.7512, allocations: 255 kB / 0.5932 GB, free: 116 kB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004997/0.7563, allocations: 1.138 MB / 0.5943 GB, free: 14.92 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001223/0.7575, allocations: 1.008 MB / 0.5953 GB, free: 13.88 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009299/0.7585, allocations: 115.3 kB / 0.5954 GB, free: 13.77 MB / 443.1 MB Notification: Performance of SimCode: time 1.683e-06/0.7585, allocations: 0 / 0.5954 GB, free: 13.77 MB / 443.1 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: {}.