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.001055/0.001062, allocations: 100.5 kB / 16.02 MB, free: 6.32 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.001177/0.001178, allocations: 196.8 kB / 16.95 MB, free: 6.141 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.399/1.399, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05653/0.05653, allocations: 8.104 MB / 298.9 MB, free: 6.652 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 63.89 kB / 361.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2391, allocations: 51.52 MB / 412.7 MB, free: 25.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003155/0.2423, allocations: 2.846 MB / 415.6 MB, free: 22.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.2434, allocations: 0.825 MB / 416.4 MB, free: 22.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.063e-05/0.2435, allocations: 4 kB / 416.4 MB, free: 22.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.2438, allocations: 119.5 kB / 416.5 MB, free: 21.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.2441, allocations: 123.3 kB / 416.7 MB, free: 21.8 MB / 302.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.001343/0.2455, allocations: 0.8717 MB / 417.5 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003649/0.2459, allocations: 302.6 kB / 417.8 MB, free: 20.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.2461, allocations: 114.9 kB / 417.9 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.2462, allocations: 135.5 kB / 418.1 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002341/0.2464, allocations: 195.3 kB / 418.3 MB, free: 20.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.14e-05/0.2465, allocations: 31.98 kB / 418.3 MB, free: 20.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003433/0.2468, allocations: 207.8 kB / 418.5 MB, free: 19.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.544e-05/0.2469, allocations: 63.7 kB / 418.6 MB, free: 19.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.247, allocations: 151.2 kB / 418.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004716/0.2475, allocations: 456.6 kB / 419.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.2475, allocations: 4 kB / 419.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2475, allocations: 0 / 419.2 MB, free: 19.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.2475, allocations: 0 / 419.2 MB, free: 19.3 MB / 302.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.001904/0.2495, allocations: 0.7916 MB / 419.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.2495, allocations: 12.03 kB / 420 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.246e-05/0.2496, allocations: 36.56 kB / 420 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.2498, allocations: 260.5 kB / 420.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.2499, allocations: 88.45 kB / 420.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.555e-05/0.25, allocations: 32.38 kB / 420.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004571/0.2504, allocations: 341.4 kB / 420.7 MB, free: 17.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.2504, allocations: 3.938 kB / 420.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/0.2505, allocations: 12 kB / 420.7 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2505, allocations: 4 kB / 420.7 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.2509, allocations: 342 kB / 421.1 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.2523, allocations: 1.311 MB / 422.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.2534, allocations: 0.5552 MB / 422.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003199/0.2537, allocations: 216.8 kB / 423.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.892e-05/0.2538, allocations: 15.97 kB / 423.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006182/0.2544, allocations: 267.9 kB / 423.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 3.346e-06/0.2545, allocations: 0 / 423.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002712/0.2572, allocations: 1.057 MB / 424.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.2572, allocations: 59.41 kB / 424.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.2574, allocations: 191.1 kB / 424.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.2574, allocations: 37.69 kB / 424.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.092e-05/0.2575, allocations: 136.6 kB / 424.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.279e-05/0.2575, allocations: 141.9 kB / 425 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2577, allocations: 82.11 kB / 425.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.729e-05/0.2577, allocations: 334.8 kB / 425.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.258, allocations: 176.8 kB / 425.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002393/0.2582, allocations: 223.3 kB / 425.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.2587, allocations: 411 kB / 426.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2587, allocations: 0 / 426.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001322/0.26, allocations: 0.7148 MB / 426.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.26, allocations: 4 kB / 426.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.26, allocations: 8 kB / 426.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001157/0.2612, allocations: 300.6 kB / 427.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.2614, allocations: 59.91 kB / 427.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003583/0.265, allocations: 2.975 MB / 430.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.2653, allocations: 31.69 kB / 430.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.2654, allocations: 16 kB / 430.3 MB, free: 7.625 MB / 302.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.0001886/0.2656, allocations: 149.8 kB / 430.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.329e-05/0.2656, allocations: 31.64 kB / 430.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001455/0.2671, allocations: 0.7185 MB / 431.2 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2671, allocations: 4 kB / 431.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.2671, allocations: 0 / 431.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2671, allocations: 3.984 kB / 431.2 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.2688, allocations: 1.26 MB / 432.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2688, allocations: 3.984 kB / 432.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.269, allocations: 47.92 kB / 432.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.2702, allocations: 304.5 kB / 432.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-05/0.2702, allocations: 16 kB / 432.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003182/0.2734, allocations: 2.931 MB / 435.8 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2734, allocations: 3.938 kB / 435.8 MB, free: 1.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.2747, allocations: 0.7735 MB / 436.6 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.2748, allocations: 100.8 kB / 436.7 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.109e-05/0.2749, allocations: 12 kB / 436.7 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.2751, allocations: 23.86 kB / 436.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.2752, allocations: 40.38 kB / 436.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.2753, allocations: 20 kB / 436.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.2754, allocations: 144.9 kB / 436.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2754, allocations: 0 / 436.9 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004839/0.2759, allocations: 131.8 kB / 437 MB, free: 0.6602 MB / 302.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.0001941/0.2761, allocations: 125.2 kB / 437.1 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.2774, allocations: 0.722 MB / 437.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.2774, allocations: 3.938 kB / 437.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008349/0.2782, allocations: 0.4932 MB / 438.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.2786, allocations: 30.75 kB / 438.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.2797, allocations: 0.7134 MB / 439.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000313/0.28, allocations: 0.7735 MB / 439.9 MB, free: 13.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.2802, allocations: 47.05 kB / 439.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.215e-05/0.2803, allocations: 31.42 kB / 440 MB, free: 13.64 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2803, allocations: 0 / 440 MB, free: 13.64 MB / 318.1 MB Notification: Performance of Templates: time 0.01066/0.291, allocations: 7.021 MB / 447 MB, free: 6.637 MB / 318.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)