Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001876/0.001876, allocations: 191 kB / 8.133 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.156/1.156, allocations: 194.2 MB / 202.8 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001758/0.001758, allocations: 118.3 kB / 247.7 MB, free: 6.406 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.017e-06/9.047e-06, allocations: 7.938 kB / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07405/0.07408, allocations: 44.48 MB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.2822, allocations: 74.36 MB / 416.4 MB, free: 20.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.2824, allocations: 67.56 kB / 416.5 MB, free: 20.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01289/0.2953, allocations: 4.665 MB / 421.1 MB, free: 16.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.16e-05/0.2954, allocations: 15.98 kB / 421.1 MB, free: 16.88 MB / 314.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.0007953/0.2962, allocations: 0.652 MB / 421.8 MB, free: 16.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.2962, allocations: 8.031 kB / 421.8 MB, free: 16.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.2963, allocations: 46.28 kB / 421.8 MB, free: 16.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003487/0.2967, allocations: 298.9 kB / 422.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.643e-05/0.2967, allocations: 46.23 kB / 422.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.2968, allocations: 28 kB / 422.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003556/0.2972, allocations: 202 kB / 422.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.2976, allocations: 354.9 kB / 422.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.2976, allocations: 7.938 kB / 422.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.2977, allocations: 9.484 kB / 422.8 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.202e-05/0.2977, allocations: 16.34 kB / 422.8 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.299, allocations: 1.494 MB / 424.3 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002849/0.2993, allocations: 247.8 kB / 424.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.2994, allocations: 118.3 kB / 424.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.434e-05/0.2995, allocations: 15.3 kB / 424.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.2998, allocations: 323.2 kB / 425 MB, free: 13.22 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.134e-06/0.2998, allocations: 0 / 425 MB, free: 13.22 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.000604/0.3004, allocations: 285.2 kB / 425.2 MB, free: 13 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.3005, allocations: 195.6 kB / 425.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.3007, allocations: 248.3 kB / 425.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.3007, allocations: 32.64 kB / 425.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.3008, allocations: 165.8 kB / 425.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/0.3009, allocations: 67.34 kB / 425.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.3009, allocations: 0 / 425.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.122e-05/0.301, allocations: 347.3 kB / 426.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.3011, allocations: 108.6 kB / 426.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001788/0.3013, allocations: 222.7 kB / 426.6 MB, free: 11.69 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.3017, allocations: 140.7 kB / 426.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3017, allocations: 0 / 426.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006265/0.3023, allocations: 375 kB / 427.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.3023, allocations: 5.531 kB / 427.1 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3023, allocations: 4 kB / 427.1 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3024, allocations: 12 kB / 427.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.3025, allocations: 35.17 kB / 427.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.3025, allocations: 7.938 kB / 427.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.3028, allocations: 31.88 kB / 427.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.3028, allocations: 22.25 kB / 427.2 MB, free: 11.18 MB / 314.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.0001417/0.303, allocations: 209.8 kB / 427.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.303, allocations: 35.62 kB / 427.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004933/0.3035, allocations: 234.9 kB / 427.7 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3035, allocations: 8 kB / 427.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3035, allocations: 0 / 427.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3036, allocations: 3.984 kB / 427.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001012/0.3046, allocations: 0.8081 MB / 428.5 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3046, allocations: 3.938 kB / 428.5 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.584e-05/0.3046, allocations: 15.5 kB / 428.5 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3047, allocations: 0 / 428.5 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.3047, allocations: 11.98 kB / 428.5 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3047, allocations: 4.688 kB / 428.5 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3047, allocations: 0 / 428.5 MB, free: 9.977 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005471/0.3053, allocations: 0.508 MB / 429.1 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.776e-05/0.3053, allocations: 100.7 kB / 429.2 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.704e-05/0.3054, allocations: 10.94 kB / 429.2 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002647/0.3057, allocations: 33.22 kB / 429.2 MB, free: 9.352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3058, allocations: 38.48 kB / 429.2 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.3058, allocations: 15.44 kB / 429.3 MB, free: 9.309 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001009/0.306, allocations: 160.6 kB / 429.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004757/0.3064, allocations: 92.03 kB / 429.5 MB, free: 9.09 MB / 314.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.0002948/0.3067, allocations: 156.7 kB / 429.7 MB, free: 8.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004342/0.3072, allocations: 379.4 kB / 430 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3072, allocations: 0 / 430 MB, free: 8.625 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002371/0.3074, allocations: 240.1 kB / 430.3 MB, free: 8.438 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.3078, allocations: 38.59 kB / 430.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009472/0.3088, allocations: 466.2 kB / 430.7 MB, free: 7.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/0.3091, allocations: 0.834 MB / 431.6 MB, free: 7.121 MB / 314.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3091, allocations: 0 / 431.6 MB, free: 7.121 MB / 314.7 MB Notification: Performance of Templates: time 0.007931/0.317, allocations: 4.029 MB / 435.6 MB, free: 3.176 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1)