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.001104/0.001104, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001064/0.001064, allocations: 172.7 kB / 15.95 MB, free: 208 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.722/1.722, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.0005156/0.0005157, allocations: 11.12 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2703, allocations: 47.58 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001633/0.272, allocations: 1.521 MB / 328 MB, free: 180 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009247/0.2729, allocations: 0.5887 MB / 328.6 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.363e-05/0.273, allocations: 2.531 kB / 328.6 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.2731, allocations: 17.08 kB / 328.6 MB, free: 15.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.2733, allocations: 32.66 kB / 328.6 MB, free: 15.67 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.2735, allocations: 53.28 kB / 328.7 MB, free: 15.63 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.2737, allocations: 145.9 kB / 328.8 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.2739, allocations: 62.31 kB / 328.9 MB, free: 15.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.508e-05/0.274, allocations: 53.16 kB / 328.9 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.2741, allocations: 60.2 kB / 329 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.2741, allocations: 5.844 kB / 329 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.982e-05/0.2742, allocations: 15.48 kB / 329 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.2742, allocations: 38.8 kB / 329 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.73e-05/0.2743, allocations: 51.98 kB / 329.1 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.2744, allocations: 107.7 kB / 329.2 MB, free: 15.28 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2745, allocations: 4 kB / 329.2 MB, free: 15.28 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2745, allocations: 0 / 329.2 MB, free: 15.28 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2745, allocations: 0 / 329.2 MB, free: 15.28 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.0007864/0.2753, allocations: 0.4942 MB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.2753, allocations: 9.156 kB / 329.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.839e-05/0.2754, allocations: 22.03 kB / 329.7 MB, free: 14.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.2756, allocations: 230.7 kB / 330 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.2756, allocations: 13.89 kB / 330 MB, free: 14.55 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.2757, allocations: 13.88 kB / 330 MB, free: 14.54 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.276, allocations: 205.7 kB / 330.2 MB, free: 14.4 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2761, allocations: 1.125 kB / 330.2 MB, free: 14.4 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.2761, allocations: 5.031 kB / 330.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.2761, allocations: 5.438 kB / 330.2 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.2764, allocations: 148.2 kB / 330.3 MB, free: 14.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.2774, allocations: 0.8017 MB / 331.1 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.2777, allocations: 164.2 kB / 331.3 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.2779, allocations: 81.23 kB / 331.4 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.2779, allocations: 3.906 kB / 331.4 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002546/0.2782, allocations: 144 kB / 331.5 MB, free: 13.36 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.2782, allocations: 0 / 331.5 MB, free: 13.36 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005901/0.2788, allocations: 271.6 kB / 331.8 MB, free: 13.23 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.2789, allocations: 91.73 kB / 331.9 MB, free: 13.12 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.2791, allocations: 201 kB / 332.1 MB, free: 12.96 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.2791, allocations: 32.47 kB / 332.1 MB, free: 12.93 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.2792, allocations: 149.4 kB / 332.3 MB, free: 12.79 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.2793, allocations: 46 kB / 332.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-06/0.2793, allocations: 5.438 kB / 332.3 MB, free: 12.75 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.2794, allocations: 331.6 kB / 332.6 MB, free: 12.42 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.2796, allocations: 70.89 kB / 332.7 MB, free: 12.39 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.2798, allocations: 128.9 kB / 332.8 MB, free: 12.29 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.2799, allocations: 80.94 kB / 332.9 MB, free: 12.26 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.28, allocations: 5.25 kB / 332.9 MB, free: 12.25 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004286/0.2804, allocations: 246.2 kB / 333.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.2804, allocations: 6.375 kB / 333.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.2804, allocations: 1.312 kB / 333.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2805, allocations: 7.406 kB / 333.2 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.2806, allocations: 38.59 kB / 333.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.2806, allocations: 4.234 kB / 333.2 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.2808, allocations: 38.16 kB / 333.2 MB, free: 12.09 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.2808, allocations: 6.625 kB / 333.3 MB, free: 12.09 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.0001369/0.281, allocations: 142.9 kB / 333.4 MB, free: 11.96 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.281, allocations: 20.47 kB / 333.4 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004479/0.2815, allocations: 222.8 kB / 333.6 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2815, allocations: 1.969 kB / 333.6 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2815, allocations: 1.375 kB / 333.6 MB, free: 11.82 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.2815, allocations: 4 kB / 333.6 MB, free: 11.81 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.2818, allocations: 276.3 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2818, allocations: 0 / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.2819, allocations: 26.11 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2819, allocations: 1.062 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.2819, allocations: 1.094 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.282, allocations: 1.25 kB / 333.9 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.282, allocations: 4.938 kB / 333.9 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004102/0.2824, allocations: 241.8 kB / 334.2 MB, free: 11.38 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.2824, allocations: 94.94 kB / 334.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.603e-05/0.2825, allocations: 1.188 kB / 334.3 MB, free: 11.27 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.2826, allocations: 26.95 kB / 334.3 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.982e-05/0.2827, allocations: 14.62 kB / 334.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.2827, allocations: 8.5 kB / 334.3 MB, free: 11.25 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.2828, allocations: 150.6 kB / 334.5 MB, free: 11.11 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2828, allocations: 3.938 kB / 334.5 MB, free: 11.11 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.2831, allocations: 43.84 kB / 334.5 MB, free: 11.07 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.000153/0.2833, allocations: 107.2 kB / 334.6 MB, free: 10.95 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003532/0.2836, allocations: 175.8 kB / 334.8 MB, free: 10.78 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2836, allocations: 0 / 334.8 MB, free: 10.78 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.2838, allocations: 92.25 kB / 334.9 MB, free: 10.69 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.2842, allocations: 43.91 kB / 334.9 MB, free: 10.65 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006974/0.2849, allocations: 418.2 kB / 335.3 MB, free: 10.21 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003379/0.2852, allocations: 0.7399 MB / 336.1 MB, free: 9.445 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.2853, allocations: 33.52 kB / 336.1 MB, free: 9.414 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.2854, allocations: 15.44 kB / 336.1 MB, free: 9.398 MB / 270.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2854, allocations: 4 kB / 336.1 MB, free: 9.395 MB / 270.1 MB Notification: Performance of Templates: time 0.0055/0.2909, allocations: 1.817 MB / 337.9 MB, free: 7.578 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)