Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.662/0.662, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001771/0.001771, allocations: 152 kB / 143.7 MB, free: 4.883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.634e-06, allocations: 4 kB / 173.4 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04209/0.04212, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.1641, allocations: 32.98 MB / 231.6 MB, free: 4.391 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001502/0.1643, allocations: 55.59 kB / 231.7 MB, free: 4.391 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.005044/0.1694, allocations: 1.677 MB / 233.3 MB, free: 4.332 MB / 170.7 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1694, allocations: 3.875 kB / 233.3 MB, free: 4.332 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0002808/0.1697, allocations: 489 kB / 233.8 MB, free: 3.84 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.1697, allocations: 7.75 kB / 233.8 MB, free: 3.84 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.1698, allocations: 18 kB / 233.8 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.509e-05/0.1699, allocations: 170.8 kB / 234 MB, free: 3.629 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1699, allocations: 3.844 kB / 234 MB, free: 3.629 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.1699, allocations: 11.11 kB / 234 MB, free: 3.629 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001089/0.17, allocations: 47.03 kB / 234.1 MB, free: 3.625 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.1701, allocations: 81.39 kB / 234.1 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.1702, allocations: 0 / 234.1 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.1702, allocations: 3.844 kB / 234.1 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.1702, allocations: 3.906 kB / 234.2 MB, free: 3.59 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.1705, allocations: 321.2 kB / 234.5 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.172e-05/0.1706, allocations: 69.25 kB / 234.5 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.319e-05/0.1707, allocations: 45.98 kB / 234.6 MB, free: 3.312 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.662e-06/0.1707, allocations: 0 / 234.6 MB, free: 3.312 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/0.1708, allocations: 144.7 kB / 234.7 MB, free: 3.199 MB / 170.7 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.1708, allocations: 0 / 234.7 MB, free: 3.199 MB / 170.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001873/0.171, allocations: 123.6 kB / 234.8 MB, free: 3.156 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.1711, allocations: 166.3 kB / 235 MB, free: 2.969 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.795e-05/0.1711, allocations: 120.5 kB / 235.1 MB, free: 2.875 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1712, allocations: 28.77 kB / 235.1 MB, free: 2.844 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.1712, allocations: 95.27 kB / 235.2 MB, free: 2.758 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.1712, allocations: 27.22 kB / 235.3 MB, free: 2.742 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.422e-06/0.1712, allocations: 0 / 235.3 MB, free: 2.742 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.1713, allocations: 319.9 kB / 235.6 MB, free: 2.43 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.907e-05/0.1713, allocations: 37.8 kB / 235.6 MB, free: 2.426 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.332e-05/0.1714, allocations: 34.7 kB / 235.7 MB, free: 2.426 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.642e-05/0.1715, allocations: 35.61 kB / 235.7 MB, free: 2.426 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1715, allocations: 0 / 235.7 MB, free: 2.426 MB / 170.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001788/0.1717, allocations: 126.7 kB / 235.8 MB, free: 2.387 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.736e-06/0.1717, allocations: 6.281 kB / 235.8 MB, free: 2.387 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1717, allocations: 0 / 235.8 MB, free: 2.387 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.248e-06/0.1717, allocations: 4 kB / 235.8 MB, free: 2.383 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.152e-05/0.1717, allocations: 10.81 kB / 235.8 MB, free: 2.375 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.1718, allocations: 3.906 kB / 235.8 MB, free: 2.371 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.301e-05/0.1718, allocations: 5.906 kB / 235.8 MB, free: 2.371 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.1718, allocations: 5.031 kB / 235.8 MB, free: 2.371 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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 7.546e-05/0.1719, allocations: 175.5 kB / 236 MB, free: 2.203 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.1719, allocations: 15.59 kB / 236 MB, free: 2.195 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.027e-05/0.172, allocations: 13.3 kB / 236 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.172, allocations: 3.875 kB / 236 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.172, allocations: 0 / 236 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.172, allocations: 0 / 236 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.793e-05/0.1721, allocations: 178.8 kB / 236.2 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1721, allocations: 0 / 236.2 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.581e-06/0.1721, allocations: 0 / 236.2 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1721, allocations: 0 / 236.2 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1721, allocations: 3.438 kB / 236.2 MB, free: 2.023 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1721, allocations: 6.812 kB / 236.2 MB, free: 2.02 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1722, allocations: 7.938 kB / 236.2 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001662/0.1723, allocations: 159.9 kB / 236.4 MB, free: 1.941 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.101e-05/0.1724, allocations: 85.03 kB / 236.5 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.1724, allocations: 3.875 kB / 236.5 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-05/0.1725, allocations: 10.39 kB / 236.5 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/0.1725, allocations: 11.59 kB / 236.5 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.1725, allocations: 9.75 kB / 236.5 MB, free: 1.84 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.315e-05/0.1726, allocations: 102.6 kB / 236.6 MB, free: 1.762 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000235/0.1728, allocations: 57.28 kB / 236.7 MB, free: 1.75 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0001846/0.173, allocations: 148.1 kB / 236.8 MB, free: 1.66 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0001748/0.1732, allocations: 205 kB / 237 MB, free: 1.527 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.1732, allocations: 0 / 237 MB, free: 1.527 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 9.281e-05/0.1733, allocations: 128.5 kB / 237.1 MB, free: 1.465 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001045/0.1734, allocations: 13.09 kB / 237.2 MB, free: 1.461 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002961/0.1737, allocations: 162.5 kB / 237.3 MB, free: 1.383 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.1738, allocations: 0.7146 MB / 238 MB, free: 0.6797 MB / 170.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1739, allocations: 0 / 238 MB, free: 0.6797 MB / 170.7 MB Notification: Performance of Templates: time 0.003305/0.1772, allocations: 1.506 MB / 239.5 MB, free: 0.5391 MB / 170.7 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)