Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001251/0.001251, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001431/0.001431, allocations: 190.1 kB / 16.25 MB, free: 6.637 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.97/1.97, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.002266/0.002265, allocations: 55.92 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3837, allocations: 46.62 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003866/0.3877, allocations: 1.906 MB / 326.7 MB, free: 444 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.389, allocations: 0.6209 MB / 327.4 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.3892, allocations: 2.156 kB / 327.4 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.3894, allocations: 20.89 kB / 327.4 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.3896, allocations: 29.28 kB / 327.4 MB, free: 15.9 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.3899, allocations: 57.36 kB / 327.5 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.3902, allocations: 163.7 kB / 327.6 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002537/0.3905, allocations: 62.66 kB / 327.7 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.3907, allocations: 77.92 kB / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.3909, allocations: 86.8 kB / 327.9 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.913e-05/0.3909, allocations: 12.47 kB / 327.9 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.934e-05/0.391, allocations: 20.16 kB / 327.9 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3912, allocations: 42.12 kB / 327.9 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.3913, allocations: 83.8 kB / 328 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003357/0.3916, allocations: 173.6 kB / 328.2 MB, free: 15.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3916, allocations: 0 / 328.2 MB, free: 15.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3916, allocations: 0 / 328.2 MB, free: 15.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.3917, allocations: 0 / 328.2 MB, free: 15.39 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.001207/0.3929, allocations: 0.5158 MB / 328.7 MB, free: 14.91 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.3929, allocations: 13.58 kB / 328.7 MB, free: 14.9 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.845e-05/0.393, allocations: 23.16 kB / 328.7 MB, free: 14.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.3934, allocations: 231.2 kB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.046e-05/0.3934, allocations: 15.28 kB / 329 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.3935, allocations: 14.59 kB / 329 MB, free: 14.64 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.3939, allocations: 198.7 kB / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.3939, allocations: 1.469 kB / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/0.394, allocations: 9.266 kB / 329.2 MB, free: 14.49 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/0.394, allocations: 8.906 kB / 329.2 MB, free: 14.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003334/0.3943, allocations: 142 kB / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.3956, allocations: 0.7844 MB / 330.1 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.396, allocations: 160.7 kB / 330.3 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3962, allocations: 78.78 kB / 330.4 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.166e-05/0.3962, allocations: 7.25 kB / 330.4 MB, free: 13.56 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003044/0.3965, allocations: 144.9 kB / 330.5 MB, free: 13.45 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.3966, allocations: 0 / 330.5 MB, free: 13.45 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006911/0.3973, allocations: 257.2 kB / 330.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.3973, allocations: 80.55 kB / 330.8 MB, free: 13.22 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.3976, allocations: 206.5 kB / 331 MB, free: 13.06 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.3976, allocations: 31.98 kB / 331.1 MB, free: 13.03 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.3978, allocations: 142.5 kB / 331.2 MB, free: 12.89 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/0.3978, allocations: 45.38 kB / 331.2 MB, free: 12.86 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.389e-05/0.3979, allocations: 41.36 kB / 331.3 MB, free: 12.82 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3981, allocations: 327.6 kB / 331.6 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.3983, allocations: 72.2 kB / 331.7 MB, free: 12.47 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.3985, allocations: 125.3 kB / 331.8 MB, free: 12.37 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.3989, allocations: 206.3 kB / 332 MB, free: 12.23 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3989, allocations: 1.906 kB / 332 MB, free: 12.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004724/0.3994, allocations: 236.3 kB / 332.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.3994, allocations: 9.781 kB / 332.2 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.3994, allocations: 2.672 kB / 332.2 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/0.3994, allocations: 3.438 kB / 332.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.3996, allocations: 36.73 kB / 332.3 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.3996, allocations: 2.562 kB / 332.3 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.3998, allocations: 32.83 kB / 332.3 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.3998, allocations: 9.969 kB / 332.3 MB, free: 12.07 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.0001716/0.4, allocations: 147.4 kB / 332.5 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.4001, allocations: 24.41 kB / 332.5 MB, free: 11.91 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005268/0.4006, allocations: 216.5 kB / 332.7 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.4006, allocations: 2.312 kB / 332.7 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.4006, allocations: 0 / 332.7 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.4006, allocations: 5.109 kB / 332.7 MB, free: 11.78 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003606/0.401, allocations: 271 kB / 333 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.401, allocations: 1.094 kB / 333 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.4011, allocations: 23.14 kB / 333 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.4012, allocations: 2.25 kB / 333 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.4012, allocations: 5.094 kB / 333 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.4012, allocations: 1.094 kB / 333 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4012, allocations: 1.094 kB / 333 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.4016, allocations: 241.7 kB / 333.3 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.822e-05/0.4017, allocations: 88.92 kB / 333.3 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.4018, allocations: 7.984 kB / 333.3 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.4019, allocations: 15.98 kB / 333.4 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.402, allocations: 19.97 kB / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.402, allocations: 0 / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.4021, allocations: 144.6 kB / 333.5 MB, free: 10.99 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4022, allocations: 0 / 333.5 MB, free: 10.99 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.4024, allocations: 43.84 kB / 333.6 MB, free: 10.95 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.0002196/0.4027, allocations: 107.2 kB / 333.7 MB, free: 10.83 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004161/0.4031, allocations: 183.8 kB / 333.8 MB, free: 10.65 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4031, allocations: 0 / 333.8 MB, free: 10.65 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.4033, allocations: 79.89 kB / 333.9 MB, free: 10.57 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.4037, allocations: 56.44 kB / 334 MB, free: 10.52 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000859/0.4046, allocations: 434.5 kB / 334.4 MB, free: 10.07 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.405, allocations: 0.7358 MB / 335.1 MB, free: 9.305 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.4051, allocations: 29.53 kB / 335.2 MB, free: 9.277 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.939e-05/0.4052, allocations: 27.42 kB / 335.2 MB, free: 9.25 MB / 270.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4052, allocations: 0 / 335.2 MB, free: 9.25 MB / 270.1 MB Notification: Performance of Templates: time 0.005979/0.4111, allocations: 1.978 MB / 337.2 MB, free: 7.273 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)