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.001273/0.001273, allocations: 108 kB / 15.61 MB, free: 152 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.001317/0.001317, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.49/1.49, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001329/0.001329, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2928, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003763/0.2966, allocations: 1.858 MB / 327.2 MB, free: 392 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.2977, allocations: 0.6272 MB / 327.8 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.2979, allocations: 6.438 kB / 327.8 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.2981, allocations: 24.95 kB / 327.8 MB, free: 15.86 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.2982, allocations: 35.78 kB / 327.8 MB, free: 15.83 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.2986, allocations: 74.97 kB / 327.9 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.2988, allocations: 154.5 kB / 328.1 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.2991, allocations: 71.11 kB / 328.1 MB, free: 15.64 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.2992, allocations: 72.7 kB / 328.2 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.2995, allocations: 78.5 kB / 328.3 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.544e-05/0.2995, allocations: 12.06 kB / 328.3 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.2996, allocations: 24.8 kB / 328.3 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2997, allocations: 46.33 kB / 328.4 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.2999, allocations: 83.41 kB / 328.4 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.3002, allocations: 172.8 kB / 328.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3002, allocations: 0 / 328.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3002, allocations: 1.438 kB / 328.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.3002, allocations: 0 / 328.6 MB, free: 15.31 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.0009728/0.3012, allocations: 0.5031 MB / 329.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3012, allocations: 9.344 kB / 329.1 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/0.3013, allocations: 27.91 kB / 329.2 MB, free: 14.82 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.3016, allocations: 239.4 kB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.386e-05/0.3016, allocations: 10.34 kB / 329.4 MB, free: 14.57 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.3017, allocations: 14.62 kB / 329.4 MB, free: 14.56 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004007/0.3021, allocations: 198.7 kB / 329.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3021, allocations: 0.9688 kB / 329.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.3021, allocations: 13.19 kB / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.43e-05/0.3022, allocations: 5.938 kB / 329.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.3025, allocations: 146.3 kB / 329.8 MB, free: 14.35 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.3036, allocations: 0.7718 MB / 330.5 MB, free: 13.64 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.304, allocations: 164.4 kB / 330.7 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.3041, allocations: 75.52 kB / 330.8 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.194e-05/0.3042, allocations: 7.359 kB / 330.8 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002727/0.3045, allocations: 148.8 kB / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.3045, allocations: 0 / 330.9 MB, free: 13.38 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006094/0.3051, allocations: 257.8 kB / 331.2 MB, free: 13.25 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.3052, allocations: 88.27 kB / 331.3 MB, free: 13.14 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002096/0.3054, allocations: 206.5 kB / 331.5 MB, free: 12.98 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3054, allocations: 31.86 kB / 331.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3055, allocations: 142 kB / 331.6 MB, free: 12.82 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.33e-05/0.3056, allocations: 38 kB / 331.7 MB, free: 12.79 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.528e-05/0.3057, allocations: 41.2 kB / 331.7 MB, free: 12.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3058, allocations: 331.3 kB / 332 MB, free: 12.43 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001694/0.306, allocations: 72.45 kB / 332.1 MB, free: 12.39 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.3062, allocations: 129.5 kB / 332.2 MB, free: 12.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.3066, allocations: 211.1 kB / 332.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3066, allocations: 1.094 kB / 332.4 MB, free: 12.14 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000466/0.307, allocations: 232.9 kB / 332.7 MB, free: 12.03 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3071, allocations: 5.656 kB / 332.7 MB, free: 12.03 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3071, allocations: 9.312 kB / 332.7 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.3071, allocations: 3.25 kB / 332.7 MB, free: 12.02 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.3073, allocations: 37.38 kB / 332.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.3073, allocations: 2.766 kB / 332.7 MB, free: 12.01 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.3075, allocations: 36.38 kB / 332.8 MB, free: 11.98 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.3076, allocations: 5.594 kB / 332.8 MB, free: 11.98 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.0001499/0.3077, allocations: 143.8 kB / 332.9 MB, free: 11.85 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.3078, allocations: 20.59 kB / 332.9 MB, free: 11.84 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000458/0.3082, allocations: 215.5 kB / 333.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3082, allocations: 6.422 kB / 333.2 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3082, allocations: 1.125 kB / 333.2 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.3083, allocations: 1.031 kB / 333.2 MB, free: 11.7 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.3085, allocations: 270.8 kB / 333.4 MB, free: 11.41 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.3085, allocations: 4.094 kB / 333.4 MB, free: 11.4 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.3086, allocations: 23.92 kB / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3087, allocations: 4 kB / 333.4 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.3087, allocations: 3.984 kB / 333.5 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3087, allocations: 4 kB / 333.5 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3087, allocations: 0 / 333.5 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003645/0.3091, allocations: 237.4 kB / 333.7 MB, free: 11.11 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.982e-05/0.3091, allocations: 92.92 kB / 333.8 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.3092, allocations: 4 kB / 333.8 MB, free: 11 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3093, allocations: 19.97 kB / 333.8 MB, free: 10.98 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.391e-05/0.3094, allocations: 15.98 kB / 333.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.3094, allocations: 4 kB / 333.8 MB, free: 10.96 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.3095, allocations: 148.4 kB / 334 MB, free: 10.82 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3095, allocations: 0 / 334 MB, free: 10.82 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.3098, allocations: 43.84 kB / 334 MB, free: 10.77 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.0001479/0.3099, allocations: 107.2 kB / 334.1 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003875/0.3103, allocations: 179.8 kB / 334.3 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3103, allocations: 0 / 334.3 MB, free: 10.48 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.3105, allocations: 88.44 kB / 334.4 MB, free: 10.4 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.3108, allocations: 44.58 kB / 334.4 MB, free: 10.36 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007344/0.3116, allocations: 374.7 kB / 334.8 MB, free: 9.961 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.312, allocations: 0.7397 MB / 335.5 MB, free: 9.195 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.3121, allocations: 37.45 kB / 335.6 MB, free: 9.16 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.3122, allocations: 19.44 kB / 335.6 MB, free: 9.141 MB / 270.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3122, allocations: 0 / 335.6 MB, free: 9.141 MB / 270.1 MB Notification: Performance of Templates: time 0.005629/0.3178, allocations: 2.102 MB / 337.7 MB, free: 7.039 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)