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.001224/0.001224, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001416/0.001416, allocations: 194.3 kB / 16.14 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.587/1.587, allocations: 205.1 MB / 222 MB, free: 4.758 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.001355/0.001355, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3438, allocations: 46.62 MB / 324.7 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004574/0.3485, allocations: 1.91 MB / 326.6 MB, free: 436 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.3501, allocations: 0.6176 MB / 327.2 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.3503, allocations: 2.281 kB / 327.2 MB, free: 15.94 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001608/0.3505, allocations: 20.77 kB / 327.2 MB, free: 15.92 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.3507, allocations: 29.22 kB / 327.2 MB, free: 15.89 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.351, allocations: 65.94 kB / 327.3 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002723/0.3513, allocations: 151.5 kB / 327.5 MB, free: 15.76 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.3516, allocations: 68.89 kB / 327.5 MB, free: 15.71 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.3517, allocations: 64.66 kB / 327.6 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.352, allocations: 86.5 kB / 327.7 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.352, allocations: 8.781 kB / 327.7 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.087e-05/0.3521, allocations: 10.94 kB / 327.7 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.3522, allocations: 38.84 kB / 327.7 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3524, allocations: 79.31 kB / 327.8 MB, free: 15.53 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.3527, allocations: 163.2 kB / 328 MB, free: 15.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3527, allocations: 0 / 328 MB, free: 15.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3527, allocations: 4 kB / 328 MB, free: 15.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.3527, allocations: 0 / 328 MB, free: 15.41 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.001213/0.354, allocations: 0.5082 MB / 328.5 MB, free: 14.93 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.354, allocations: 9.719 kB / 328.5 MB, free: 14.93 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.738e-05/0.3541, allocations: 23 kB / 328.5 MB, free: 14.91 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003324/0.3544, allocations: 235.5 kB / 328.7 MB, free: 14.67 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.3545, allocations: 15.09 kB / 328.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.3545, allocations: 14.69 kB / 328.8 MB, free: 14.66 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.355, allocations: 198.1 kB / 329 MB, free: 14.52 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3551, allocations: 5.344 kB / 329 MB, free: 14.51 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.3551, allocations: 5.438 kB / 329 MB, free: 14.51 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.3551, allocations: 8.875 kB / 329 MB, free: 14.5 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004238/0.3556, allocations: 142.1 kB / 329.1 MB, free: 14.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.357, allocations: 0.7776 MB / 329.9 MB, free: 13.74 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004468/0.3574, allocations: 167.3 kB / 330.1 MB, free: 13.63 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.3576, allocations: 75.36 kB / 330.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.993e-05/0.3577, allocations: 3.328 kB / 330.1 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003577/0.3581, allocations: 141 kB / 330.3 MB, free: 13.48 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.3581, allocations: 4 kB / 330.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.000808/0.3589, allocations: 257.6 kB / 330.5 MB, free: 13.34 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.617e-05/0.359, allocations: 83.22 kB / 330.6 MB, free: 13.25 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002444/0.3592, allocations: 211.6 kB / 330.8 MB, free: 13.08 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.957e-05/0.3593, allocations: 28.36 kB / 330.8 MB, free: 13.05 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.3594, allocations: 141.3 kB / 331 MB, free: 12.92 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.594e-05/0.3595, allocations: 46 kB / 331 MB, free: 12.88 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.299e-05/0.3596, allocations: 44.92 kB / 331.1 MB, free: 12.84 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3597, allocations: 328.2 kB / 331.4 MB, free: 12.52 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.36, allocations: 67.73 kB / 331.5 MB, free: 12.49 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.3603, allocations: 125.8 kB / 331.6 MB, free: 12.39 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005253/0.3608, allocations: 211.4 kB / 331.8 MB, free: 12.25 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3608, allocations: 1.25 kB / 331.8 MB, free: 12.25 MB / 270.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006413/0.3615, allocations: 232.4 kB / 332 MB, free: 12.13 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.3615, allocations: 5.906 kB / 332 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.3615, allocations: 1.672 kB / 332 MB, free: 12.13 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.3616, allocations: 11.44 kB / 332 MB, free: 12.12 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.3618, allocations: 36.8 kB / 332.1 MB, free: 12.11 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.3618, allocations: 11.11 kB / 332.1 MB, free: 12.1 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.3621, allocations: 31.91 kB / 332.1 MB, free: 12.08 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.3621, allocations: 6.469 kB / 332.1 MB, free: 12.08 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.0001916/0.3623, allocations: 139.7 kB / 332.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.887e-05/0.3624, allocations: 23.58 kB / 332.3 MB, free: 11.93 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.363, allocations: 216.4 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.363, allocations: 2.188 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.363, allocations: 5.125 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3631, allocations: 1.188 kB / 332.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003884/0.3635, allocations: 271.4 kB / 332.8 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3635, allocations: 0 / 332.8 MB, free: 11.54 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.3636, allocations: 23.97 kB / 332.8 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3637, allocations: 1.469 kB / 332.8 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.819e-05/0.3637, allocations: 1.438 kB / 332.8 MB, free: 11.53 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.461e-06/0.3637, allocations: 5.406 kB / 332.8 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3637, allocations: 4 kB / 332.8 MB, free: 11.52 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005665/0.3643, allocations: 231.9 kB / 333 MB, free: 11.37 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.542e-05/0.3644, allocations: 94.48 kB / 333.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.542e-05/0.3644, allocations: 1.156 kB / 333.1 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3646, allocations: 24.69 kB / 333.1 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.3647, allocations: 15.97 kB / 333.2 MB, free: 11.23 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.3647, allocations: 8 kB / 333.2 MB, free: 11.22 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.3649, allocations: 140.6 kB / 333.3 MB, free: 11.08 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3649, allocations: 0 / 333.3 MB, free: 11.08 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.3653, allocations: 39.84 kB / 333.3 MB, free: 11.04 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.0001976/0.3655, allocations: 107.2 kB / 333.4 MB, free: 10.93 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0004976/0.366, allocations: 171.8 kB / 333.6 MB, free: 10.76 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.366, allocations: 4 kB / 333.6 MB, free: 10.76 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.3663, allocations: 83.88 kB / 333.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.3667, allocations: 39.91 kB / 333.7 MB, free: 10.64 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000937/0.3677, allocations: 438.5 kB / 334.2 MB, free: 10.18 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.3681, allocations: 0.7282 MB / 334.9 MB, free: 9.426 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001552/0.3682, allocations: 41.5 kB / 334.9 MB, free: 9.387 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.908e-05/0.3683, allocations: 19.38 kB / 335 MB, free: 9.367 MB / 270.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3683, allocations: 0 / 335 MB, free: 9.367 MB / 270.1 MB Notification: Performance of Templates: time 0.005849/0.3742, allocations: 1.909 MB / 336.9 MB, free: 7.461 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)