Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Blocks.BooleanTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008266/0.0008266, allocations: 110.5 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2779/0.2779, allocations: 45.23 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002393/0.0002393, allocations: 4 kB / 468.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2572, allocations: 63.25 MB / 0.5192 GB, free: 37.62 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09871/0.3559, allocations: 91.61 MB / 0.6086 GB, free: 11.85 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/0.3562, allocations: 71.97 kB / 0.6087 GB, free: 11.78 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08117/0.4374, allocations: 31.53 MB / 0.6395 GB, free: 12.21 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4374, allocations: 0 / 0.6395 GB, free: 12.21 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001192/0.4375, allocations: 23.98 kB / 0.6395 GB, free: 12.19 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.002582/0.4401, allocations: 1.368 MB / 0.6409 GB, free: 10.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.4402, allocations: 12.03 kB / 0.6409 GB, free: 10.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003558/0.4405, allocations: 102.7 kB / 0.641 GB, free: 10.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.4423, allocations: 0.7973 MB / 0.6418 GB, free: 9.762 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.386e-05/0.4424, allocations: 24.55 kB / 0.6418 GB, free: 9.738 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.249e-05/0.4424, allocations: 20 kB / 0.6418 GB, free: 9.719 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.4431, allocations: 426.3 kB / 0.6422 GB, free: 9.246 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.4431, allocations: 3.984 kB / 0.6422 GB, free: 9.242 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.4432, allocations: 8 kB / 0.6422 GB, free: 9.234 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4432, allocations: 7.953 kB / 0.6422 GB, free: 9.227 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000457/0.4437, allocations: 223.7 kB / 0.6424 GB, free: 9.008 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001976/0.4457, allocations: 1.635 MB / 0.644 GB, free: 7.297 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009744/0.4466, allocations: 0.541 MB / 0.6446 GB, free: 6.684 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.4467, allocations: 8.219 kB / 0.6446 GB, free: 6.676 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005813/0.4473, allocations: 379.6 kB / 0.6449 GB, free: 6.266 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.424e-06/0.4473, allocations: 3.938 kB / 0.6449 GB, free: 6.262 MB / 458.7 MB Notification: Performance of matching and sorting (n=48): time 0.00149/0.4488, allocations: 0.7127 MB / 0.6456 GB, free: 5.543 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001544/0.4489, allocations: 456.9 kB / 0.6461 GB, free: 4.992 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.4503, allocations: 1.024 MB / 0.6471 GB, free: 3.949 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/0.4504, allocations: 45.7 kB / 0.6471 GB, free: 3.898 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.4507, allocations: 385.3 kB / 0.6475 GB, free: 3.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.4508, allocations: 138.3 kB / 0.6476 GB, free: 3.383 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.973e-05/0.4508, allocations: 8 kB / 0.6476 GB, free: 3.375 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.562e-05/0.4509, allocations: 333.9 kB / 0.6479 GB, free: 3.043 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.4513, allocations: 153 kB / 0.6481 GB, free: 2.895 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.4517, allocations: 375.8 kB / 0.6484 GB, free: 2.434 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003471/0.4521, allocations: 188.1 kB / 0.6486 GB, free: 2.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4521, allocations: 0 / 0.6486 GB, free: 2.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001025/0.4531, allocations: 0.5589 MB / 0.6492 GB, free: 1.684 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.4531, allocations: 8 kB / 0.6492 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.4531, allocations: 0 / 0.6492 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.4532, allocations: 8 kB / 0.6492 GB, free: 1.668 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/0.4535, allocations: 95.83 kB / 0.6493 GB, free: 1.574 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.4535, allocations: 7.938 kB / 0.6493 GB, free: 1.566 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004366/0.454, allocations: 79.81 kB / 0.6494 GB, free: 1.488 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.956e-05/0.454, allocations: 23.98 kB / 0.6494 GB, free: 1.465 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.0003621/0.4544, allocations: 301.6 kB / 0.6497 GB, free: 1.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.4546, allocations: 106.7 kB / 0.6498 GB, free: 1.055 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.4557, allocations: 0.6423 MB / 0.6504 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.4557, allocations: 8 kB / 0.6504 GB, free: 404 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4558, allocations: 0 / 0.6504 GB, free: 404 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4558, allocations: 7.984 kB / 0.6504 GB, free: 396 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007337/0.4565, allocations: 0.7016 MB / 0.6511 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.4565, allocations: 128 / 0.6511 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.4567, allocations: 51.91 kB / 0.6511 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.4567, allocations: 8 kB / 0.6511 GB, free: 15.58 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/0.4567, allocations: 19.98 kB / 0.6512 GB, free: 15.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.217e-06/0.4567, allocations: 4 kB / 0.6512 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.4567, allocations: 4.156 kB / 0.6512 GB, free: 15.55 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.4578, allocations: 0.7545 MB / 0.6519 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003099/0.4581, allocations: 239.6 kB / 0.6521 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.4583, allocations: 20 kB / 0.6522 GB, free: 14.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003651/0.4586, allocations: 55.95 kB / 0.6522 GB, free: 14.39 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.4587, allocations: 59.81 kB / 0.6523 GB, free: 14.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.4588, allocations: 23.98 kB / 0.6523 GB, free: 14.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001013/0.4598, allocations: 0.8066 MB / 0.6531 GB, free: 13.49 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4598, allocations: 0 / 0.6531 GB, free: 13.49 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006078/0.4604, allocations: 187.7 kB / 0.6533 GB, free: 13.3 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.001038/0.4615, allocations: 495.8 kB / 0.6537 GB, free: 12.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0008557/0.4623, allocations: 447.5 kB / 0.6542 GB, free: 12.52 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4624, allocations: 0 / 0.6542 GB, free: 12.52 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005146/0.4629, allocations: 301.2 kB / 0.6544 GB, free: 12.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009653/0.4639, allocations: 248.4 kB / 0.6547 GB, free: 11.99 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.466, allocations: 1.631 MB / 0.6563 GB, free: 10.31 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.4665, allocations: 1.032 MB / 0.6573 GB, free: 9.25 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004612/0.467, allocations: 197.8 kB / 0.6575 GB, free: 9.055 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/0.4672, allocations: 115.3 kB / 0.6576 GB, free: 8.941 MB / 474.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4672, allocations: 0 / 0.6576 GB, free: 8.941 MB / 474.7 MB [CodegenCFunctions.tpl:3817:14-3817:14:writable] Error: Template error: literalExpConst failed: {}. Notification: Performance of Templates: time 0.01923/0.4864, allocations: 12.17 MB / 0.6695 GB, free: 12.83 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_trunk_ModelicaTest_Blocks_BooleanTable -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.o ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.c In file included from ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.c:7: In file included from ./ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable_model.h:92: ./ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable_literals.h:27:2: error: "[CodegenCFunctions.tpl:3817:14-3817:14] literalExpConst failed: {}" #error "[CodegenCFunctions.tpl:3817:14-3817:14] literalExpConst failed: {}" ^ 1 error generated. make: *** [: ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.o] Error 1