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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 195.1 kB / 7.849 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 221.4 MB / 229.7 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009318/0.0009319, allocations: 85.77 kB / 280.5 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03862/0.03862, allocations: 8.107 MB / 339.4 MB, free: 6.344 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.1906/0.2292, allocations: 58.62 MB / 398 MB, free: 67.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.3171, allocations: 52.52 MB / 450.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2869/0.604, allocations: 81.41 MB / 0.5195 GB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.6043, allocations: 67.47 kB / 0.5195 GB, free: 12.72 MB / 346.7 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.0303/0.6346, allocations: 11.43 MB / 0.5307 GB, free: 3.684 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.6347, allocations: 12.12 kB / 0.5307 GB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.967e-05/0.6348, allocations: 43.53 kB / 0.5307 GB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000333/0.6351, allocations: 266.8 kB / 0.531 GB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.518e-05/0.6352, allocations: 68.06 kB / 0.5311 GB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.154e-05/0.6353, allocations: 16 kB / 0.5311 GB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000485/0.6357, allocations: 335.8 kB / 0.5314 GB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004835/0.6362, allocations: 329.3 kB / 0.5317 GB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.6363, allocations: 3.906 kB / 0.5317 GB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.6363, allocations: 0 / 0.5317 GB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.6363, allocations: 12 kB / 0.5317 GB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.6383, allocations: 1.392 MB / 0.5331 GB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.6386, allocations: 231.7 kB / 0.5333 GB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.6389, allocations: 221.5 kB / 0.5335 GB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.451e-05/0.639, allocations: 12.41 kB / 0.5335 GB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004103/0.6394, allocations: 275.8 kB / 0.5338 GB, free: 1.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=51): time 2.414e-06/0.6394, allocations: 4 kB / 0.5338 GB, free: 1.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.001829/0.6413, allocations: 0.6581 MB / 0.5344 GB, free: 0.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.6413, allocations: 55.84 kB / 0.5345 GB, free: 0.6406 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.6415, allocations: 175.5 kB / 0.5347 GB, free: 500 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/0.6416, allocations: 31.95 kB / 0.5347 GB, free: 464 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.93e-05/0.6417, allocations: 134 kB / 0.5348 GB, free: 336 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.6418, allocations: 159 kB / 0.535 GB, free: 196 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.219e-05/0.6419, allocations: 0 / 0.535 GB, free: 196 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.642, allocations: 340.5 kB / 0.5353 GB, free: 15.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.6422, allocations: 166.9 kB / 0.5355 GB, free: 15.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002796/0.6425, allocations: 223.6 kB / 0.5357 GB, free: 15.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006157/0.6432, allocations: 220.7 kB / 0.5359 GB, free: 15.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.6432, allocations: 0 / 0.5359 GB, free: 15.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001814/0.645, allocations: 0.7206 MB / 0.5366 GB, free: 14.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.645, allocations: 4 kB / 0.5366 GB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.645, allocations: 0 / 0.5366 GB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.6462, allocations: 276.3 kB / 0.5369 GB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/0.6465, allocations: 63.89 kB / 0.5369 GB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003515/0.6501, allocations: 2.478 MB / 0.5393 GB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.6504, allocations: 31.75 kB / 0.5394 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.165e-05/0.6504, allocations: 15.75 kB / 0.5394 GB, free: 12.59 MB / 362.7 MB Warning: Assuming fixed start value for the following 4 variables: myFailure.seed:DISCRETE(fixed = false protected = true ) type: Integer myFailure.F:VARIABLE(start = 0.0 ) "cumulative distribution function" type: Real myFailure.r:DISCRETE(fixed = false ) "random numbers" type: Real myFailure.componentIsWorking:DISCRETE(start = true fixed = false ) type: Boolean 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,$whenCondition3,$whenCondition2,$whenCondition1,brk2.BrkOpen,myFailure.y,$PRE.myFailure.componentIsWorking,myFailure.componentIsWorking,$PRE.myFailure.r,myFailure.r) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 10} Notification: Performance of prepare postOptimizeDAE: time 0.0001965/0.6506, allocations: 134.6 kB / 0.5395 GB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.6507, allocations: 39.61 kB / 0.5395 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.6526, allocations: 0.7284 MB / 0.5403 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.6526, allocations: 8 kB / 0.5403 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.6526, allocations: 0 / 0.5403 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.6526, allocations: 3.984 kB / 0.5403 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.655, allocations: 1.297 MB / 0.5415 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.655, allocations: 0 / 0.5415 GB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002264/0.6552, allocations: 59.09 kB / 0.5416 GB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.6564, allocations: 283.7 kB / 0.5419 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.6564, allocations: 11.3 kB / 0.5419 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003313/0.6597, allocations: 2.434 MB / 0.5443 GB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.6598, allocations: 7.938 kB / 0.5443 GB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002043/0.6618, allocations: 1.045 MB / 0.5453 GB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002521/0.6643, allocations: 1.682 MB / 0.5469 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.058e-05/0.6645, allocations: 116.4 kB / 0.547 GB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.711e-05/0.6645, allocations: 0 / 0.547 GB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002859/0.6648, allocations: 20.05 kB / 0.5471 GB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.559e-05/0.6649, allocations: 39.5 kB / 0.5471 GB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-05/0.665, allocations: 13.19 kB / 0.5471 GB, free: 6.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000113/0.6651, allocations: 141 kB / 0.5472 GB, free: 6.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001181/0.6663, allocations: 152.6 kB / 0.5474 GB, free: 6.133 MB / 362.7 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 (brk2.BrkOpen,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,myFailure.y,myFailure.componentIsWorking,myFailure.r,myFailure.seed) * Number of discrete states: 2 (myFailure.r,myFailure.componentIsWorking) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004672/0.6668, allocations: 218.3 kB / 0.5476 GB, free: 5.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.6681, allocations: 0.6494 MB / 0.5482 GB, free: 5.457 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.6681, allocations: 4.125 kB / 0.5482 GB, free: 5.453 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008365/0.669, allocations: 450.1 kB / 0.5487 GB, free: 5.105 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.6692, allocations: 19.06 kB / 0.5487 GB, free: 5.094 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009786/0.6702, allocations: 437 kB / 0.5491 GB, free: 4.723 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004145/0.6706, allocations: 0.8261 MB / 0.5499 GB, free: 3.879 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.6706, allocations: 0 / 0.5499 GB, free: 3.879 MB / 362.7 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/linux/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)