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.001198/0.001198, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.00111/0.00111, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.4 MB / 222.1 MB, free: 5.516 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.0004734/0.0004734, allocations: 8 kB / 278.8 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2694, allocations: 47.58 MB / 326.4 MB, free: 1.469 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001972/0.2715, allocations: 1.509 MB / 327.9 MB, free: 288 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.2726, allocations: 0.5968 MB / 328.5 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.97e-05/0.2727, allocations: 1.75 kB / 328.5 MB, free: 15.81 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.2728, allocations: 17.67 kB / 328.6 MB, free: 15.8 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.273, allocations: 33.5 kB / 328.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.2732, allocations: 56.38 kB / 328.6 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002084/0.2735, allocations: 104.8 kB / 328.7 MB, free: 15.66 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.2737, allocations: 62.14 kB / 328.8 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.2738, allocations: 56.92 kB / 328.9 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.274, allocations: 59.39 kB / 328.9 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.274, allocations: 5.562 kB / 328.9 MB, free: 15.55 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.535e-05/0.2741, allocations: 22.77 kB / 328.9 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.621e-05/0.2742, allocations: 30.69 kB / 329 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.2742, allocations: 51.73 kB / 329 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.2744, allocations: 109.8 kB / 329.1 MB, free: 15.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2744, allocations: 0 / 329.1 MB, free: 15.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.2744, allocations: 1.375 kB / 329.1 MB, free: 15.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.2744, allocations: 0 / 329.1 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.000883/0.2753, allocations: 0.4908 MB / 329.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.2754, allocations: 9.219 kB / 329.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.2754, allocations: 22.75 kB / 329.7 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.2757, allocations: 225.7 kB / 329.9 MB, free: 14.68 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.2757, allocations: 17.94 kB / 329.9 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.2758, allocations: 18.58 kB / 329.9 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.2761, allocations: 196.8 kB / 330.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2762, allocations: 0 / 330.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.2762, allocations: 5.125 kB / 330.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.338e-05/0.2762, allocations: 13.33 kB / 330.1 MB, free: 14.51 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.2765, allocations: 153.2 kB / 330.3 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.2776, allocations: 0.7857 MB / 331.1 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.2779, allocations: 167.9 kB / 331.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.278, allocations: 2.5 kB / 331.2 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002822/0.2783, allocations: 152.5 kB / 331.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.2783, allocations: 0 / 331.4 MB, free: 13.52 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006313/0.2789, allocations: 274.7 kB / 331.6 MB, free: 13.38 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.279, allocations: 83.36 kB / 331.7 MB, free: 13.29 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.2792, allocations: 202 kB / 331.9 MB, free: 13.13 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.2793, allocations: 31.95 kB / 332 MB, free: 13.09 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2794, allocations: 146.3 kB / 332.1 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.2794, allocations: 41.28 kB / 332.1 MB, free: 12.92 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.838e-06/0.2794, allocations: 9.875 kB / 332.1 MB, free: 12.91 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.2796, allocations: 327.4 kB / 332.5 MB, free: 12.59 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.2797, allocations: 70.52 kB / 332.5 MB, free: 12.56 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.2799, allocations: 128.3 kB / 332.7 MB, free: 12.46 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.2801, allocations: 88.91 kB / 332.7 MB, free: 12.42 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2801, allocations: 5.188 kB / 332.8 MB, free: 12.42 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004158/0.2805, allocations: 243.5 kB / 333 MB, free: 12.3 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.2806, allocations: 4.469 kB / 333 MB, free: 12.3 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2806, allocations: 2.844 kB / 333 MB, free: 12.3 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2806, allocations: 7.125 kB / 333 MB, free: 12.29 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.2808, allocations: 42.22 kB / 333 MB, free: 12.28 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.2808, allocations: 3.688 kB / 333 MB, free: 12.28 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.281, allocations: 33.16 kB / 333.1 MB, free: 12.26 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.281, allocations: 14.3 kB / 333.1 MB, free: 12.25 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.0001316/0.2811, allocations: 143.9 kB / 333.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.2812, allocations: 23.94 kB / 333.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004452/0.2816, allocations: 215.3 kB / 333.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.2816, allocations: 2.219 kB / 333.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2816, allocations: 1.156 kB / 333.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.2817, allocations: 7.984 kB / 333.5 MB, free: 11.97 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.2819, allocations: 275.8 kB / 333.7 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2819, allocations: 0 / 333.7 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.2821, allocations: 22.05 kB / 333.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.2821, allocations: 1.281 kB / 333.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.2821, allocations: 5.062 kB / 333.8 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.2821, allocations: 5.203 kB / 333.8 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2821, allocations: 1 kB / 333.8 MB, free: 11.69 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004018/0.2825, allocations: 255.8 kB / 334 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.085e-05/0.2826, allocations: 88.92 kB / 334.1 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.2826, allocations: 4 kB / 334.1 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.2827, allocations: 27.97 kB / 334.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.2828, allocations: 15.98 kB / 334.2 MB, free: 11.36 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2828, allocations: 7.984 kB / 334.2 MB, free: 11.36 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001071/0.2829, allocations: 148.3 kB / 334.3 MB, free: 11.21 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.283, allocations: 0 / 334.3 MB, free: 11.21 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.2832, allocations: 43.84 kB / 334.4 MB, free: 11.17 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.0001458/0.2834, allocations: 107.2 kB / 334.5 MB, free: 11.05 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003738/0.2837, allocations: 179.8 kB / 334.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2838, allocations: 0 / 334.6 MB, free: 10.88 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001708/0.2839, allocations: 96.56 kB / 334.7 MB, free: 10.79 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.2842, allocations: 40.06 kB / 334.8 MB, free: 10.75 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006199/0.2848, allocations: 422.1 kB / 335.2 MB, free: 10.3 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.2851, allocations: 0.7399 MB / 335.9 MB, free: 9.539 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.2852, allocations: 33.52 kB / 336 MB, free: 9.508 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.085e-05/0.2853, allocations: 19.44 kB / 336 MB, free: 9.488 MB / 270.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2853, allocations: 0 / 336 MB, free: 9.488 MB / 270.1 MB Notification: Performance of Templates: time 0.004414/0.2897, allocations: 1.817 MB / 337.8 MB, free: 7.672 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.RealNetwork1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: