Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.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/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 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.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad",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.0008752/0.0008752, allocations: 100.6 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009042/0.0009042, allocations: 179.4 kB / 16.62 MB, free: 6.422 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.221/1.221, allocations: 223.2 MB / 240.6 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1304/0.1304, allocations: 8.087 MB / 299.7 MB, free: 2.949 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000279/0.000279, allocations: 12 kB / 362.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08255/0.08285, allocations: 52.52 MB / 415.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.002357/0.08524, allocations: 2.286 MB / 417.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.08634, allocations: 0.7517 MB / 418.4 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.081e-05/0.08642, allocations: 8 kB / 418.4 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.08666, allocations: 95.45 kB / 418.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.08691, allocations: 139.6 kB / 418.6 MB, free: 5.34 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001177/0.08809, allocations: 0.7475 MB / 419.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.08837, allocations: 215.5 kB / 419.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.08853, allocations: 89.8 kB / 419.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.328e-05/0.08863, allocations: 111.6 kB / 419.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.08884, allocations: 151.4 kB / 419.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.702e-05/0.08888, allocations: 16 kB / 420 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002633/0.08915, allocations: 171.8 kB / 420.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.475e-05/0.0892, allocations: 47.83 kB / 420.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.333e-05/0.08927, allocations: 73.52 kB / 420.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003284/0.08961, allocations: 327.5 kB / 420.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.08962, allocations: 0 / 420.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.08963, allocations: 0 / 420.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.08964, allocations: 0 / 420.6 MB, free: 3.406 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001841/0.09148, allocations: 0.7368 MB / 421.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.09152, allocations: 12.03 kB / 421.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.403e-05/0.0916, allocations: 62.55 kB / 421.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.09168, allocations: 39.58 kB / 421.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.09198, allocations: 263.3 kB / 421.7 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.077e-05/0.09206, allocations: 83.97 kB / 421.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.09211, allocations: 24 kB / 421.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005129/0.09263, allocations: 336.8 kB / 422.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.09265, allocations: 7.984 kB / 422.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.978e-05/0.09269, allocations: 8 kB / 422.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.0927, allocations: 11.95 kB / 422.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004735/0.09318, allocations: 334.1 kB / 422.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1448/0.238, allocations: 1.316 MB / 423.8 MB, free: 41.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009507/0.239, allocations: 0.5572 MB / 424.3 MB, free: 41.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-05/0.239, allocations: 12.38 kB / 424.3 MB, free: 41.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.2394, allocations: 258 kB / 424.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.725e-06/0.2394, allocations: 1.031 kB / 424.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.00266/0.2421, allocations: 1.051 MB / 425.7 MB, free: 40.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.036e-05/0.2421, allocations: 54.78 kB / 425.7 MB, free: 40.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.2423, allocations: 191.1 kB / 425.9 MB, free: 40.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.2423, allocations: 35.86 kB / 425.9 MB, free: 40.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.484e-05/0.2424, allocations: 140.6 kB / 426.1 MB, free: 40.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.854e-05/0.2424, allocations: 146.5 kB / 426.2 MB, free: 40.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.013e-05/0.2425, allocations: 9.938 kB / 426.2 MB, free: 40.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.43e-05/0.2425, allocations: 333.6 kB / 426.5 MB, free: 40.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.2428, allocations: 179.5 kB / 426.7 MB, free: 40.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.243, allocations: 214.6 kB / 426.9 MB, free: 40.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.2433, allocations: 195.8 kB / 427.1 MB, free: 40.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2433, allocations: 3.062 kB / 427.1 MB, free: 40.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001313/0.2446, allocations: 0.7088 MB / 427.8 MB, free: 40.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.2446, allocations: 3.156 kB / 427.8 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2446, allocations: 3.25 kB / 427.8 MB, free: 40.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.2458, allocations: 311.2 kB / 428.1 MB, free: 40.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.246, allocations: 58.44 kB / 428.2 MB, free: 40.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003092/0.2491, allocations: 2.815 MB / 431 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.2493, allocations: 31.66 kB / 431 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/0.2494, allocations: 16.45 kB / 431.1 MB, free: 38.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0001138/0.2495, allocations: 149 kB / 431.2 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.2495, allocations: 27.12 kB / 431.2 MB, free: 38.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.2509, allocations: 0.7285 MB / 432 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.2509, allocations: 7.109 kB / 432 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.2509, allocations: 0 / 432 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.251, allocations: 6.594 kB / 432 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.2527, allocations: 1.261 MB / 433.2 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2527, allocations: 0 / 433.2 MB, free: 38.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.2529, allocations: 55.77 kB / 433.3 MB, free: 38.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/0.2539, allocations: 299.4 kB / 433.6 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.254, allocations: 14.66 kB / 433.6 MB, free: 38.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002754/0.2567, allocations: 2.766 MB / 436.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2567, allocations: 0 / 436.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.258, allocations: 0.783 MB / 437.1 MB, free: 35.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.705e-05/0.258, allocations: 103.1 kB / 437.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.2581, allocations: 13.45 kB / 437.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.2583, allocations: 22.02 kB / 437.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.58e-05/0.2584, allocations: 40.38 kB / 437.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.2584, allocations: 12.69 kB / 437.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.997e-05/0.2585, allocations: 149.5 kB / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2585, allocations: 0 / 437.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000384/0.2589, allocations: 133.4 kB / 437.6 MB, free: 35.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.001409/0.2603, allocations: 1.331 MB / 438.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.2613, allocations: 0.6933 MB / 439.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2614, allocations: 0 / 439.6 MB, free: 34.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007015/0.2621, allocations: 0.4913 MB / 440.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.2623, allocations: 20.45 kB / 440.1 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.2634, allocations: 1.292 MB / 441.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001476/0.2636, allocations: 0.777 MB / 442.2 MB, free: 32.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001282/0.2637, allocations: 44.72 kB / 442.3 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.447e-05/0.2638, allocations: 85.42 kB / 442.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2638, allocations: 4 kB / 442.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01684/0.2806, allocations: 8.835 MB / 451.2 MB, free: 31.35 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001267/0.2808, allocations: 218.4 kB / 451.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/1.894, allocations: 0 / 451.4 MB, free: 31.11 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1) Environment - environmentSimulation: