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.001219/0.001219, allocations: 104 kB / 16.45 MB, free: 6.445 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.00121/0.001211, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.355/1.355, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05224/0.05224, allocations: 8.099 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001753/0.001753, allocations: 71.88 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08986/0.09162, allocations: 51.5 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.004007/0.09566, allocations: 2.867 MB / 468.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.09775, allocations: 1.125 MB / 469.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.09788, allocations: 7.938 kB / 469.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003795/0.09828, allocations: 139.2 kB / 469.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003473/0.09864, allocations: 151 kB / 469.8 MB, free: 14.35 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.001974/0.1006, allocations: 1.011 MB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.1011, allocations: 338.5 kB / 471.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.1013, allocations: 122.9 kB / 471.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001564/0.1015, allocations: 155.4 kB / 471.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002869/0.1018, allocations: 207.2 kB / 471.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.351e-05/0.1018, allocations: 32 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005353/0.1024, allocations: 299.7 kB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.476e-05/0.1024, allocations: 67.75 kB / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.1026, allocations: 167.1 kB / 472.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007177/0.1033, allocations: 0.5491 MB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1034, allocations: 4 kB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1034, allocations: 0 / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1034, allocations: 0 / 472.7 MB, free: 11.42 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.002217/0.1056, allocations: 0.8547 MB / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.1056, allocations: 11.89 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.099e-05/0.1057, allocations: 66.73 kB / 473.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.054e-05/0.1058, allocations: 40.73 kB / 473.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.1062, allocations: 271.8 kB / 474 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-05/0.1063, allocations: 84.62 kB / 474 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.321e-05/0.1063, allocations: 32.38 kB / 474.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006514/0.107, allocations: 386.3 kB / 474.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.107, allocations: 3.938 kB / 474.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.1071, allocations: 16 kB / 474.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.1071, allocations: 8 kB / 474.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005695/0.1076, allocations: 354.5 kB / 474.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.1095, allocations: 1.375 MB / 476.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.1106, allocations: 0.5507 MB / 476.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00037/0.111, allocations: 230.1 kB / 477 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.341e-05/0.1111, allocations: 16.42 kB / 477 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006263/0.1117, allocations: 305.3 kB / 477.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.564e-06/0.1117, allocations: 3.938 kB / 477.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.003281/0.115, allocations: 1.156 MB / 478.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.1151, allocations: 67.77 kB / 478.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.1153, allocations: 194.4 kB / 478.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.1154, allocations: 41.69 kB / 478.7 MB, free: 5.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1155, allocations: 141.1 kB / 478.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.1157, allocations: 178.5 kB / 479.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.1158, allocations: 98.23 kB / 479.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.116, allocations: 334.8 kB / 479.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.1163, allocations: 197 kB / 479.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004125/0.1168, allocations: 258.4 kB / 479.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004524/0.1213, allocations: 1.254 MB / 481.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.1213, allocations: 8 kB / 481.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001754/0.1231, allocations: 0.7882 MB / 482 MB, free: 1.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.1231, allocations: 4 kB / 482 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1231, allocations: 4 kB / 482 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.1244, allocations: 312.5 kB / 482.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002701/0.1246, allocations: 71.89 kB / 482.4 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004516/0.1292, allocations: 2.961 MB / 485.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.1295, allocations: 39.73 kB / 485.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.083e-05/0.1295, allocations: 24 kB / 485.4 MB, free: 14.23 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.0002658/0.1298, allocations: 178 kB / 485.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.805e-05/0.1299, allocations: 31.81 kB / 485.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.1317, allocations: 0.7922 MB / 486.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1318, allocations: 12 kB / 486.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1318, allocations: 3.938 kB / 486.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.1318, allocations: 3.984 kB / 486.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002449/0.1342, allocations: 1.37 MB / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.1343, allocations: 0 / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002116/0.1345, allocations: 55.84 kB / 487.8 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001187/0.1357, allocations: 307.6 kB / 488.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.542e-05/0.1357, allocations: 12 kB / 488.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004157/0.1399, allocations: 2.913 MB / 491 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1399, allocations: 4 kB / 491 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.1421, allocations: 1.113 MB / 492.2 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.1423, allocations: 108.8 kB / 492.3 MB, free: 7.098 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.1423, allocations: 15.95 kB / 492.3 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.1426, allocations: 24.05 kB / 492.3 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.1427, allocations: 48.38 kB / 492.4 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.698e-05/0.1428, allocations: 27.92 kB / 492.4 MB, free: 6.984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.143, allocations: 148.3 kB / 492.5 MB, free: 6.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.143, allocations: 0 / 492.5 MB, free: 6.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006018/0.1436, allocations: 159.9 kB / 492.7 MB, free: 6.684 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.002928/0.1465, allocations: 1.763 MB / 494.4 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.1482, allocations: 0.7753 MB / 495.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1482, allocations: 4 kB / 495.2 MB, free: 4.121 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009892/0.1492, allocations: 0.5215 MB / 495.7 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003658/0.1495, allocations: 39.73 kB / 495.8 MB, free: 3.551 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006316/0.1559, allocations: 3.886 MB / 499.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.1563, allocations: 0.7861 MB / 0.4887 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.1565, allocations: 50.92 kB / 0.4888 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.1567, allocations: 103.4 kB / 0.4889 GB, free: 14.59 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1567, allocations: 0 / 0.4889 GB, free: 14.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04037/0.1971, allocations: 11.57 MB / 0.5002 GB, free: 3.227 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.82, allocations: 7.875 kB / 0.5002 GB, free: 3.219 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)