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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 210 kB / 8.543 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009655/0.0009655, allocations: 92.97 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2063/0.2063, allocations: 45.15 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.317e-06/9.348e-06, allocations: 3.938 kB / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1476, allocations: 63.23 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4189/0.5666, allocations: 90.81 MB / 0.5924 GB, free: 12.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.5669, allocations: 70.47 kB / 0.5925 GB, free: 12.19 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.08762/0.6545, allocations: 30.59 MB / 0.6224 GB, free: 3.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.38e-05/0.6546, allocations: 23.94 kB / 0.6224 GB, free: 3.047 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.0019/0.6566, allocations: 1.133 MB / 0.6235 GB, free: 1.875 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.6566, allocations: 8.031 kB / 0.6235 GB, free: 1.867 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.6568, allocations: 102.7 kB / 0.6236 GB, free: 1.766 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.6585, allocations: 0.8006 MB / 0.6244 GB, free: 1.051 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.584e-05/0.6585, allocations: 18.8 kB / 0.6244 GB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.023e-05/0.6586, allocations: 16 kB / 0.6244 GB, free: 1.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003616/0.659, allocations: 180.5 kB / 0.6246 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.6595, allocations: 383.3 kB / 0.625 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.6595, allocations: 0 / 0.625 GB, free: 0.5508 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.6596, allocations: 4 kB / 0.625 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.6596, allocations: 11.91 kB / 0.625 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.6616, allocations: 1.589 MB / 0.6265 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006124/0.6623, allocations: 462.7 kB / 0.627 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.6625, allocations: 180.3 kB / 0.6271 GB, free: 14.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.6625, allocations: 12.22 kB / 0.6272 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004341/0.663, allocations: 324.4 kB / 0.6275 GB, free: 14.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.236e-06/0.663, allocations: 0 / 0.6275 GB, free: 14.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.000836/0.6638, allocations: 444.4 kB / 0.6279 GB, free: 13.94 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002279/0.6641, allocations: 456.1 kB / 0.6283 GB, free: 13.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.6654, allocations: 0.9765 MB / 0.6293 GB, free: 12.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.337e-05/0.6655, allocations: 29.7 kB / 0.6293 GB, free: 12.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.6657, allocations: 197.3 kB / 0.6295 GB, free: 12.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.6658, allocations: 136 kB / 0.6296 GB, free: 12.35 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.786e-05/0.6659, allocations: 0 / 0.6296 GB, free: 12.35 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.666, allocations: 321.3 kB / 0.6299 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.6663, allocations: 132.2 kB / 0.6301 GB, free: 11.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003992/0.6667, allocations: 347.3 kB / 0.6304 GB, free: 11.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.6669, allocations: 163.8 kB / 0.6305 GB, free: 11.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.6669, allocations: 0 / 0.6305 GB, free: 11.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007673/0.6677, allocations: 493.4 kB / 0.631 GB, free: 11.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.6677, allocations: 4 kB / 0.631 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.6677, allocations: 8 kB / 0.631 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.643e-05/0.6678, allocations: 8 kB / 0.631 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.6682, allocations: 104.8 kB / 0.6311 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.6682, allocations: 8 kB / 0.6311 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.6687, allocations: 63.66 kB / 0.6312 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.6687, allocations: 18.62 kB / 0.6312 GB, free: 10.91 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 () * 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.0001992/0.6689, allocations: 158.3 kB / 0.6314 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000177/0.6691, allocations: 113.9 kB / 0.6315 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008972/0.67, allocations: 0.505 MB / 0.632 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.67, allocations: 12 kB / 0.632 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.67, allocations: 3.938 kB / 0.632 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.6701, allocations: 7.984 kB / 0.632 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007608/0.6708, allocations: 0.6424 MB / 0.6326 GB, free: 9.703 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.6708, allocations: 4 kB / 0.6326 GB, free: 9.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/0.671, allocations: 47.17 kB / 0.6327 GB, free: 9.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.739e-05/0.671, allocations: 4 kB / 0.6327 GB, free: 9.652 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.6711, allocations: 19.23 kB / 0.6327 GB, free: 9.637 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.6711, allocations: 7.938 kB / 0.6327 GB, free: 9.629 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.6711, allocations: 0 / 0.6327 GB, free: 9.629 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008196/0.6719, allocations: 0.6321 MB / 0.6333 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000297/0.6722, allocations: 233.5 kB / 0.6335 GB, free: 8.805 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.6724, allocations: 13.55 kB / 0.6336 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.6728, allocations: 47.91 kB / 0.6336 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.6729, allocations: 49.06 kB / 0.6336 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.673, allocations: 26.92 kB / 0.6337 GB, free: 8.691 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001143/0.6741, allocations: 0.7492 MB / 0.6344 GB, free: 8.156 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008834/0.675, allocations: 166.1 kB / 0.6346 GB, free: 8 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) * 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.001016/0.676, allocations: 379.5 kB / 0.6349 GB, free: 7.695 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000808/0.6769, allocations: 394.8 kB / 0.6353 GB, free: 7.426 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6769, allocations: 8.062 kB / 0.6353 GB, free: 7.418 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.6773, allocations: 269.7 kB / 0.6356 GB, free: 7.234 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.6785, allocations: 230.9 kB / 0.6358 GB, free: 7.059 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.6808, allocations: 1.156 MB / 0.6369 GB, free: 6.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009953/0.6818, allocations: 1.155 MB / 0.638 GB, free: 4.863 MB / 426.7 MB Notification: Performance of SimCode: time 4.61e-07/0.6818, allocations: 4 kB / 0.638 GB, free: 4.859 MB / 426.7 MB [CodegenCFunctions.tpl:3420:14-3420:14:writable] Error: Template error: literalExpConst failed: {}. Notification: Performance of Templates: time 0.02294/0.7048, allocations: 11.12 MB / 0.6489 GB, free: 9.801 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.makefile clang -fPIC -falign-functions -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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:2: In file included from ./ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable_model.h:85: ./ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable_literals.h:27:2: error: "[CodegenCFunctions.tpl:3420:14-3420:14] literalExpConst failed: {}" #error "[CodegenCFunctions.tpl:3420:14-3420:14] literalExpConst failed: {}" ^ 1 error generated. make: *** [: ModelicaTest_trunk_ModelicaTest.Blocks.BooleanTable.o] Error 1