Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001477/0.001477, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001583/0.001583, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.684/1.684, allocations: 205.1 MB / 223.7 MB, free: 12.31 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.001572/0.001572, allocations: 48.2 kB / 280 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1248, allocations: 46.63 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004919/0.1298, allocations: 1.848 MB / 328.5 MB, free: 2.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001873/0.1317, allocations: 0.6364 MB / 329.1 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.132, allocations: 0 / 329.1 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.1322, allocations: 27.67 kB / 329.1 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.1325, allocations: 35.66 kB / 329.2 MB, free: 1.902 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.1329, allocations: 67.86 kB / 329.2 MB, free: 1.836 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003991/0.1333, allocations: 155.5 kB / 329.4 MB, free: 1.684 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/0.1337, allocations: 77.41 kB / 329.5 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002573/0.1339, allocations: 63.66 kB / 329.5 MB, free: 1.543 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000307/0.1343, allocations: 91.55 kB / 329.6 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.305e-05/0.1343, allocations: 12 kB / 329.6 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.1344, allocations: 23.98 kB / 329.6 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.1346, allocations: 47.72 kB / 329.7 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001357/0.1347, allocations: 75.55 kB / 329.8 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.1351, allocations: 179.6 kB / 329.9 MB, free: 1.121 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.1351, allocations: 0 / 329.9 MB, free: 1.121 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1351, allocations: 0 / 329.9 MB, free: 1.121 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1351, allocations: 0 / 329.9 MB, free: 1.121 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.001516/0.1367, allocations: 0.5067 MB / 330.4 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.297e-05/0.1367, allocations: 12.03 kB / 330.5 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.2e-05/0.1368, allocations: 20.66 kB / 330.5 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.1373, allocations: 239.7 kB / 330.7 MB, free: 268 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.1373, allocations: 12.66 kB / 330.7 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.1373, allocations: 12.38 kB / 330.7 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004352/0.1378, allocations: 195.3 kB / 330.9 MB, free: 32 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.1378, allocations: 3.938 kB / 330.9 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.1378, allocations: 19.92 kB / 330.9 MB, free: 8 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.989e-05/0.1379, allocations: 4 kB / 330.9 MB, free: 4 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003642/0.1383, allocations: 143.9 kB / 331.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.1397, allocations: 0.7662 MB / 331.9 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005606/0.1403, allocations: 168.9 kB / 332 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.1404, allocations: 77.8 kB / 332.1 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/0.1405, allocations: 8 kB / 332.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.1408, allocations: 144.9 kB / 332.2 MB, free: 14.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 2.074e-06/0.1408, allocations: 0 / 332.2 MB, free: 14.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006629/0.1415, allocations: 261.4 kB / 332.5 MB, free: 14.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/0.1417, allocations: 85.05 kB / 332.6 MB, free: 14.24 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004116/0.1421, allocations: 199 kB / 332.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.1421, allocations: 37.69 kB / 332.8 MB, free: 13.99 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.1423, allocations: 136.1 kB / 332.9 MB, free: 13.85 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.1424, allocations: 43.45 kB / 333 MB, free: 13.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.84e-05/0.1425, allocations: 41.7 kB / 333 MB, free: 13.76 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.1427, allocations: 330.8 kB / 333.4 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.1429, allocations: 71.95 kB / 333.4 MB, free: 13.36 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.1431, allocations: 126.8 kB / 333.5 MB, free: 13.21 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003476/0.1434, allocations: 206.6 kB / 333.7 MB, free: 12.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1434, allocations: 0 / 333.7 MB, free: 12.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004629/0.1439, allocations: 249.1 kB / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.1439, allocations: 4 kB / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.144, allocations: 4 kB / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.144, allocations: 0 / 334 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.1442, allocations: 39.91 kB / 334 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.1442, allocations: 4.109 kB / 334 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.1444, allocations: 31.95 kB / 334.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.1444, allocations: 15.98 kB / 334.1 MB, free: 12.64 MB / 286.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.0001855/0.1446, allocations: 145.6 kB / 334.2 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.1446, allocations: 19.81 kB / 334.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004774/0.1451, allocations: 210.9 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1451, allocations: 0 / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.1452, allocations: 4 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.1452, allocations: 7.984 kB / 334.5 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005288/0.1457, allocations: 265.4 kB / 334.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1457, allocations: 0 / 334.7 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.1459, allocations: 23.92 kB / 334.8 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.069e-06/0.1459, allocations: 4 kB / 334.8 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.1459, allocations: 7.984 kB / 334.8 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1459, allocations: 4 kB / 334.8 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1459, allocations: 4.859 kB / 334.8 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004016/0.1463, allocations: 226.7 kB / 335 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.1464, allocations: 88.92 kB / 335.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.1464, allocations: 8 kB / 335.1 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.1466, allocations: 15.97 kB / 335.1 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.888e-05/0.1467, allocations: 15.98 kB / 335.1 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.1467, allocations: 7.938 kB / 335.1 MB, free: 11.49 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.1468, allocations: 156.4 kB / 335.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1469, allocations: 0 / 335.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1471, allocations: 39.84 kB / 335.3 MB, free: 11.3 MB / 286.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.000261/0.1474, allocations: 99.25 kB / 335.4 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005271/0.1479, allocations: 187.8 kB / 335.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1479, allocations: 384 / 335.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.1481, allocations: 92.19 kB / 335.7 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003749/0.1485, allocations: 43.86 kB / 335.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008817/0.1494, allocations: 381.1 kB / 336.1 MB, free: 10.48 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.1499, allocations: 0.7358 MB / 336.8 MB, free: 9.715 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001162/0.15, allocations: 41.5 kB / 336.9 MB, free: 9.676 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.126e-05/0.1501, allocations: 23.44 kB / 336.9 MB, free: 9.652 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1501, allocations: 0 / 336.9 MB, free: 9.652 MB / 286.1 MB Notification: Performance of Templates: time 0.00642/0.1565, allocations: 2.094 MB / 339 MB, free: 7.562 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)