Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007384/0.0007385, allocations: 97.88 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005442/0.005442, allocations: 171.8 kB / 16.27 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.4 MB / 222.4 MB, free: 5.551 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004886, allocations: 12 kB / 279.4 MB, free: 12.53 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2505, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001891/0.2524, allocations: 1.558 MB / 328.6 MB, free: 192 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.2536, allocations: 0.6075 MB / 329.2 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.2537, allocations: 6.188 kB / 329.2 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.2538, allocations: 17.02 kB / 329.2 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.254, allocations: 35.5 kB / 329.2 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.2543, allocations: 62.69 kB / 329.3 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.2545, allocations: 147.6 kB / 329.4 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.2547, allocations: 72.78 kB / 329.5 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.2548, allocations: 53.36 kB / 329.6 MB, free: 15.45 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.2549, allocations: 68.58 kB / 329.6 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.255, allocations: 9 kB / 329.6 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.63e-05/0.2551, allocations: 8.781 kB / 329.7 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.2551, allocations: 33.97 kB / 329.7 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.2552, allocations: 94.95 kB / 329.8 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.2555, allocations: 151.6 kB / 329.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2555, allocations: 7.938 kB / 329.9 MB, free: 15.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.2555, allocations: 1.125 kB / 329.9 MB, free: 15.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.2555, allocations: 0 / 329.9 MB, free: 15.18 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009413/0.2565, allocations: 497.5 kB / 330.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2565, allocations: 9.219 kB / 330.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.262e-05/0.2566, allocations: 27.56 kB / 330.5 MB, free: 14.7 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.2569, allocations: 239.4 kB / 330.7 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.2569, allocations: 15.06 kB / 330.7 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/0.2569, allocations: 14.97 kB / 330.7 MB, free: 14.44 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.2573, allocations: 206 kB / 330.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2574, allocations: 1.031 kB / 330.9 MB, free: 14.3 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.2574, allocations: 5.031 kB / 330.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.2574, allocations: 5.406 kB / 330.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.2578, allocations: 153.8 kB / 331.1 MB, free: 14.23 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.259, allocations: 0.7976 MB / 331.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.2595, allocations: 167.5 kB / 332 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001793/0.2597, allocations: 83.23 kB / 332.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.257e-05/0.2597, allocations: 7.312 kB / 332.1 MB, free: 13.36 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.26, allocations: 148.6 kB / 332.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 3.557e-06/0.2601, allocations: 112 / 332.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.000692/0.2607, allocations: 272.7 kB / 332.5 MB, free: 13.11 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.2608, allocations: 83.28 kB / 332.6 MB, free: 13.02 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002321/0.2611, allocations: 206.9 kB / 332.8 MB, free: 12.86 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.2611, allocations: 32.36 kB / 332.9 MB, free: 12.82 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.2612, allocations: 138.6 kB / 333 MB, free: 12.69 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.2613, allocations: 40.86 kB / 333 MB, free: 12.66 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.2613, allocations: 29.23 kB / 333.1 MB, free: 12.63 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2615, allocations: 331.4 kB / 333.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.2617, allocations: 76.52 kB / 333.5 MB, free: 12.27 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002056/0.2619, allocations: 130 kB / 333.6 MB, free: 12.17 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003759/0.2623, allocations: 213.2 kB / 333.8 MB, free: 12.03 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.2623, allocations: 1.188 kB / 333.8 MB, free: 12.03 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004837/0.2628, allocations: 252.4 kB / 334 MB, free: 11.9 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.2628, allocations: 4.75 kB / 334 MB, free: 11.9 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.2628, allocations: 6.094 kB / 334.1 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.2629, allocations: 3.406 kB / 334.1 MB, free: 11.89 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.2631, allocations: 38.75 kB / 334.1 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.2631, allocations: 3.281 kB / 334.1 MB, free: 11.88 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.2633, allocations: 37.3 kB / 334.1 MB, free: 11.86 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.163e-05/0.2633, allocations: 7.281 kB / 334.1 MB, free: 11.86 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.2635, allocations: 143.2 kB / 334.3 MB, free: 11.73 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.2635, allocations: 16.09 kB / 334.3 MB, free: 11.72 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004679/0.264, allocations: 226.8 kB / 334.5 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.264, allocations: 0 / 334.5 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.264, allocations: 0 / 334.5 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.264, allocations: 7.984 kB / 334.5 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.2643, allocations: 273.3 kB / 334.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2643, allocations: 0 / 334.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.2645, allocations: 23.98 kB / 334.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2645, allocations: 4 kB / 334.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2645, allocations: 0 / 334.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2645, allocations: 4 kB / 334.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2645, allocations: 3.984 kB / 334.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003975/0.2649, allocations: 245.7 kB / 335.1 MB, free: 10.89 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-05/0.265, allocations: 96.91 kB / 335.2 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.265, allocations: 0 / 335.2 MB, free: 10.77 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.2652, allocations: 27.92 kB / 335.2 MB, free: 10.75 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.533e-05/0.2652, allocations: 15.97 kB / 335.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.2653, allocations: 8 kB / 335.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.2654, allocations: 144.6 kB / 335.4 MB, free: 10.58 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2654, allocations: 0 / 335.4 MB, free: 10.58 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002691/0.2657, allocations: 43.84 kB / 335.4 MB, free: 10.54 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002046/0.2659, allocations: 103.2 kB / 335.5 MB, free: 10.43 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.2663, allocations: 180 kB / 335.7 MB, free: 10.25 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2663, allocations: 0 / 335.7 MB, free: 10.25 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.2665, allocations: 83.89 kB / 335.8 MB, free: 10.17 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003738/0.2668, allocations: 40.09 kB / 335.8 MB, free: 10.13 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007089/0.2676, allocations: 458.2 kB / 336.2 MB, free: 9.656 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.2679, allocations: 0.7319 MB / 337 MB, free: 8.898 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.268, allocations: 41.52 kB / 337 MB, free: 8.859 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.679e-05/0.268, allocations: 15.44 kB / 337 MB, free: 8.844 MB / 270.1 MB Notification: Performance of SimCode: time 6.81e-07/0.268, allocations: 0 / 337 MB, free: 8.844 MB / 270.1 MB Notification: Performance of Templates: time 0.005402/0.2735, allocations: 1.887 MB / 338.9 MB, free: 6.957 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)