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.0007723/0.0007724, allocations: 96.7 kB / 15.74 MB, free: 424 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.0008292/0.0008293, allocations: 174.3 kB / 16.62 MB, free: 6.434 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.278/1.278, allocations: 223.3 MB / 240.7 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1506/0.1506, allocations: 8.089 MB / 299.8 MB, free: 2.848 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003032, allocations: 8 kB / 363 MB, free: 13.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.08586, allocations: 52.52 MB / 415.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.00248/0.08839, allocations: 2.386 MB / 417.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.08964, allocations: 0.7516 MB / 418.6 MB, free: 5.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.08978, allocations: 4 kB / 418.6 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.09006, allocations: 99.52 kB / 418.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.09035, allocations: 119.3 kB / 418.8 MB, free: 5.23 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.001287/0.09165, allocations: 0.7511 MB / 419.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003512/0.09201, allocations: 270.6 kB / 419.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.0922, allocations: 89.8 kB / 419.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.09234, allocations: 115.5 kB / 420 MB, free: 4.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.09261, allocations: 167.4 kB / 420.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.575e-05/0.09265, allocations: 12 kB / 420.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003642/0.09302, allocations: 199.8 kB / 420.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.038e-05/0.09308, allocations: 51.77 kB / 420.5 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.83e-05/0.09315, allocations: 69.58 kB / 420.5 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004/0.09356, allocations: 335.4 kB / 420.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.09358, allocations: 0 / 420.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09359, allocations: 3.938 kB / 420.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.0936, allocations: 4 kB / 420.9 MB, free: 3.184 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.001789/0.09539, allocations: 0.7291 MB / 421.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.09544, allocations: 12.02 kB / 421.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.184e-05/0.09552, allocations: 62.55 kB / 421.7 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.967e-05/0.0956, allocations: 39.58 kB / 421.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.09588, allocations: 263.3 kB / 422 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.321e-05/0.09595, allocations: 79.97 kB / 422 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.096, allocations: 24 kB / 422.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.09651, allocations: 344.8 kB / 422.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.09653, allocations: 0 / 422.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.09656, allocations: 19.94 kB / 422.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.09658, allocations: 11.95 kB / 422.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004534/0.09704, allocations: 330.1 kB / 422.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1632/0.2603, allocations: 1.311 MB / 424.1 MB, free: 40.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.2613, allocations: 0.5517 MB / 424.6 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.2616, allocations: 218 kB / 424.8 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.777e-05/0.2617, allocations: 8.078 kB / 424.8 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/0.2621, allocations: 264 kB / 425.1 MB, free: 40.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.114e-06/0.2621, allocations: 0 / 425.1 MB, free: 40.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002389/0.2645, allocations: 1.052 MB / 426.2 MB, free: 40.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.297e-05/0.2645, allocations: 58.56 kB / 426.2 MB, free: 40.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.2647, allocations: 187.8 kB / 426.4 MB, free: 40.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.2648, allocations: 37.8 kB / 426.4 MB, free: 40.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.2648, allocations: 138.8 kB / 426.6 MB, free: 39.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.572e-05/0.2649, allocations: 142.3 kB / 426.7 MB, free: 39.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.2649, allocations: 12.38 kB / 426.7 MB, free: 39.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.16e-05/0.265, allocations: 335.6 kB / 427 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.2652, allocations: 175.2 kB / 427.2 MB, free: 39.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.2655, allocations: 223.2 kB / 427.4 MB, free: 39.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.2658, allocations: 192.3 kB / 427.6 MB, free: 39.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2658, allocations: 0 / 427.6 MB, free: 39.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001359/0.2672, allocations: 0.7104 MB / 428.3 MB, free: 39.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.2672, allocations: 8.25 kB / 428.3 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2672, allocations: 0 / 428.3 MB, free: 39.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.2683, allocations: 311.2 kB / 428.6 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.2685, allocations: 57.19 kB / 428.7 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003243/0.2718, allocations: 2.727 MB / 431.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001957/0.272, allocations: 31.69 kB / 431.5 MB, free: 38.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.272, allocations: 17.14 kB / 431.5 MB, free: 38.06 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.0001229/0.2721, allocations: 150 kB / 431.6 MB, free: 37.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.946e-05/0.2722, allocations: 26.05 kB / 431.6 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001377/0.2736, allocations: 0.7305 MB / 432.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.2736, allocations: 4.719 kB / 432.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.2736, allocations: 3.188 kB / 432.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2736, allocations: 7.375 kB / 432.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.2753, allocations: 1.249 MB / 433.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2753, allocations: 6.969 kB / 433.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.2754, allocations: 54.06 kB / 433.7 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009214/0.2764, allocations: 307.5 kB / 434 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.2764, allocations: 10.7 kB / 434 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.2792, allocations: 2.688 MB / 436.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2792, allocations: 0 / 436.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.2804, allocations: 0.7757 MB / 437.5 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.2805, allocations: 110.5 kB / 437.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.2805, allocations: 10.05 kB / 437.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.2807, allocations: 22.53 kB / 437.6 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/0.2808, allocations: 37.47 kB / 437.7 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.2808, allocations: 13.47 kB / 437.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.783e-05/0.2809, allocations: 145.4 kB / 437.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2809, allocations: 0 / 437.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.2814, allocations: 137.8 kB / 437.9 MB, free: 34.51 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.00142/0.2829, allocations: 1.324 MB / 439.3 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.284, allocations: 0.6987 MB / 440 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.284, allocations: 0 / 440 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006993/0.2847, allocations: 0.49 MB / 440.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.285, allocations: 31.89 kB / 440.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002834/0.2879, allocations: 2.032 MB / 442.5 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.2881, allocations: 0.7755 MB / 443.3 MB, free: 31.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.2882, allocations: 37.95 kB / 443.3 MB, free: 31.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.2883, allocations: 90.75 kB / 443.4 MB, free: 31.08 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2883, allocations: 0 / 443.4 MB, free: 31.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.3081, allocations: 8.928 MB / 452.3 MB, free: 30.44 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001526/0.3083, allocations: 223.7 kB / 452.6 MB, free: 30.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.037, allocations: 0 / 452.6 MB, free: 30.2 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: