Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.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: "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 101.7 kB / 16.31 MB, free: 6.391 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.001186/0.001186, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04668/0.04668, allocations: 8.094 MB / 299.2 MB, free: 6.746 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.91 kB / 361.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2247, allocations: 51.51 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.00343/0.2282, allocations: 2.852 MB / 416.2 MB, free: 22.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.2298, allocations: 1.129 MB / 417.3 MB, free: 21.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.2299, allocations: 8 kB / 417.3 MB, free: 21.58 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003236/0.2302, allocations: 135.2 kB / 417.5 MB, free: 21.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.2305, allocations: 143.1 kB / 417.6 MB, free: 21.3 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.001554/0.2321, allocations: 1.015 MB / 418.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.2324, allocations: 334.5 kB / 419 MB, free: 19.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.2326, allocations: 126.9 kB / 419.1 MB, free: 19.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.2327, allocations: 143.4 kB / 419.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002253/0.2329, allocations: 207.2 kB / 419.4 MB, free: 19.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.233, allocations: 28 kB / 419.5 MB, free: 19.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003881/0.2334, allocations: 307.7 kB / 419.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.2334, allocations: 67.75 kB / 419.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.2336, allocations: 167.1 kB / 420 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.234, allocations: 0.5437 MB / 420.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.234, allocations: 0 / 420.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.234, allocations: 0 / 420.5 MB, free: 18.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.2341, allocations: 0 / 420.5 MB, free: 18.39 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002019/0.2361, allocations: 0.8361 MB / 421.4 MB, free: 17.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2361, allocations: 11.89 kB / 421.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.254e-05/0.2362, allocations: 70.72 kB / 421.4 MB, free: 17.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.045e-05/0.2363, allocations: 36.56 kB / 421.5 MB, free: 17.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.2366, allocations: 283.7 kB / 421.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.423e-05/0.2367, allocations: 80.62 kB / 421.8 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.675e-05/0.2368, allocations: 32.38 kB / 421.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.2373, allocations: 386.3 kB / 422.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.2373, allocations: 0 / 422.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.514e-05/0.2373, allocations: 16 kB / 422.3 MB, free: 16.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.2374, allocations: 11.98 kB / 422.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004471/0.2378, allocations: 362.4 kB / 422.6 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.2391, allocations: 1.363 MB / 424 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009306/0.2401, allocations: 0.5546 MB / 424.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002635/0.2404, allocations: 242.1 kB / 424.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.218e-05/0.2404, allocations: 8.422 kB / 424.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004977/0.2409, allocations: 309.3 kB / 425.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/0.2409, allocations: 0 / 425.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.002877/0.2438, allocations: 1.16 MB / 426.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.2439, allocations: 59.84 kB / 426.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001687/0.2441, allocations: 206.1 kB / 426.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.2441, allocations: 41.64 kB / 426.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/0.2442, allocations: 148.8 kB / 426.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.643e-05/0.2443, allocations: 165.6 kB / 426.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.2444, allocations: 98.23 kB / 427 MB, free: 11.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.457e-05/0.2444, allocations: 334.8 kB / 427.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/0.2447, allocations: 201 kB / 427.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.245, allocations: 254.4 kB / 427.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003956/0.249, allocations: 1.262 MB / 429 MB, free: 9.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.249, allocations: 4 kB / 429 MB, free: 9.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00145/0.2505, allocations: 0.7881 MB / 429.8 MB, free: 8.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2505, allocations: 4 kB / 429.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2505, allocations: 0 / 429.8 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001099/0.2516, allocations: 313.3 kB / 430.1 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.2519, allocations: 67.91 kB / 430.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.2551, allocations: 2.972 MB / 433.1 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.2554, allocations: 47.58 kB / 433.2 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.2554, allocations: 16 kB / 433.2 MB, free: 5.203 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: myFailure.seed:DISCRETE(fixed = true protected = true ) type: Integer myFailure.componentIsWorking:DISCRETE(start = true fixed = true ) type: Boolean myFailure.F:VARIABLE(start = 0.0 fixed = true ) "cumulative distribution function" type: Real myFailure.r:DISCRETE(fixed = true ) "random numbers" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.myFailure.seed,myFailure.seed,$whenCondition4,myFailure.i,$PRE.myFailure.componentIsWorking,$PRE.myFailure.r,myFailure.r,myFailure.componentIsWorking,myFailure.y,n.y,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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.0001763/0.2556, allocations: 181 kB / 433.4 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.518e-05/0.2557, allocations: 31.7 kB / 433.4 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.2572, allocations: 0.7999 MB / 434.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.2572, allocations: 8 kB / 434.2 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.2572, allocations: 3.938 kB / 434.2 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.2573, allocations: 3.984 kB / 434.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001916/0.2592, allocations: 1.365 MB / 435.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2592, allocations: 0 / 435.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.2594, allocations: 63.78 kB / 435.6 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.2604, allocations: 296.6 kB / 435.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.2605, allocations: 15.98 kB / 435.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003196/0.2637, allocations: 2.918 MB / 438.9 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2637, allocations: 4 kB / 438.9 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.2658, allocations: 1.108 MB / 440 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.2659, allocations: 108.8 kB / 440.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.93e-05/0.266, allocations: 16 kB / 440.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.2663, allocations: 19.98 kB / 440.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.2664, allocations: 48.44 kB / 440.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-05/0.2665, allocations: 24.05 kB / 440.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001553/0.2666, allocations: 148.3 kB / 440.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.913e-06/0.2667, allocations: 0 / 440.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006617/0.2673, allocations: 167.8 kB / 440.5 MB, free: 13.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (myFailure.F) * Number of discrete variables: 9 (n.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,myFailure.y,myFailure.componentIsWorking,myFailure.r,myFailure.seed) * Number of discrete states: 2 (myFailure.r,myFailure.componentIsWorking) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002707/0.27, allocations: 1.761 MB / 442.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.2719, allocations: 0.7911 MB / 443.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2719, allocations: 0 / 443.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.273, allocations: 0.525 MB / 443.6 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.2734, allocations: 38.31 kB / 443.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.2794, allocations: 3.868 MB / 447.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.2798, allocations: 0.7822 MB / 448.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001676/0.2799, allocations: 46.92 kB / 448.3 MB, free: 5.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.2801, allocations: 107.4 kB / 448.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2801, allocations: 0 / 448.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03276/0.3128, allocations: 11.39 MB / 459.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.62, allocations: 15.67 kB / 459.8 MB, free: 10.34 MB / 334.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1)