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.001053/0.001053, allocations: 106.5 kB / 16.45 MB, free: 6.434 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.001108/0.001108, allocations: 186.4 kB / 17.38 MB, free: 5.656 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.244/1.244, allocations: 222.9 MB / 241.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04466/0.04466, allocations: 8.1 MB / 299.3 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 63.91 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08371/0.08482, allocations: 51.53 MB / 465.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003718/0.08859, allocations: 2.851 MB / 468.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.09041, allocations: 1.129 MB / 469.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.09052, allocations: 4 kB / 469.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003723/0.09091, allocations: 143.2 kB / 469.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003348/0.09126, allocations: 143.1 kB / 469.8 MB, free: 14.34 MB / 350.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.001785/0.09305, allocations: 1.023 MB / 470.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000337/0.0934, allocations: 338.5 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.09362, allocations: 130.9 kB / 471.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.09375, allocations: 139.5 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.094, allocations: 211.2 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.09407, allocations: 28 kB / 471.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004445/0.09452, allocations: 299.7 kB / 471.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.331e-05/0.09459, allocations: 83.67 kB / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.09475, allocations: 167.1 kB / 472.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006079/0.09536, allocations: 0.5413 MB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09537, allocations: 0 / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.09538, allocations: 4 kB / 472.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.09539, allocations: 0 / 472.7 MB, free: 11.39 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00207/0.09747, allocations: 0.8469 MB / 473.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.09751, allocations: 15.89 kB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.887e-05/0.0976, allocations: 66.72 kB / 473.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.291e-05/0.09769, allocations: 40.75 kB / 473.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.09799, allocations: 283.8 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.345e-05/0.09809, allocations: 80.62 kB / 474 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.09815, allocations: 32.38 kB / 474.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.09873, allocations: 382.3 kB / 474.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.09876, allocations: 4 kB / 474.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.0988, allocations: 8 kB / 474.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.09881, allocations: 8 kB / 474.5 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005252/0.09934, allocations: 366.5 kB / 474.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.1009, allocations: 1.371 MB / 476.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.102, allocations: 0.5546 MB / 476.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003274/0.1023, allocations: 230.1 kB / 477 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.1024, allocations: 20.41 kB / 477 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005321/0.1029, allocations: 301.3 kB / 477.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.904e-06/0.1029, allocations: 0 / 477.3 MB, free: 6.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003012/0.1059, allocations: 1.168 MB / 478.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.106, allocations: 59.84 kB / 478.5 MB, free: 5.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.1062, allocations: 198.4 kB / 478.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.1062, allocations: 37.7 kB / 478.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.359e-05/0.1063, allocations: 149 kB / 478.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.1064, allocations: 170.5 kB / 479.1 MB, free: 4.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.1066, allocations: 98.22 kB / 479.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1067, allocations: 338.8 kB / 479.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002942/0.107, allocations: 193 kB / 479.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.1073, allocations: 266.3 kB / 479.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004159/0.1115, allocations: 1.25 MB / 481.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1115, allocations: 0 / 481.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001569/0.1131, allocations: 0.7883 MB / 482 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.1131, allocations: 8 kB / 482 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.1131, allocations: 0 / 482 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001163/0.1143, allocations: 315.7 kB / 482.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.1146, allocations: 71.84 kB / 482.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004/0.1186, allocations: 2.962 MB / 485.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002715/0.1189, allocations: 51.72 kB / 485.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.1189, allocations: 16 kB / 485.4 MB, free: 14.2 MB / 366.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.0002276/0.1191, allocations: 170.1 kB / 485.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-05/0.1192, allocations: 39.8 kB / 485.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.1209, allocations: 0.7842 MB / 486.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.625e-06/0.121, allocations: 8 kB / 486.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.121, allocations: 3.938 kB / 486.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.121, allocations: 3.984 kB / 486.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/0.1233, allocations: 1.377 MB / 487.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1233, allocations: 0 / 487.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/0.1236, allocations: 63.8 kB / 487.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001134/0.1247, allocations: 296.5 kB / 488.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.1248, allocations: 12 kB / 488.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003751/0.1285, allocations: 2.921 MB / 491 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1285, allocations: 0 / 491 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.1306, allocations: 1.109 MB / 492.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.445e-05/0.1307, allocations: 116.9 kB / 492.3 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.426e-05/0.1308, allocations: 15.94 kB / 492.3 MB, free: 7.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.131, allocations: 23.98 kB / 492.3 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.1311, allocations: 48.44 kB / 492.4 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/0.1312, allocations: 16 kB / 492.4 MB, free: 6.961 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.1313, allocations: 148.3 kB / 492.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1314, allocations: 0 / 492.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005728/0.1319, allocations: 159.9 kB / 492.7 MB, free: 6.66 MB / 366.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.002644/0.1346, allocations: 1.767 MB / 494.4 MB, free: 4.887 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.1361, allocations: 0.7753 MB / 495.2 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1361, allocations: 0 / 495.2 MB, free: 4.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009893/0.1371, allocations: 0.5291 MB / 495.7 MB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/0.1375, allocations: 42.48 kB / 495.8 MB, free: 3.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006625/0.1441, allocations: 3.882 MB / 499.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.1446, allocations: 0.7861 MB / 0.4887 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000179/0.1448, allocations: 50.94 kB / 0.4888 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.1449, allocations: 103.4 kB / 0.4889 GB, free: 14.57 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1449, allocations: 0 / 0.4889 GB, free: 14.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.1791, allocations: 11.57 MB / 0.5002 GB, free: 3.199 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.83, allocations: 19.92 kB / 0.5002 GB, free: 3.18 MB / 382.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)