Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008872/0.0008873, allocations: 88.16 kB / 16.31 MB, free: 5.605 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.001115/0.001115, allocations: 181.3 kB / 17.21 MB, free: 5.523 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.485/1.485, allocations: 205.4 MB / 223.4 MB, free: 5.562 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.0004463/0.0004463, allocations: 8 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2428, allocations: 47.6 MB / 327.7 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001977/0.2448, allocations: 1.522 MB / 329.2 MB, free: 192 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.246, allocations: 0.5924 MB / 329.8 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.042e-05/0.2461, allocations: 2.531 kB / 329.8 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.2462, allocations: 17.14 kB / 329.9 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.2463, allocations: 33.03 kB / 329.9 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002491/0.2466, allocations: 52.95 kB / 329.9 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.2468, allocations: 145.6 kB / 330.1 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.247, allocations: 57.72 kB / 330.1 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.669e-05/0.2471, allocations: 54.44 kB / 330.2 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.2472, allocations: 64.56 kB / 330.3 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.2472, allocations: 4.312 kB / 330.3 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.469e-05/0.2473, allocations: 16.89 kB / 330.3 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.408e-05/0.2474, allocations: 29.58 kB / 330.3 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.372e-05/0.2475, allocations: 56.16 kB / 330.4 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.2476, allocations: 114.5 kB / 330.5 MB, free: 15.29 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2476, allocations: 0 / 330.5 MB, free: 15.29 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2476, allocations: 4 kB / 330.5 MB, free: 15.28 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.984e-06/0.2476, allocations: 0 / 330.5 MB, free: 15.28 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.0008123/0.2485, allocations: 495.1 kB / 331 MB, free: 14.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2485, allocations: 10.28 kB / 331 MB, free: 14.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.2486, allocations: 21.62 kB / 331 MB, free: 14.81 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.2489, allocations: 234.6 kB / 331.2 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.2489, allocations: 18.17 kB / 331.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.2489, allocations: 14 kB / 331.2 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.2493, allocations: 201.4 kB / 331.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.2494, allocations: 1.125 kB / 331.4 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.2494, allocations: 5.281 kB / 331.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.217e-05/0.2494, allocations: 4.719 kB / 331.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000309/0.2497, allocations: 149.1 kB / 331.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.2509, allocations: 0.789 MB / 332.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003469/0.2512, allocations: 172.4 kB / 332.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.2514, allocations: 77.98 kB / 332.6 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.2515, allocations: 2.5 kB / 332.6 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.2517, allocations: 149.4 kB / 332.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.2517, allocations: 0 / 332.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006045/0.2524, allocations: 270.7 kB / 333 MB, free: 13.24 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.2524, allocations: 84.28 kB / 333.1 MB, free: 13.14 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.2527, allocations: 201 kB / 333.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.2527, allocations: 41.22 kB / 333.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.2528, allocations: 149.5 kB / 333.5 MB, free: 12.8 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.2529, allocations: 33.97 kB / 333.5 MB, free: 12.78 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/0.2529, allocations: 5.375 kB / 333.5 MB, free: 12.77 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.253, allocations: 334.6 kB / 333.9 MB, free: 12.44 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.2532, allocations: 71.8 kB / 333.9 MB, free: 12.41 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.2534, allocations: 129.2 kB / 334.1 MB, free: 12.31 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.2536, allocations: 88.56 kB / 334.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.2536, allocations: 1.875 kB / 334.2 MB, free: 12.27 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004411/0.254, allocations: 250.5 kB / 334.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.2541, allocations: 5 kB / 334.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2541, allocations: 2.438 kB / 334.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2541, allocations: 3.031 kB / 334.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2543, allocations: 43.17 kB / 334.5 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.2543, allocations: 6.453 kB / 334.5 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.2545, allocations: 38.91 kB / 334.5 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.2545, allocations: 9.375 kB / 334.5 MB, free: 12.1 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,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001301/0.2546, allocations: 140.3 kB / 334.6 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.2547, allocations: 23.78 kB / 334.7 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004644/0.2551, allocations: 215 kB / 334.9 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2552, allocations: 2.156 kB / 334.9 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.2552, allocations: 1.125 kB / 334.9 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2552, allocations: 0 / 334.9 MB, free: 11.83 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/0.2555, allocations: 283.9 kB / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2555, allocations: 0 / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.2556, allocations: 22.33 kB / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.2556, allocations: 1.062 kB / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.2556, allocations: 5.25 kB / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2556, allocations: 1.062 kB / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2556, allocations: 1.094 kB / 335.2 MB, free: 11.55 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003968/0.256, allocations: 238.3 kB / 335.4 MB, free: 11.39 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-05/0.2561, allocations: 96.22 kB / 335.5 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.2562, allocations: 4 kB / 335.5 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.2563, allocations: 23.98 kB / 335.5 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.2564, allocations: 19.97 kB / 335.6 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.2564, allocations: 4 kB / 335.6 MB, free: 11.23 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000116/0.2565, allocations: 144.3 kB / 335.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2565, allocations: 0 / 335.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002553/0.2568, allocations: 55.92 kB / 335.8 MB, free: 11.04 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 (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.0001475/0.2569, allocations: 111.1 kB / 335.9 MB, free: 10.92 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003756/0.2573, allocations: 179.8 kB / 336 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2573, allocations: 0 / 336 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.2575, allocations: 83.89 kB / 336.1 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.2578, allocations: 48.3 kB / 336.2 MB, free: 10.62 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000657/0.2585, allocations: 418.1 kB / 336.6 MB, free: 10.18 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.2588, allocations: 0.736 MB / 337.3 MB, free: 9.418 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.2589, allocations: 33.52 kB / 337.4 MB, free: 9.387 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.158e-05/0.2589, allocations: 15.44 kB / 337.4 MB, free: 9.371 MB / 270.1 MB Notification: Performance of SimCode: time 2.4e-07/0.259, allocations: 0 / 337.4 MB, free: 9.371 MB / 270.1 MB Notification: Performance of Templates: time 0.004695/0.2637, allocations: 1.821 MB / 339.2 MB, free: 7.551 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)