Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1") [: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 3.2.1+maint.om/package.mo): time 0.003619/0.003619, allocations: 181.3 kB / 7.459 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.299/1.299, allocations: 170.6 MB / 178.4 MB, free: 15.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001655/0.001656, allocations: 107.9 kB / 217.7 MB, free: 8.195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.713e-06, allocations: 0 / 261.7 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09531, allocations: 38.76 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2352/0.3306, allocations: 69.05 MB / 369.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.3309, allocations: 66.72 kB / 369.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.01392/0.3448, allocations: 4.669 MB / 374.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.3449, allocations: 15.94 kB / 374.3 MB, free: 11.46 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0009559/0.3458, allocations: 0.6485 MB / 374.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.3459, allocations: 8.031 kB / 374.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.346, allocations: 51.42 kB / 375 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.3464, allocations: 295.8 kB / 375.3 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.946e-05/0.3465, allocations: 46.3 kB / 375.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.753e-05/0.3466, allocations: 28 kB / 375.4 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004005/0.347, allocations: 208.9 kB / 375.6 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004906/0.3475, allocations: 349.3 kB / 375.9 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.3475, allocations: 8 kB / 375.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.3475, allocations: 0 / 375.9 MB, free: 9.879 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.131e-05/0.3476, allocations: 12.44 kB / 375.9 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.3492, allocations: 1.507 MB / 377.4 MB, free: 8.426 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003385/0.3495, allocations: 243.2 kB / 377.7 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.3497, allocations: 113 kB / 377.8 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.208e-05/0.3498, allocations: 19.56 kB / 377.8 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.3502, allocations: 320.6 kB / 378.1 MB, free: 7.801 MB / 266.7 MB Notification: Performance of pre-optimization done (n=36): time 3.477e-06/0.3502, allocations: 11.86 kB / 378.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=36): time 0.0006784/0.3509, allocations: 286.8 kB / 378.4 MB, free: 7.559 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.351, allocations: 195.7 kB / 378.6 MB, free: 7.328 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.3514, allocations: 239 kB / 378.8 MB, free: 7.125 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.3514, allocations: 33.52 kB / 378.9 MB, free: 7.09 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3516, allocations: 169.2 kB / 379 MB, free: 6.938 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.659e-05/0.3516, allocations: 71.38 kB / 379.1 MB, free: 6.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.717e-05/0.3517, allocations: 0 / 379.1 MB, free: 6.879 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.3519, allocations: 346.7 kB / 379.4 MB, free: 6.547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.352, allocations: 107.4 kB / 379.5 MB, free: 6.477 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.3523, allocations: 217.9 kB / 379.8 MB, free: 6.258 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.3527, allocations: 132.9 kB / 379.9 MB, free: 6.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3527, allocations: 0 / 379.9 MB, free: 6.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007143/0.3534, allocations: 377.1 kB / 380.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.3535, allocations: 8.344 kB / 380.3 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.3535, allocations: 8 kB / 380.3 MB, free: 5.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.3535, allocations: 8 kB / 380.3 MB, free: 5.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.3537, allocations: 35.3 kB / 380.3 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.3537, allocations: 4 kB / 380.3 MB, free: 5.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.3539, allocations: 35.81 kB / 380.3 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.558e-05/0.354, allocations: 27.94 kB / 380.4 MB, free: 5.73 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.onDelay.u,$PRE.onDelay.t_next,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 3 * 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.0002481/0.3543, allocations: 211.1 kB / 380.6 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.3543, allocations: 35.62 kB / 380.6 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004871/0.3548, allocations: 230 kB / 380.8 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3548, allocations: 4 kB / 380.8 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.3548, allocations: 0 / 380.8 MB, free: 5.293 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.3548, allocations: 7.984 kB / 380.9 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.356, allocations: 0.8099 MB / 381.7 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.356, allocations: 0 / 381.7 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-05/0.3561, allocations: 18.94 kB / 381.7 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3561, allocations: 0 / 381.7 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/0.3561, allocations: 15.3 kB / 381.7 MB, free: 4.531 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.3561, allocations: 3.938 kB / 381.7 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3561, allocations: 4 kB / 381.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007005/0.3568, allocations: 0.5161 MB / 382.2 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.445e-05/0.3569, allocations: 100.7 kB / 382.3 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.299e-05/0.357, allocations: 4 kB / 382.3 MB, free: 3.922 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.3572, allocations: 31.97 kB / 382.4 MB, free: 3.891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.3574, allocations: 35.44 kB / 382.4 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.3574, allocations: 19.69 kB / 382.4 MB, free: 3.848 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001184/0.3575, allocations: 161.1 kB / 382.6 MB, free: 3.711 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004782/0.358, allocations: 88.06 kB / 382.6 MB, free: 3.625 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 38 (onDelay.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulsStart,booleanPulse2.pulsStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 14 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,rSFlipFlop.pre.u,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay.t_next,onDelay.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 3 * 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.0002679/0.3583, allocations: 160.3 kB / 382.8 MB, free: 3.465 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004698/0.3588, allocations: 373.2 kB / 383.2 MB, free: 3.156 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3588, allocations: 0 / 383.2 MB, free: 3.156 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002965/0.3591, allocations: 240.7 kB / 383.4 MB, free: 2.973 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003455/0.3594, allocations: 43.98 kB / 383.4 MB, free: 2.938 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008659/0.3603, allocations: 454.5 kB / 383.9 MB, free: 2.52 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004322/0.3608, allocations: 0.8339 MB / 384.7 MB, free: 1.66 MB / 266.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3608, allocations: 0 / 384.7 MB, free: 1.66 MB / 266.7 MB Notification: Performance of Templates: time 0.008353/0.3691, allocations: 4.024 MB / 388.7 MB, free: 13.65 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)