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.001293/0.001293, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.537/1.537, allocations: 205.1 MB / 222.4 MB, free: 4.418 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.001572/0.001572, allocations: 59.92 kB / 278.7 MB, free: 12.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.271, allocations: 46.63 MB / 325.3 MB, free: 2.031 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003455/0.2746, allocations: 1.85 MB / 327.1 MB, free: 0.5664 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.2757, allocations: 0.6301 MB / 327.8 MB, free: 68 kB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2758, allocations: 10.44 kB / 327.8 MB, free: 60 kB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.2759, allocations: 28.95 kB / 327.8 MB, free: 32 kB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001404/0.2761, allocations: 28.97 kB / 327.8 MB, free: 8 kB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.2764, allocations: 73.64 kB / 327.9 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002289/0.2766, allocations: 159.9 kB / 328.1 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.2768, allocations: 69.92 kB / 328.1 MB, free: 15.82 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.277, allocations: 73.8 kB / 328.2 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.2771, allocations: 74.53 kB / 328.3 MB, free: 15.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.314e-05/0.2772, allocations: 16.09 kB / 328.3 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.447e-05/0.2773, allocations: 24.73 kB / 328.3 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.607e-05/0.2773, allocations: 46.48 kB / 328.4 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.924e-05/0.2774, allocations: 74.02 kB / 328.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2777, allocations: 174.1 kB / 328.6 MB, free: 15.5 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2777, allocations: 4 kB / 328.6 MB, free: 15.49 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2777, allocations: 0 / 328.6 MB, free: 15.49 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2777, allocations: 1.594 kB / 328.6 MB, free: 15.49 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.0009815/0.2787, allocations: 0.5066 MB / 329.1 MB, free: 15.01 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.2788, allocations: 10.09 kB / 329.1 MB, free: 15.01 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.534e-05/0.2789, allocations: 23.19 kB / 329.2 MB, free: 15 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.2792, allocations: 239.6 kB / 329.4 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.2792, allocations: 10.09 kB / 329.4 MB, free: 14.75 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.669e-05/0.2792, allocations: 18.36 kB / 329.4 MB, free: 14.74 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.2796, allocations: 195.6 kB / 329.6 MB, free: 14.6 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2796, allocations: 3.984 kB / 329.6 MB, free: 14.6 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.979e-05/0.2797, allocations: 6.406 kB / 329.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.2797, allocations: 13.55 kB / 329.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.28, allocations: 145.2 kB / 329.8 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.2812, allocations: 0.7694 MB / 330.5 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003177/0.2815, allocations: 163.8 kB / 330.7 MB, free: 13.72 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.2817, allocations: 83.2 kB / 330.8 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.2817, allocations: 3.906 kB / 330.8 MB, free: 13.67 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002443/0.282, allocations: 144.8 kB / 330.9 MB, free: 13.55 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.282, allocations: 0 / 330.9 MB, free: 13.55 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005722/0.2826, allocations: 260.9 kB / 331.2 MB, free: 13.42 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.2826, allocations: 80.11 kB / 331.3 MB, free: 13.33 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.2828, allocations: 207.1 kB / 331.5 MB, free: 13.17 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.2829, allocations: 31.86 kB / 331.5 MB, free: 13.13 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.418e-05/0.283, allocations: 142.1 kB / 331.6 MB, free: 13 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.283, allocations: 45.45 kB / 331.7 MB, free: 12.96 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.2831, allocations: 41.61 kB / 331.7 MB, free: 12.93 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2832, allocations: 331.3 kB / 332 MB, free: 12.6 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2834, allocations: 68.77 kB / 332.1 MB, free: 12.57 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.2836, allocations: 129.3 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.2839, allocations: 203 kB / 332.4 MB, free: 12.33 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2839, allocations: 0 / 332.4 MB, free: 12.33 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004411/0.2843, allocations: 246.3 kB / 332.7 MB, free: 12.19 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.2844, allocations: 8 kB / 332.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.2844, allocations: 0 / 332.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.2844, allocations: 4 kB / 332.7 MB, free: 12.18 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.2846, allocations: 40.09 kB / 332.7 MB, free: 12.14 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.2846, allocations: 4 kB / 332.7 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/0.2848, allocations: 31.83 kB / 332.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.2848, allocations: 4.109 kB / 332.8 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,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.0001455/0.285, allocations: 153.6 kB / 332.9 MB, free: 11.94 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.285, allocations: 19.72 kB / 332.9 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.2854, allocations: 214.9 kB / 333.1 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.2855, allocations: 4 kB / 333.2 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2855, allocations: 0 / 333.2 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2855, allocations: 7.969 kB / 333.2 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002555/0.2857, allocations: 265.4 kB / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2857, allocations: 0 / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.2859, allocations: 23.98 kB / 333.4 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2859, allocations: 96 / 333.4 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.2859, allocations: 7.938 kB / 333.5 MB, free: 11.35 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2859, allocations: 4 kB / 333.5 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2859, allocations: 3.984 kB / 333.5 MB, free: 11.34 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003837/0.2863, allocations: 237.4 kB / 333.7 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.276e-05/0.2864, allocations: 92.91 kB / 333.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.2864, allocations: 0 / 333.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.2866, allocations: 23.98 kB / 333.8 MB, free: 10.95 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.2866, allocations: 15.95 kB / 333.8 MB, free: 10.94 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.2866, allocations: 8 kB / 333.8 MB, free: 10.93 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001202/0.2868, allocations: 144.4 kB / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2868, allocations: 0 / 334 MB, free: 10.79 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.2871, allocations: 39.84 kB / 334 MB, free: 10.75 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.0001433/0.2872, allocations: 111.2 kB / 334.1 MB, free: 10.63 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.2876, allocations: 180.4 kB / 334.3 MB, free: 10.46 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2876, allocations: 4 kB / 334.3 MB, free: 10.45 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.2878, allocations: 84.2 kB / 334.4 MB, free: 10.37 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.2882, allocations: 48.05 kB / 334.4 MB, free: 10.32 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006854/0.2889, allocations: 370.9 kB / 334.8 MB, free: 9.934 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.2892, allocations: 0.7397 MB / 335.5 MB, free: 9.168 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.2893, allocations: 37.7 kB / 335.6 MB, free: 9.133 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.2894, allocations: 15.44 kB / 335.6 MB, free: 9.117 MB / 270.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2894, allocations: 3.938 kB / 335.6 MB, free: 9.113 MB / 270.1 MB Notification: Performance of Templates: time 0.005162/0.2945, allocations: 2.102 MB / 337.7 MB, free: 7.012 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)