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.00155/0.00155, allocations: 111.8 kB / 17.08 MB, free: 6 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.001764/0.001764, allocations: 192 kB / 18.02 MB, free: 5.082 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.514/1.514, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05542/0.05542, allocations: 8.109 MB / 300 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 363.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2536, allocations: 51.52 MB / 414.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.004081/0.2578, allocations: 2.802 MB / 417.5 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.2594, allocations: 0.8405 MB / 418.3 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002675/0.2597, allocations: 4 kB / 418.3 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004913/0.2602, allocations: 139.2 kB / 418.5 MB, free: 21.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005037/0.2607, allocations: 147.1 kB / 418.6 MB, free: 21.48 MB / 302.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.001558/0.2623, allocations: 0.9258 MB / 419.6 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004613/0.2628, allocations: 302.6 kB / 419.8 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.263, allocations: 126.7 kB / 420 MB, free: 20.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001674/0.2632, allocations: 127.6 kB / 420.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.2634, allocations: 195.3 kB / 420.3 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.2635, allocations: 28 kB / 420.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004099/0.2639, allocations: 215.8 kB / 420.5 MB, free: 19.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.67e-05/0.264, allocations: 59.77 kB / 420.6 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.2641, allocations: 151.2 kB / 420.7 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005785/0.2647, allocations: 464.3 kB / 421.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2647, allocations: 4 kB / 421.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2647, allocations: 0 / 421.2 MB, free: 18.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.2647, allocations: 4 kB / 421.2 MB, free: 18.91 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.001986/0.2667, allocations: 0.7882 MB / 422 MB, free: 18.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.2668, allocations: 8.031 kB / 422 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.2669, allocations: 36.56 kB / 422 MB, free: 18.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.2671, allocations: 270.2 kB / 422.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.2672, allocations: 80.52 kB / 422.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.2673, allocations: 28.38 kB / 422.4 MB, free: 17.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004704/0.2677, allocations: 345.4 kB / 422.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.2678, allocations: 3.938 kB / 422.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.2678, allocations: 8 kB / 422.7 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.2678, allocations: 12 kB / 422.8 MB, free: 17.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004151/0.2682, allocations: 330.1 kB / 423.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.2696, allocations: 1.307 MB / 424.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008563/0.2705, allocations: 0.5591 MB / 424.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000258/0.2707, allocations: 216.6 kB / 425.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.946e-05/0.2708, allocations: 12.67 kB / 425.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004155/0.2712, allocations: 267.1 kB / 425.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.024e-06/0.2712, allocations: 0 / 425.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.002633/0.2739, allocations: 1.062 MB / 426.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.2739, allocations: 55.41 kB / 426.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.2741, allocations: 194.6 kB / 426.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.58e-05/0.2742, allocations: 33.7 kB / 426.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.864e-05/0.2743, allocations: 148.6 kB / 426.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.232e-05/0.2744, allocations: 138 kB / 427 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.2745, allocations: 78.11 kB / 427.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.079e-05/0.2746, allocations: 338.8 kB / 427.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.2748, allocations: 172.8 kB / 427.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002621/0.2751, allocations: 227.2 kB / 427.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000486/0.2756, allocations: 415 kB / 428.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2756, allocations: 0 / 428.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001382/0.277, allocations: 0.7071 MB / 429 MB, free: 10.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.277, allocations: 4 kB / 429 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.277, allocations: 3.938 kB / 429 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/0.2782, allocations: 313.5 kB / 429.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002127/0.2784, allocations: 59.91 kB / 429.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003542/0.2819, allocations: 2.971 MB / 432.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.2822, allocations: 31.69 kB / 432.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.2822, allocations: 12 kB / 432.3 MB, free: 7.25 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.0001661/0.2824, allocations: 155.3 kB / 432.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.2825, allocations: 27.66 kB / 432.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/0.2839, allocations: 0.7224 MB / 433.2 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2839, allocations: 4 kB / 433.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.2839, allocations: 0 / 433.2 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2839, allocations: 3.984 kB / 433.3 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/0.2856, allocations: 1.257 MB / 434.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2856, allocations: 4 kB / 434.5 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.2858, allocations: 55.91 kB / 434.6 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/0.2868, allocations: 303.6 kB / 434.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.2868, allocations: 12 kB / 434.9 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.2899, allocations: 2.926 MB / 437.8 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2899, allocations: 0 / 437.8 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.2914, allocations: 0.7785 MB / 438.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.127e-05/0.2914, allocations: 100.8 kB / 438.7 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.072e-05/0.2915, allocations: 16 kB / 438.7 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.2918, allocations: 15.98 kB / 438.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.292, allocations: 40.38 kB / 438.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.292, allocations: 16 kB / 438.8 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000143/0.2922, allocations: 144 kB / 438.9 MB, free: 436 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.2922, allocations: 3.938 kB / 438.9 MB, free: 432 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007181/0.2929, allocations: 135.7 kB / 439 MB, free: 296 kB / 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.0002366/0.2931, allocations: 123.2 kB / 439.2 MB, free: 164 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.2951, allocations: 0.7026 MB / 439.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.2951, allocations: 4 kB / 439.9 MB, free: 15.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.2963, allocations: 0.4932 MB / 440.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005499/0.2969, allocations: 27.94 kB / 440.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.2985, allocations: 0.6041 MB / 441 MB, free: 14.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/0.299, allocations: 0.7696 MB / 441.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001941/0.2992, allocations: 42.92 kB / 441.8 MB, free: 13.44 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.797e-05/0.2993, allocations: 31.44 kB / 441.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2993, allocations: 0 / 441.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of Templates: time 0.01784/0.3171, allocations: 7.072 MB / 448.9 MB, free: 6.355 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 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)