Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.00943/0.00943, allocations: 106.5 kB / 15.74 MB, free: 5.578 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.002331/0.002331, allocations: 189.9 kB / 16.67 MB, free: 5.516 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.475/1.475, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.0016/0.0016, allocations: 51.92 kB / 326.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1213, allocations: 46.62 MB / 373.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00361/0.125, allocations: 1.855 MB / 375 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1264, allocations: 0.6278 MB / 375.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001284/0.1265, allocations: 8 kB / 375.6 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.1267, allocations: 35.59 kB / 375.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.1269, allocations: 31.66 kB / 375.7 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003112/0.1272, allocations: 71.86 kB / 375.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.1275, allocations: 159.5 kB / 375.9 MB, free: 1.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.1277, allocations: 69.48 kB / 376 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.1278, allocations: 75.64 kB / 376.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.128, allocations: 83.61 kB / 376.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.364e-05/0.128, allocations: 16 kB / 376.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.631e-05/0.1281, allocations: 19.94 kB / 376.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.1283, allocations: 35.91 kB / 376.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.1284, allocations: 83.47 kB / 376.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.1287, allocations: 195.2 kB / 376.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.1287, allocations: 0 / 376.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1287, allocations: 0 / 376.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1287, allocations: 0 / 376.5 MB, free: 1.215 MB / 318.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.001184/0.1299, allocations: 0.5065 MB / 377 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.13, allocations: 8.031 kB / 377 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.073e-05/0.13, allocations: 24.66 kB / 377 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.1304, allocations: 243.7 kB / 377.3 MB, free: 360 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1305, allocations: 8.656 kB / 377.3 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.1305, allocations: 16.38 kB / 377.3 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004138/0.1309, allocations: 203.2 kB / 377.5 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.131, allocations: 0 / 377.5 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.131, allocations: 7.984 kB / 377.5 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.884e-05/0.131, allocations: 8 kB / 377.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2335/0.3645, allocations: 136.4 kB / 377.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.3659, allocations: 0.7738 MB / 378.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003616/0.3663, allocations: 161.6 kB / 378.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.3664, allocations: 76.03 kB / 378.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.132e-05/0.3665, allocations: 8.609 kB / 378.7 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002864/0.3668, allocations: 145.1 kB / 378.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 3.146e-06/0.3668, allocations: 0.9062 kB / 378.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006117/0.3674, allocations: 260.7 kB / 379.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.3675, allocations: 80.42 kB / 379.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.3677, allocations: 203.9 kB / 379.3 MB, free: 12.28 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.3677, allocations: 27.58 kB / 379.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.693e-05/0.3679, allocations: 145.2 kB / 379.5 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/0.3679, allocations: 42.38 kB / 379.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.168e-05/0.368, allocations: 43.05 kB / 379.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.535e-05/0.3681, allocations: 334 kB / 379.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.3683, allocations: 67.88 kB / 380 MB, free: 11.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3685, allocations: 130.6 kB / 380.1 MB, free: 11.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004844/0.369, allocations: 206.2 kB / 380.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.369, allocations: 0.5312 kB / 380.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000591/0.3696, allocations: 252.9 kB / 380.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.3696, allocations: 6.141 kB / 380.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3697, allocations: 3.344 kB / 380.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.413e-05/0.3697, allocations: 2.594 kB / 380.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.37, allocations: 34.52 kB / 380.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.37, allocations: 3.312 kB / 380.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.3702, allocations: 34.08 kB / 380.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.3703, allocations: 6.625 kB / 380.6 MB, free: 11.6 MB / 318.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.0001377/0.3704, allocations: 152.1 kB / 380.8 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.3705, allocations: 21.52 kB / 380.8 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.3709, allocations: 213.2 kB / 381 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.371, allocations: 1.719 kB / 381 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.371, allocations: 6.531 kB / 381 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.371, allocations: 1.469 kB / 381 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.3712, allocations: 268.4 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3713, allocations: 0.5 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00013/0.3714, allocations: 25.06 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.3714, allocations: 2.547 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.3714, allocations: 2.141 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.3714, allocations: 2.406 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3714, allocations: 3.938 kB / 381.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.3718, allocations: 231.3 kB / 381.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.81e-05/0.3719, allocations: 95.66 kB / 381.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/0.3719, allocations: 1.906 kB / 381.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.3721, allocations: 20.3 kB / 381.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.169e-05/0.3722, allocations: 13.03 kB / 381.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.3722, allocations: 8.812 kB / 381.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001232/0.3723, allocations: 151.2 kB / 381.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3723, allocations: 0.875 kB / 381.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.3726, allocations: 40.31 kB / 381.9 MB, free: 10.85 MB / 318.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.0001314/0.3727, allocations: 107 kB / 382 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003938/0.3731, allocations: 180.5 kB / 382.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3732, allocations: 384 / 382.2 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.3733, allocations: 86.95 kB / 382.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.3737, allocations: 48 kB / 382.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006938/0.3744, allocations: 367 kB / 382.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.3746, allocations: 0.7364 MB / 383.4 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.3747, allocations: 33.19 kB / 383.4 MB, free: 9.746 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.935e-05/0.3748, allocations: 17.11 kB / 383.4 MB, free: 9.738 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3748, allocations: 4 kB / 383.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of Templates: time 0.006824/0.3816, allocations: 2.124 MB / 385.6 MB, free: 9.586 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)