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.001807/0.001807, 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.001325/0.001325, allocations: 191.3 kB / 16.25 MB, free: 6.629 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.575/1.575, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001251/0.001251, allocations: 47.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2875, allocations: 46.63 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004384/0.292, allocations: 1.894 MB / 326.7 MB, free: 460 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001751/0.2938, allocations: 0.6248 MB / 327.4 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.2941, allocations: 6.688 kB / 327.4 MB, free: 15.95 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.2943, allocations: 13.17 kB / 327.4 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002772/0.2946, allocations: 31.78 kB / 327.4 MB, free: 15.91 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004514/0.2951, allocations: 58.03 kB / 327.5 MB, free: 15.87 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003808/0.2955, allocations: 163.6 kB / 327.6 MB, free: 15.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002526/0.2958, allocations: 66.83 kB / 327.7 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001992/0.296, allocations: 79.58 kB / 327.8 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.2962, allocations: 88.77 kB / 327.9 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.2963, allocations: 12.19 kB / 327.9 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2964, allocations: 15.38 kB / 327.9 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.2965, allocations: 42.84 kB / 327.9 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.2966, allocations: 83.78 kB / 328 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.297, allocations: 177.9 kB / 328.2 MB, free: 15.4 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.297, allocations: 0 / 328.2 MB, free: 15.4 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2971, allocations: 0 / 328.2 MB, free: 15.4 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.2971, allocations: 0 / 328.2 MB, free: 15.4 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.00143/0.2985, allocations: 0.5085 MB / 328.7 MB, free: 14.92 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.408e-05/0.2986, allocations: 8.781 kB / 328.7 MB, free: 14.92 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.2987, allocations: 23.12 kB / 328.7 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004428/0.2992, allocations: 240.2 kB / 329 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.2992, allocations: 10.56 kB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.134e-05/0.2993, allocations: 14.5 kB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.2998, allocations: 203 kB / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.2998, allocations: 0 / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.2999, allocations: 10.62 kB / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.488e-05/0.2999, allocations: 5.031 kB / 329.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.3003, allocations: 146 kB / 329.3 MB, free: 14.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3019, allocations: 0.7767 MB / 330.1 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.3022, allocations: 168.6 kB / 330.3 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.3024, allocations: 74.56 kB / 330.3 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.3025, allocations: 10.61 kB / 330.4 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.3027, allocations: 149.4 kB / 330.5 MB, free: 13.45 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.883e-06/0.3028, allocations: 0 / 330.5 MB, free: 13.45 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006343/0.3034, allocations: 257.4 kB / 330.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.3035, allocations: 84.8 kB / 330.8 MB, free: 13.22 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.3037, allocations: 203.2 kB / 331 MB, free: 13.07 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.3038, allocations: 32.27 kB / 331.1 MB, free: 13.03 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.3039, allocations: 140.9 kB / 331.2 MB, free: 12.9 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.3039, allocations: 42.69 kB / 331.2 MB, free: 12.86 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.304, allocations: 44.23 kB / 331.3 MB, free: 12.83 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3042, allocations: 328.6 kB / 331.6 MB, free: 12.5 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.3043, allocations: 74.81 kB / 331.7 MB, free: 12.47 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.3045, allocations: 118.1 kB / 331.8 MB, free: 12.38 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003623/0.3049, allocations: 210.1 kB / 332 MB, free: 12.23 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3049, allocations: 1.125 kB / 332 MB, free: 12.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004972/0.3054, allocations: 240.7 kB / 332.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3055, allocations: 9.969 kB / 332.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3055, allocations: 2.344 kB / 332.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3055, allocations: 2.312 kB / 332.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.3057, allocations: 32.48 kB / 332.3 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.3057, allocations: 7.422 kB / 332.3 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.3059, allocations: 32.72 kB / 332.3 MB, free: 12.07 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.3059, allocations: 13.91 kB / 332.3 MB, free: 12.06 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.0001692/0.3061, allocations: 139.7 kB / 332.5 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-05/0.3062, allocations: 20.78 kB / 332.5 MB, free: 11.92 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004817/0.3066, allocations: 213.2 kB / 332.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3067, allocations: 2.156 kB / 332.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3067, allocations: 0 / 332.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3067, allocations: 5.125 kB / 332.7 MB, free: 11.79 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002953/0.307, allocations: 272.1 kB / 333 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.307, allocations: 0 / 333 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.3071, allocations: 23.8 kB / 333 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.3071, allocations: 1.094 kB / 333 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.3072, allocations: 5.125 kB / 333 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3072, allocations: 2.375 kB / 333 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.3072, allocations: 3.984 kB / 333 MB, free: 11.51 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003743/0.3075, allocations: 236.1 kB / 333.2 MB, free: 11.29 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.3076, allocations: 92.92 kB / 333.3 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.3077, allocations: 11.98 kB / 333.3 MB, free: 11.17 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.3078, allocations: 11.98 kB / 333.4 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/0.3079, allocations: 19.97 kB / 333.4 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3079, allocations: 4 kB / 333.4 MB, free: 11.13 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.308, allocations: 148.6 kB / 333.5 MB, free: 10.99 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.308, allocations: 0 / 333.5 MB, free: 10.99 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.3083, allocations: 39.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.000181/0.3085, allocations: 103.2 kB / 333.7 MB, free: 10.84 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003873/0.3089, allocations: 179.9 kB / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3089, allocations: 4.5 kB / 333.8 MB, free: 10.66 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001656/0.3091, allocations: 83.95 kB / 333.9 MB, free: 10.58 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.3094, allocations: 39.84 kB / 334 MB, free: 10.54 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000739/0.3102, allocations: 446.4 kB / 334.4 MB, free: 10.07 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.3105, allocations: 0.7358 MB / 335.1 MB, free: 9.312 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.3106, allocations: 29.53 kB / 335.2 MB, free: 9.285 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.944e-05/0.3107, allocations: 23.42 kB / 335.2 MB, free: 9.262 MB / 270.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3107, allocations: 0 / 335.2 MB, free: 9.262 MB / 270.1 MB Notification: Performance of Templates: time 0.005297/0.316, allocations: 1.992 MB / 337.2 MB, free: 7.262 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)