Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1") [: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.005978/0.005978, allocations: 178.7 kB / 7.454 MB, free: 2.488 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.325/1.325, allocations: 170.6 MB / 178.4 MB, free: 15.4 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.00157/0.00157, allocations: 111.8 kB / 217.7 MB, free: 8.172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.264e-06/7.294e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07728/0.0773, allocations: 38.76 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2477/0.3251, allocations: 66.87 MB / 367.4 MB, free: 1.652 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.3253, allocations: 65.28 kB / 367.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.007631/0.333, allocations: 2.467 MB / 369.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.364e-05/0.333, allocations: 11.94 kB / 369.9 MB, free: 15.55 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0009989/0.334, allocations: 486.7 kB / 370.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.943e-05/0.3341, allocations: 12.03 kB / 370.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.3343, allocations: 23.62 kB / 370.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.3347, allocations: 233.4 kB / 370.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.3347, allocations: 15.91 kB / 370.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.3348, allocations: 11.94 kB / 370.7 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002419/0.335, allocations: 102.3 kB / 370.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.3353, allocations: 177.1 kB / 370.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.3354, allocations: 3.984 kB / 371 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.3354, allocations: 0 / 371 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.667e-05/0.3354, allocations: 11.69 kB / 371 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3365, allocations: 0.7577 MB / 371.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.3369, allocations: 131.5 kB / 371.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.413e-05/0.337, allocations: 50.84 kB / 371.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.583e-05/0.337, allocations: 3.984 kB / 371.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001712/0.3372, allocations: 122.6 kB / 372 MB, free: 13.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.983e-06/0.3372, allocations: 0 / 372 MB, free: 13.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003468/0.3376, allocations: 155.2 kB / 372.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.3376, allocations: 85.11 kB / 372.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.3378, allocations: 190.2 kB / 372.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.3379, allocations: 25.7 kB / 372.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.394e-05/0.338, allocations: 131.2 kB / 372.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.338, allocations: 26.95 kB / 372.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.338, allocations: 0 / 372.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3382, allocations: 333.9 kB / 372.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.33e-05/0.3383, allocations: 53.92 kB / 373 MB, free: 12.53 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.3384, allocations: 123.3 kB / 373.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.3385, allocations: 73.22 kB / 373.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3386, allocations: 0 / 373.2 MB, free: 12.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000338/0.3389, allocations: 196.7 kB / 373.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3389, allocations: 8 kB / 373.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3389, allocations: 4 kB / 373.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.339, allocations: 4.25 kB / 373.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.3392, allocations: 47.91 kB / 373.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3392, allocations: 4 kB / 373.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000202/0.3394, allocations: 43.09 kB / 373.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.3394, allocations: 8 kB / 373.5 MB, free: 12.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001131/0.3396, allocations: 122.4 kB / 373.6 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.3396, allocations: 15.81 kB / 373.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002384/0.3398, allocations: 116.4 kB / 373.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3398, allocations: 4 kB / 373.8 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3399, allocations: 3.906 kB / 373.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3399, allocations: 4 kB / 373.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005728/0.3405, allocations: 431.8 kB / 374.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.3405, allocations: 288 / 374.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.3406, allocations: 31.3 kB / 374.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.3406, allocations: 3.984 kB / 374.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.3406, allocations: 7.938 kB / 374.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.3407, allocations: 3.984 kB / 374.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3407, allocations: 0 / 374.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003047/0.341, allocations: 256.7 kB / 374.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.216e-05/0.3411, allocations: 112.2 kB / 374.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.904e-05/0.3411, allocations: 4 kB / 374.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.3413, allocations: 23.97 kB / 374.6 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.3414, allocations: 27.5 kB / 374.6 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.855e-05/0.3414, allocations: 8 kB / 374.7 MB, free: 10.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001003/0.3415, allocations: 134.4 kB / 374.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.3419, allocations: 35.94 kB / 374.8 MB, free: 10.78 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulsStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulsStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.0001791/0.3421, allocations: 110.7 kB / 374.9 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002648/0.3423, allocations: 140.8 kB / 375.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.3424, allocations: 0.5 kB / 375.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001327/0.3425, allocations: 82.72 kB / 375.1 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.3428, allocations: 18.39 kB / 375.2 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006693/0.3435, allocations: 237.8 kB / 375.4 MB, free: 10.24 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004522/0.3439, allocations: 0.7664 MB / 376.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3439, allocations: 0 / 376.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of Templates: time 0.005545/0.3495, allocations: 1.995 MB / 378.2 MB, free: 7.469 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)