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: "" <> buildModelFMU(ModelicaTest.Blocks.BooleanTable,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.BooleanTable,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_BooleanTable",fmuType="me",version="2.0",platforms={"static"}) [: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.001107/0.001107, allocations: 203.4 kB / 8.543 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008656/0.0008656, allocations: 90.28 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.1688/0.1688, allocations: 45.14 MB / 383.4 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1976/0.3664, allocations: 69.36 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08575/0.4522, allocations: 63.25 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3198/0.7721, allocations: 90.8 MB / 0.5925 GB, free: 12.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.7723, allocations: 61.78 kB / 0.5926 GB, free: 12.22 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.08909/0.8615, allocations: 31.75 MB / 0.6236 GB, free: 1.906 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.8615, allocations: 15.94 kB / 0.6236 GB, free: 1.891 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003416/0.8619, allocations: 102.7 kB / 0.6237 GB, free: 1.789 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.8636, allocations: 0.7935 MB / 0.6245 GB, free: 1.082 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.944e-05/0.8636, allocations: 15.38 kB / 0.6245 GB, free: 1.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.685e-05/0.8637, allocations: 19.98 kB / 0.6245 GB, free: 1.051 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003873/0.8641, allocations: 182.4 kB / 0.6247 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.8646, allocations: 379 kB / 0.6251 GB, free: 0.582 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.8647, allocations: 0 / 0.6251 GB, free: 0.582 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.721e-05/0.8647, allocations: 3.984 kB / 0.6251 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.8647, allocations: 11.91 kB / 0.6251 GB, free: 0.5664 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.8667, allocations: 1.597 MB / 0.6266 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.8674, allocations: 465.9 kB / 0.6271 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002536/0.8676, allocations: 182.2 kB / 0.6273 GB, free: 14.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.8677, allocations: 7.188 kB / 0.6273 GB, free: 14.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004507/0.8681, allocations: 324.8 kB / 0.6276 GB, free: 14.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.966e-06/0.8681, allocations: 0 / 0.6276 GB, free: 14.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=48): time 0.0008335/0.869, allocations: 447.9 kB / 0.628 GB, free: 13.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001811/0.8692, allocations: 448.2 kB / 0.6284 GB, free: 13.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001453/0.8706, allocations: 0.9789 MB / 0.6294 GB, free: 12.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/0.8707, allocations: 32.45 kB / 0.6294 GB, free: 12.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.8709, allocations: 195.2 kB / 0.6296 GB, free: 12.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.871, allocations: 121.9 kB / 0.6297 GB, free: 12.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.882e-05/0.871, allocations: 4 kB / 0.6297 GB, free: 12.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.8711, allocations: 328 kB / 0.63 GB, free: 12.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.8713, allocations: 132.9 kB / 0.6302 GB, free: 11.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.8717, allocations: 345.8 kB / 0.6305 GB, free: 11.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.8719, allocations: 165.1 kB / 0.6306 GB, free: 11.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.8719, allocations: 4 kB / 0.6307 GB, free: 11.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007927/0.8727, allocations: 491 kB / 0.6311 GB, free: 11.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.8728, allocations: 8 kB / 0.6311 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.8728, allocations: 0 / 0.6311 GB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.8728, allocations: 8 kB / 0.6311 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003657/0.8732, allocations: 95.89 kB / 0.6312 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.8732, allocations: 11.98 kB / 0.6312 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004575/0.8737, allocations: 63.66 kB / 0.6313 GB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.8737, allocations: 23.88 kB / 0.6313 GB, free: 10.94 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.0001559/0.8739, allocations: 160.9 kB / 0.6315 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.874, allocations: 106.7 kB / 0.6316 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008485/0.8749, allocations: 0.5099 MB / 0.6321 GB, free: 10.28 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.8749, allocations: 15.94 kB / 0.6321 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.8749, allocations: 11.88 kB / 0.6321 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.8749, allocations: 3.984 kB / 0.6321 GB, free: 10.25 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006997/0.8757, allocations: 0.6427 MB / 0.6327 GB, free: 9.727 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.8757, allocations: 0 / 0.6327 GB, free: 9.727 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.8758, allocations: 51.16 kB / 0.6328 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.8758, allocations: 4 kB / 0.6328 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.8759, allocations: 15.55 kB / 0.6328 GB, free: 9.664 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.8759, allocations: 4 kB / 0.6328 GB, free: 9.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.8759, allocations: 4 kB / 0.6328 GB, free: 9.656 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008033/0.8767, allocations: 0.6258 MB / 0.6334 GB, free: 9.059 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009406/0.8777, allocations: 1.037 MB / 0.6344 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.878, allocations: 231.9 kB / 0.6347 GB, free: 7.836 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.8781, allocations: 19.28 kB / 0.6347 GB, free: 7.824 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.8785, allocations: 43.95 kB / 0.6347 GB, free: 7.781 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.8786, allocations: 46.44 kB / 0.6348 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/0.8787, allocations: 23.73 kB / 0.6348 GB, free: 7.727 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0009919/0.8797, allocations: 0.7482 MB / 0.6355 GB, free: 7.191 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001262/0.881, allocations: 169.3 kB / 0.6357 GB, free: 7.039 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.0008864/0.8819, allocations: 376 kB / 0.636 GB, free: 6.738 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006549/0.8825, allocations: 401.1 kB / 0.6364 GB, free: 6.457 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.8825, allocations: 0 / 0.6364 GB, free: 6.457 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000402/0.8829, allocations: 277.8 kB / 0.6367 GB, free: 6.266 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.8841, allocations: 241.6 kB / 0.6369 GB, free: 6.078 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.8862, allocations: 1.148 MB / 0.638 GB, free: 5.055 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009175/0.8871, allocations: 1.152 MB / 0.6392 GB, free: 3.898 MB / 426.7 MB Notification: Performance of SimCode: time 2.31e-07/0.8871, allocations: 0 / 0.6392 GB, free: 3.898 MB / 426.7 MB [CodegenCFunctions.tpl:3420:14-3420:14:writable] Error: Template error: literalExpConst failed: {}. Error: Internal error SimCode: The model ModelicaTest.Blocks.BooleanTable could not be translated to FMU