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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.0041/0.0041, allocations: 87.89 kB / 15.91 MB, free: 6.301 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.0009692/0.0009692, allocations: 198.5 kB / 16.83 MB, free: 6.234 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.193/1.193, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1582/0.1582, allocations: 8.092 MB / 298.7 MB, free: 2.066 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0009798/0.0009798, allocations: 55.92 kB / 361 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08729/0.08828, allocations: 51.53 MB / 412.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003585/0.0919, allocations: 2.844 MB / 415.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.09317, allocations: 0.8367 MB / 416.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.161e-05/0.09326, allocations: 4 kB / 416.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.09358, allocations: 115.6 kB / 416.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.09383, allocations: 131.3 kB / 416.5 MB, free: 6.191 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.001348/0.09519, allocations: 0.8914 MB / 417.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002718/0.09547, allocations: 294.6 kB / 417.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.09564, allocations: 103.5 kB / 417.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.942e-05/0.09574, allocations: 123.5 kB / 417.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.09596, allocations: 195.2 kB / 418.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.09601, allocations: 20 kB / 418.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002897/0.0963, allocations: 203.8 kB / 418.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.89e-05/0.09636, allocations: 59.7 kB / 418.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.09648, allocations: 139.2 kB / 418.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004167/0.0969, allocations: 462.9 kB / 418.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.09691, allocations: 0 / 418.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.09692, allocations: 0 / 418.9 MB, free: 3.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.09693, allocations: 0 / 418.9 MB, free: 3.727 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.00182/0.09875, allocations: 0.7839 MB / 419.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.735e-05/0.09879, allocations: 8.031 kB / 419.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.09887, allocations: 40.56 kB / 419.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.09914, allocations: 264.5 kB / 420 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/0.0992, allocations: 80.53 kB / 420.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.09925, allocations: 24.38 kB / 420.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005068/0.09976, allocations: 345.3 kB / 420.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.09978, allocations: 3.938 kB / 420.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/0.09982, allocations: 12 kB / 420.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.09983, allocations: 12 kB / 420.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.1003, allocations: 334.1 kB / 420.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.1017, allocations: 1.319 MB / 422.1 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009049/0.1026, allocations: 0.5631 MB / 422.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000283/0.1029, allocations: 212.8 kB / 422.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.6e-05/0.1029, allocations: 15.89 kB / 422.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004354/0.1034, allocations: 267.2 kB / 423.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.613e-06/0.1034, allocations: 0 / 423.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.002704/0.1061, allocations: 1.053 MB / 424.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.1061, allocations: 59.41 kB / 424.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.1063, allocations: 191.2 kB / 424.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1063, allocations: 33.7 kB / 424.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.337e-05/0.1064, allocations: 140.5 kB / 424.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.607e-05/0.1065, allocations: 141.9 kB / 424.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1066, allocations: 82.11 kB / 424.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.09e-05/0.1067, allocations: 330.8 kB / 425.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.107, allocations: 180.8 kB / 425.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.1073, allocations: 219.3 kB / 425.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005853/0.1079, allocations: 411 kB / 426 MB, free: 12.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1079, allocations: 0 / 426 MB, free: 12.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00151/0.1095, allocations: 0.7032 MB / 426.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1095, allocations: 9.875 kB / 426.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1095, allocations: 0 / 426.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.1107, allocations: 310.8 kB / 427 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.1109, allocations: 55.97 kB / 427.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003468/0.1144, allocations: 2.732 MB / 429.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.1146, allocations: 35.66 kB / 429.8 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.1147, allocations: 19.98 kB / 429.8 MB, free: 8.312 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.0001464/0.1148, allocations: 153.7 kB / 430 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.854e-05/0.1149, allocations: 27.72 kB / 430 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.1165, allocations: 0.7185 MB / 430.7 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1165, allocations: 4 kB / 430.7 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.1165, allocations: 7.984 kB / 430.8 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1165, allocations: 3.984 kB / 430.8 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.1184, allocations: 1.252 MB / 432 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1184, allocations: 0 / 432 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001643/0.1186, allocations: 51.91 kB / 432.1 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.1197, allocations: 314.4 kB / 432.4 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.1198, allocations: 8 kB / 432.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003312/0.1231, allocations: 2.695 MB / 435.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1231, allocations: 3.984 kB / 435.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.1246, allocations: 0.7735 MB / 435.8 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.1246, allocations: 108.7 kB / 436 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.879e-05/0.1247, allocations: 11.98 kB / 436 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1249, allocations: 15.94 kB / 436 MB, free: 1.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.746e-05/0.125, allocations: 44.38 kB / 436 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.125, allocations: 12 kB / 436 MB, free: 1.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.1252, allocations: 140 kB / 436.2 MB, free: 1.727 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1252, allocations: 0 / 436.2 MB, free: 1.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004625/0.1256, allocations: 131.9 kB / 436.3 MB, free: 1.598 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.0001854/0.1258, allocations: 124.7 kB / 436.4 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.127, allocations: 0.6987 MB / 437.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.127, allocations: 4 kB / 437.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007964/0.1279, allocations: 493.1 kB / 437.6 MB, free: 268 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.1282, allocations: 31.75 kB / 437.6 MB, free: 236 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1312/0.2594, allocations: 0.7245 MB / 438.4 MB, free: 57.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/0.2596, allocations: 0.766 MB / 439.1 MB, free: 56.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.2598, allocations: 44.75 kB / 439.2 MB, free: 56.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.255e-05/0.2598, allocations: 29.75 kB / 439.2 MB, free: 56.48 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2598, allocations: 0 / 439.2 MB, free: 56.48 MB / 366.1 MB Notification: Performance of Templates: time 0.008128/0.268, allocations: 6.61 MB / 445.8 MB, free: 56.25 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)