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.001634/0.001634, allocations: 103.5 kB / 16.45 MB, free: 6.438 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.001089/0.001089, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.285/1.285, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04493/0.04493, allocations: 8.094 MB / 299.3 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 59.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08424, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized): time 0.003686/0.08796, allocations: 2.867 MB / 468.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.08983, allocations: 1.129 MB / 469.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.08994, allocations: 4 kB / 469.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003458/0.0903, allocations: 151.1 kB / 469.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003452/0.09068, allocations: 139.1 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.001833/0.09252, allocations: 1.015 MB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003783/0.09291, allocations: 334.5 kB / 471.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.09313, allocations: 130.9 kB / 471.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.09328, allocations: 139.5 kB / 471.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.09355, allocations: 211.2 kB / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.442e-05/0.09361, allocations: 28 kB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000471/0.09409, allocations: 307.6 kB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.893e-05/0.09417, allocations: 75.69 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.09431, allocations: 171.1 kB / 472.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.09493, allocations: 0.5373 MB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.09494, allocations: 3.938 kB / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09495, allocations: 0 / 472.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.09496, allocations: 0 / 472.7 MB, free: 11.41 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.002046/0.09701, allocations: 0.8322 MB / 473.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.09705, allocations: 15.89 kB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.671e-05/0.09713, allocations: 70.72 kB / 473.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.321e-05/0.09722, allocations: 44.47 kB / 473.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.09753, allocations: 275.8 kB / 473.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.146e-05/0.09762, allocations: 88.61 kB / 474 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.145e-05/0.09768, allocations: 32.38 kB / 474.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005738/0.09826, allocations: 386.3 kB / 474.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.09828, allocations: 0 / 474.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.09832, allocations: 12 kB / 474.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.09833, allocations: 4 kB / 474.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005108/0.09885, allocations: 362.5 kB / 474.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.1004, allocations: 1.363 MB / 476.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.1014, allocations: 0.5586 MB / 476.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00031/0.1018, allocations: 226.1 kB / 476.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.601e-05/0.1018, allocations: 20.41 kB / 477 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005432/0.1024, allocations: 309.2 kB / 477.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 1.773e-06/0.1024, allocations: 0 / 477.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002994/0.1054, allocations: 1.156 MB / 478.4 MB, free: 5.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.1054, allocations: 59.84 kB / 478.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.1056, allocations: 202.3 kB / 478.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.733e-05/0.1057, allocations: 37.7 kB / 478.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.331e-05/0.1058, allocations: 144.8 kB / 478.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.1059, allocations: 165.6 kB / 479 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.106, allocations: 94.23 kB / 479.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1062, allocations: 342.8 kB / 479.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/0.1065, allocations: 197.1 kB / 479.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003308/0.1068, allocations: 262.3 kB / 479.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004117/0.1109, allocations: 1.246 MB / 481.1 MB, free: 2.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1109, allocations: 4 kB / 481.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001581/0.1125, allocations: 0.7881 MB / 481.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.1125, allocations: 11.94 kB / 481.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.1126, allocations: 0 / 481.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.1137, allocations: 303.9 kB / 482.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.1139, allocations: 75.83 kB / 482.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003874/0.1178, allocations: 2.968 MB / 485.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/0.1181, allocations: 35.75 kB / 485.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.1181, allocations: 19.98 kB / 485.3 MB, free: 14.26 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.0002015/0.1183, allocations: 182 kB / 485.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.1184, allocations: 27.72 kB / 485.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.1201, allocations: 0.792 MB / 486.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.1201, allocations: 8 kB / 486.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.1201, allocations: 3.938 kB / 486.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1201, allocations: 3.984 kB / 486.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.1223, allocations: 1.362 MB / 487.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.1223, allocations: 0 / 487.7 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.1225, allocations: 63.84 kB / 487.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.1237, allocations: 308.4 kB / 488.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.164e-05/0.1237, allocations: 16 kB / 488.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003606/0.1273, allocations: 2.913 MB / 491 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.1273, allocations: 0 / 491 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.1293, allocations: 1.113 MB / 492.1 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.412e-05/0.1294, allocations: 112.6 kB / 492.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.1295, allocations: 12 kB / 492.2 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002442/0.1297, allocations: 23.97 kB / 492.3 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.1298, allocations: 48.44 kB / 492.3 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.1299, allocations: 16 kB / 492.3 MB, free: 7.023 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.13, allocations: 148.3 kB / 492.5 MB, free: 6.879 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.13, allocations: 0 / 492.5 MB, free: 6.879 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005657/0.1306, allocations: 163.9 kB / 492.6 MB, free: 6.719 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.002606/0.1332, allocations: 1.772 MB / 494.4 MB, free: 4.945 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.1347, allocations: 0.7676 MB / 495.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1347, allocations: 0 / 495.2 MB, free: 4.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008941/0.1356, allocations: 0.5291 MB / 495.7 MB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003503/0.136, allocations: 35.69 kB / 495.7 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005625/0.1416, allocations: 3.875 MB / 499.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.142, allocations: 0.79 MB / 0.4887 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.1421, allocations: 46.92 kB / 0.4887 GB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1423, allocations: 107.4 kB / 0.4888 GB, free: 14.64 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1423, allocations: 0 / 0.4888 GB, free: 14.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.1764, allocations: 11.9 MB / 0.5004 GB, free: 2.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.88, allocations: 6.516 kB / 0.5004 GB, free: 2.938 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoadWithFailure_notFinalized.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoadWithFailure_notFinalized.pipe 2>&1)