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.008137/0.008137, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.00163/0.00163, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.783/1.783, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.001107/0.001107, allocations: 51.92 kB / 326.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.126, allocations: 46.62 MB / 373.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003984/0.13, allocations: 1.855 MB / 375 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.1316, allocations: 0.6318 MB / 375.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.1319, allocations: 7.938 kB / 375.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.1321, allocations: 27.67 kB / 375.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002775/0.1324, allocations: 35.66 kB / 375.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004547/0.1329, allocations: 63.88 kB / 375.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000424/0.1333, allocations: 167.5 kB / 375.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.1336, allocations: 73.48 kB / 376 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002458/0.1338, allocations: 71.64 kB / 376.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.1341, allocations: 79.62 kB / 376.2 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.1341, allocations: 15.94 kB / 376.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.1343, allocations: 27.92 kB / 376.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.1344, allocations: 47.83 kB / 376.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.1346, allocations: 75.55 kB / 376.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004807/0.135, allocations: 195.2 kB / 376.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1351, allocations: 0 / 376.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1351, allocations: 0 / 376.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.66e-05/0.1351, allocations: 3.984 kB / 376.5 MB, free: 1.188 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.001269/0.1364, allocations: 0.4987 MB / 377 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1364, allocations: 8.031 kB / 377 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.359e-05/0.1365, allocations: 24.66 kB / 377 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003271/0.1368, allocations: 243.7 kB / 377.3 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.1369, allocations: 12.66 kB / 377.3 MB, free: 328 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.1369, allocations: 12.38 kB / 377.3 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.1373, allocations: 199.3 kB / 377.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1374, allocations: 0 / 377.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/0.1374, allocations: 8 kB / 377.5 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.1374, allocations: 4 kB / 377.5 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2701/0.4075, allocations: 138.5 kB / 377.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.4088, allocations: 0.7784 MB / 378.4 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003242/0.4092, allocations: 158.6 kB / 378.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.4093, allocations: 74.31 kB / 378.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.4094, allocations: 7.25 kB / 378.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003249/0.4097, allocations: 150.7 kB / 378.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.4097, allocations: 0.7656 kB / 378.8 MB, free: 12.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006498/0.4104, allocations: 252 kB / 379.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.4104, allocations: 84.17 kB / 379.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.4107, allocations: 200.1 kB / 379.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.4107, allocations: 31.58 kB / 379.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.4108, allocations: 149.3 kB / 379.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.329e-05/0.4109, allocations: 41.11 kB / 379.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.845e-05/0.411, allocations: 47.66 kB / 379.6 MB, free: 12.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.4111, allocations: 328.4 kB / 379.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.4113, allocations: 70.16 kB / 380 MB, free: 11.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001737/0.4114, allocations: 132.7 kB / 380.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/0.4118, allocations: 207.9 kB / 380.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.4118, allocations: 0.5625 kB / 380.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004904/0.4123, allocations: 244.2 kB / 380.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.4124, allocations: 9.469 kB / 380.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.4124, allocations: 3.328 kB / 380.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.4124, allocations: 3.594 kB / 380.6 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.4126, allocations: 34.44 kB / 380.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.4126, allocations: 3.734 kB / 380.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001713/0.4128, allocations: 28.58 kB / 380.6 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.329e-05/0.4128, allocations: 10.5 kB / 380.6 MB, free: 11.52 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.000126/0.4129, allocations: 148.9 kB / 380.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.413, allocations: 21.16 kB / 380.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005188/0.4135, allocations: 214.3 kB / 381 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.4135, allocations: 1.828 kB / 381 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.4135, allocations: 1.469 kB / 381 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.4136, allocations: 0.75 kB / 381 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.4138, allocations: 272.1 kB / 381.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4139, allocations: 6.969 kB / 381.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.414, allocations: 24.2 kB / 381.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.414, allocations: 0.9375 kB / 381.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.414, allocations: 7.453 kB / 381.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.414, allocations: 1.094 kB / 381.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.414, allocations: 1.188 kB / 381.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003692/0.4144, allocations: 222.7 kB / 381.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.4144, allocations: 99.25 kB / 381.6 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.4145, allocations: 13.25 kB / 381.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.4146, allocations: 15.73 kB / 381.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.585e-05/0.4147, allocations: 18.09 kB / 381.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.4148, allocations: 8.5 kB / 381.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001254/0.4149, allocations: 148.5 kB / 381.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4149, allocations: 0 / 381.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002759/0.4152, allocations: 37.69 kB / 381.9 MB, free: 10.76 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.0001798/0.4154, allocations: 108 kB / 382 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004645/0.4158, allocations: 182.9 kB / 382.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4158, allocations: 0 / 382.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.4161, allocations: 87.11 kB / 382.2 MB, free: 10.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.4164, allocations: 44.48 kB / 382.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008152/0.4173, allocations: 356.9 kB / 382.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.4175, allocations: 0.7405 MB / 383.4 MB, free: 9.664 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.4177, allocations: 40.98 kB / 383.4 MB, free: 9.656 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.791e-05/0.4178, allocations: 17.53 kB / 383.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4178, allocations: 1.094 kB / 383.4 MB, free: 9.648 MB / 318.1 MB Notification: Performance of Templates: time 0.007298/0.4251, allocations: 2.121 MB / 385.6 MB, free: 9.508 MB / 318.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)