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-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.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.0009378/0.0009378, allocations: 97.41 kB / 16.06 MB, free: 40 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.001025/0.001025, allocations: 181.1 kB / 16.96 MB, free: 6.895 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.286/1.286, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.163/0.163, allocations: 8.077 MB / 300.2 MB, free: 2.777 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003449/0.0003449, allocations: 12 kB / 363.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09065/0.09101, allocations: 52.51 MB / 416.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003038/0.0941, allocations: 2.478 MB / 418.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.0956, allocations: 0.8174 MB / 419.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/0.09583, allocations: 4 kB / 419.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004545/0.0963, allocations: 123.5 kB / 419.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004626/0.09678, allocations: 119.3 kB / 419.7 MB, free: 4.719 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. Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.09841, allocations: 0.8797 MB / 420.5 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004385/0.09886, allocations: 294.6 kB / 420.8 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001966/0.09907, allocations: 99.48 kB / 420.9 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.09924, allocations: 115.5 kB / 421 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002656/0.09951, allocations: 179.3 kB / 421.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.688e-05/0.09957, allocations: 16 kB / 421.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004022/0.09998, allocations: 199.8 kB / 421.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.961e-05/0.1, allocations: 43.78 kB / 421.5 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.1002, allocations: 157 kB / 421.6 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005664/0.1008, allocations: 454.7 kB / 422.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1008, allocations: 0 / 422.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1008, allocations: 0 / 422.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.1008, allocations: 0 / 422.1 MB, free: 2.301 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.001987/0.1028, allocations: 0.7333 MB / 422.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1028, allocations: 12.02 kB / 422.8 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.048e-05/0.1029, allocations: 62.73 kB / 422.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.488e-05/0.103, allocations: 36.56 kB / 422.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.1033, allocations: 264.5 kB / 423.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.754e-05/0.1034, allocations: 76.53 kB / 423.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.1034, allocations: 28.38 kB / 423.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.104, allocations: 349.1 kB / 423.6 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.104, allocations: 3.938 kB / 423.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.1041, allocations: 12 kB / 423.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.1041, allocations: 12 kB / 423.6 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004896/0.1046, allocations: 334.1 kB / 424 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1627/0.2672, allocations: 1.317 MB / 425.3 MB, free: 40.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009034/0.2682, allocations: 0.5568 MB / 425.8 MB, free: 39.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.2685, allocations: 214.5 kB / 426 MB, free: 39.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.055e-05/0.2685, allocations: 14.75 kB / 426.1 MB, free: 39.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003835/0.2689, allocations: 262.6 kB / 426.3 MB, free: 39.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.204e-06/0.2689, allocations: 0 / 426.3 MB, free: 39.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002672/0.2716, allocations: 1.063 MB / 427.4 MB, free: 39.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.149e-05/0.2716, allocations: 62.8 kB / 427.4 MB, free: 39.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.2718, allocations: 187.1 kB / 427.6 MB, free: 39.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.2718, allocations: 35.92 kB / 427.6 MB, free: 39.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/0.2719, allocations: 142 kB / 427.8 MB, free: 39.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.855e-05/0.272, allocations: 143.7 kB / 427.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.272, allocations: 43.5 kB / 428 MB, free: 39.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.447e-05/0.2721, allocations: 335.3 kB / 428.3 MB, free: 38.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.2723, allocations: 182 kB / 428.5 MB, free: 38.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.2726, allocations: 222.1 kB / 428.7 MB, free: 38.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004787/0.2731, allocations: 410.2 kB / 429.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2731, allocations: 0.6562 kB / 429.1 MB, free: 38.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001335/0.2744, allocations: 0.7109 MB / 429.8 MB, free: 38.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.2744, allocations: 3.281 kB / 429.8 MB, free: 38.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2744, allocations: 0 / 429.8 MB, free: 38.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.2756, allocations: 304.5 kB / 430.1 MB, free: 38.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/0.2758, allocations: 63.83 kB / 430.2 MB, free: 38.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003168/0.279, allocations: 2.741 MB / 432.9 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.2792, allocations: 29.19 kB / 432.9 MB, free: 37.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.2792, allocations: 19.83 kB / 433 MB, free: 37.49 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 (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.0001255/0.2794, allocations: 153.2 kB / 433.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.2794, allocations: 29.75 kB / 433.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.2809, allocations: 0.7252 MB / 433.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.2809, allocations: 9.516 kB / 433.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.2809, allocations: 0 / 433.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2809, allocations: 0 / 433.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.2827, allocations: 1.258 MB / 435.1 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2827, allocations: 0 / 435.1 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.2829, allocations: 53.27 kB / 435.2 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001042/0.2839, allocations: 314.6 kB / 435.5 MB, free: 36.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.284, allocations: 4 kB / 435.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/0.2868, allocations: 2.696 MB / 438.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2868, allocations: 0.5625 kB / 438.2 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.2881, allocations: 0.7749 MB / 439 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.2882, allocations: 106.5 kB / 439.1 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.297e-05/0.2882, allocations: 7.281 kB / 439.1 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.2884, allocations: 21 kB / 439.1 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.399e-05/0.2885, allocations: 38.92 kB / 439.1 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.2886, allocations: 17.47 kB / 439.1 MB, free: 33.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001054/0.2887, allocations: 139.6 kB / 439.3 MB, free: 33.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.72e-07/0.2887, allocations: 0 / 439.3 MB, free: 33.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.2891, allocations: 138.3 kB / 439.4 MB, free: 33.86 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 (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.001535/0.2907, allocations: 1.333 MB / 440.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001177/0.2919, allocations: 0.7023 MB / 441.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2919, allocations: 4 kB / 441.5 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007608/0.2927, allocations: 0.4885 MB / 441.9 MB, free: 32.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.293, allocations: 40.47 kB / 442 MB, free: 32.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/0.2978, allocations: 3.683 MB / 445.7 MB, free: 29.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.298, allocations: 0.7708 MB / 446.4 MB, free: 29.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.2982, allocations: 43.55 kB / 446.5 MB, free: 29.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.2983, allocations: 85.61 kB / 446.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2983, allocations: 0 / 446.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02021/0.3185, allocations: 9.06 MB / 455.6 MB, free: 28.56 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.3187, allocations: 237.1 kB / 455.9 MB, free: 28.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/2.113, allocations: 3.516 kB / 455.9 MB, free: 28.31 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/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)