Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad") translateModel(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 116.3 kB / 17.13 MB, free: 6.012 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.001369/0.001369, allocations: 191 kB / 18.06 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04545/0.04545, allocations: 8.1 MB / 300 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 63.91 kB / 415.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.1015, allocations: 51.52 MB / 466.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.005263/0.1068, allocations: 2.812 MB / 469.5 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.1088, allocations: 0.8444 MB / 470.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.109, allocations: 4 kB / 470.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005434/0.1095, allocations: 135.2 kB / 470.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005564/0.1101, allocations: 139.1 kB / 470.6 MB, free: 14.21 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.002457/0.1126, allocations: 0.9334 MB / 471.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005972/0.1132, allocations: 306.5 kB / 471.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003225/0.1135, allocations: 122.9 kB / 472 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000228/0.1138, allocations: 131.5 kB / 472.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004143/0.1142, allocations: 195.2 kB / 472.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.691e-05/0.1143, allocations: 24 kB / 472.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005805/0.1149, allocations: 211.8 kB / 472.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.947e-05/0.115, allocations: 67.7 kB / 472.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.1152, allocations: 147.3 kB / 472.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008556/0.1161, allocations: 466.6 kB / 473.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1161, allocations: 0 / 473.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1161, allocations: 0 / 473.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.1161, allocations: 4 kB / 473.2 MB, free: 11.63 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.003289/0.1194, allocations: 0.7839 MB / 474 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1195, allocations: 15.89 kB / 474 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001411/0.1196, allocations: 32.66 kB / 474 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000468/0.1201, allocations: 260.5 kB / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.1203, allocations: 84.52 kB / 474.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.1203, allocations: 28.38 kB / 474.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009215/0.1213, allocations: 341.4 kB / 474.7 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.1213, allocations: 11.88 kB / 474.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.368e-05/0.1214, allocations: 15.94 kB / 474.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.1214, allocations: 11.94 kB / 474.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008535/0.1223, allocations: 334.1 kB / 475.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.1248, allocations: 1.303 MB / 476.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.1265, allocations: 0.563 MB / 476.9 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005/0.127, allocations: 220.6 kB / 477.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.493e-05/0.1271, allocations: 11.98 kB / 477.2 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006646/0.1278, allocations: 267.1 kB / 477.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.995e-06/0.1278, allocations: 4 kB / 477.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.004873/0.1327, allocations: 1.058 MB / 478.5 MB, free: 6.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.1328, allocations: 59.41 kB / 478.5 MB, free: 5.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003132/0.1331, allocations: 190.7 kB / 478.7 MB, free: 5.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.1332, allocations: 37.7 kB / 478.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.1333, allocations: 132.6 kB / 478.9 MB, free: 5.578 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.1335, allocations: 145.8 kB / 479 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.1337, allocations: 82.11 kB / 479.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1338, allocations: 334.8 kB / 479.4 MB, free: 5.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/0.1343, allocations: 176.8 kB / 479.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004981/0.1348, allocations: 223.2 kB / 479.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/0.1358, allocations: 407 kB / 480.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1358, allocations: 0 / 480.2 MB, free: 4.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002509/0.1383, allocations: 0.7071 MB / 480.9 MB, free: 3.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.1384, allocations: 8 kB / 481 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.1384, allocations: 0 / 481 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/0.1404, allocations: 312.5 kB / 481.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003738/0.1408, allocations: 59.91 kB / 481.3 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006671/0.1475, allocations: 2.953 MB / 484.3 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.1479, allocations: 31.8 kB / 484.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.442e-05/0.148, allocations: 16.06 kB / 484.3 MB, free: 15.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000234/0.1482, allocations: 149.8 kB / 484.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1483, allocations: 27.66 kB / 484.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.1507, allocations: 0.7302 MB / 485.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1507, allocations: 11.88 kB / 485.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1507, allocations: 4 kB / 485.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.1507, allocations: 3.984 kB / 485.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003464/0.1542, allocations: 1.253 MB / 486.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1542, allocations: 0 / 486.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.1546, allocations: 55.91 kB / 486.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/0.1566, allocations: 300.6 kB / 486.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/0.1567, allocations: 11.98 kB / 486.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006001/0.1627, allocations: 2.935 MB / 489.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1627, allocations: 3.984 kB / 489.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.1652, allocations: 0.7669 MB / 490.6 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.1653, allocations: 120.5 kB / 490.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.1654, allocations: 8 kB / 490.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.1658, allocations: 19.98 kB / 490.7 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.166, allocations: 40.38 kB / 490.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.076e-05/0.166, allocations: 12 kB / 490.8 MB, free: 9.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002131/0.1663, allocations: 144 kB / 490.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1663, allocations: 0 / 490.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008069/0.1671, allocations: 127.9 kB / 491 MB, free: 9.012 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002573/0.1674, allocations: 127.2 kB / 491.1 MB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.1696, allocations: 0.7104 MB / 491.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.1696, allocations: 0 / 491.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.1711, allocations: 0.4932 MB / 492.3 MB, free: 7.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005808/0.1717, allocations: 31.75 kB / 492.4 MB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.1735, allocations: 0.6359 MB / 493 MB, free: 6.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.1739, allocations: 0.7696 MB / 493.8 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.1741, allocations: 35.42 kB / 493.8 MB, free: 6.121 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1741, allocations: 0 / 493.8 MB, free: 6.121 MB / 366.1 MB Notification: Performance of Templates: time 0.01046/0.1846, allocations: 5.615 MB / 499.4 MB, free: 0.5039 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)