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.001064/0.001064, allocations: 103.4 kB / 16.45 MB, free: 6.035 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.001148/0.001148, allocations: 186.6 kB / 17.38 MB, free: 5.562 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.309/1.309, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04734/0.04734, allocations: 8.098 MB / 299.3 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 59.91 kB / 414.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09336/0.0945, allocations: 51.5 MB / 466 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003995/0.09853, allocations: 2.813 MB / 468.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.1001, allocations: 0.8443 MB / 469.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1002, allocations: 4 kB / 469.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003964/0.1006, allocations: 135.2 kB / 469.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003372/0.101, allocations: 143.1 kB / 469.9 MB, free: 14.1 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.001576/0.1026, allocations: 0.9333 MB / 470.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003782/0.103, allocations: 302.6 kB / 471.2 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.1032, allocations: 126.9 kB / 471.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1033, allocations: 131.5 kB / 471.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.1036, allocations: 191.3 kB / 471.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.1036, allocations: 24 kB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003857/0.104, allocations: 215.8 kB / 471.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.1041, allocations: 67.75 kB / 471.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.1042, allocations: 151.2 kB / 472 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005642/0.1048, allocations: 466.2 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1048, allocations: 0 / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1048, allocations: 0 / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.1048, allocations: 4 kB / 472.5 MB, free: 11.51 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.002044/0.1069, allocations: 0.8026 MB / 473.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.1069, allocations: 8.031 kB / 473.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.13e-05/0.107, allocations: 36.75 kB / 473.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.1073, allocations: 268.6 kB / 473.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.387e-05/0.1074, allocations: 76.53 kB / 473.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.1075, allocations: 28.38 kB / 473.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.1081, allocations: 341.4 kB / 474 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1081, allocations: 3.938 kB / 474.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.1081, allocations: 16 kB / 474.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.1082, allocations: 8 kB / 474.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004924/0.1086, allocations: 338 kB / 474.4 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001581/0.1102, allocations: 1.303 MB / 475.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.1113, allocations: 0.563 MB / 476.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.1116, allocations: 216.6 kB / 476.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.818e-05/0.1117, allocations: 11.98 kB / 476.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005202/0.1122, allocations: 271.1 kB / 476.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.804e-06/0.1122, allocations: 0 / 476.8 MB, free: 6.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002867/0.1151, allocations: 1.069 MB / 477.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.1151, allocations: 55.41 kB / 477.9 MB, free: 5.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.1153, allocations: 186.7 kB / 478.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/0.1154, allocations: 33.7 kB / 478.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.515e-05/0.1155, allocations: 148.8 kB / 478.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.1156, allocations: 146.7 kB / 478.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.1157, allocations: 78.12 kB / 478.5 MB, free: 5.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1159, allocations: 334.8 kB / 478.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002781/0.1162, allocations: 176.8 kB / 479 MB, free: 4.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.1165, allocations: 219.3 kB / 479.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000594/0.1171, allocations: 418.9 kB / 479.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1171, allocations: 0 / 479.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001461/0.1186, allocations: 0.7072 MB / 480.3 MB, free: 3.344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.1186, allocations: 8 kB / 480.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1186, allocations: 0 / 480.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.1199, allocations: 304.5 kB / 480.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.1201, allocations: 63.91 kB / 480.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00416/0.1243, allocations: 2.965 MB / 483.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.1245, allocations: 31.8 kB / 483.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.1246, allocations: 19.98 kB / 483.7 MB, free: 15.82 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.0001792/0.1248, allocations: 141.8 kB / 483.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.1248, allocations: 35.8 kB / 483.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.1266, allocations: 0.7264 MB / 484.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.1266, allocations: 8 kB / 484.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1266, allocations: 3.938 kB / 484.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.1266, allocations: 3.984 kB / 484.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.1289, allocations: 1.253 MB / 485.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.1289, allocations: 0 / 485.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.1291, allocations: 55.91 kB / 485.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001191/0.1303, allocations: 308.5 kB / 486.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.1304, allocations: 4 kB / 486.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004822/0.1352, allocations: 2.938 MB / 489.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1352, allocations: 0 / 489.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.1369, allocations: 0.7709 MB / 489.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.903e-05/0.137, allocations: 116.8 kB / 490 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/0.1371, allocations: 4 kB / 490 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.1373, allocations: 19.98 kB / 490.1 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.1374, allocations: 36.52 kB / 490.1 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.22e-05/0.1375, allocations: 16 kB / 490.1 MB, free: 9.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.1376, allocations: 144.9 kB / 490.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1376, allocations: 0 / 490.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005272/0.1382, allocations: 131.8 kB / 490.4 MB, free: 8.867 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.0002272/0.1384, allocations: 131.1 kB / 490.5 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.1399, allocations: 0.7142 MB / 491.2 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.14, allocations: 0 / 491.2 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009524/0.1409, allocations: 0.497 MB / 491.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.1413, allocations: 38.48 kB / 491.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.1427, allocations: 0.6141 MB / 492.4 MB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004202/0.1431, allocations: 0.7696 MB / 493.1 MB, free: 6.023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001394/0.1433, allocations: 46.94 kB / 493.2 MB, free: 5.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.702e-05/0.1434, allocations: 31.42 kB / 493.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1434, allocations: 0 / 493.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of Templates: time 0.01208/0.1554, allocations: 7.157 MB / 0.4886 GB, free: 14.8 MB / 382.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)