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.001263/0.001263, allocations: 106 kB / 16.45 MB, free: 6.398 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.001231/0.001231, allocations: 189.4 kB / 17.38 MB, free: 5.664 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.445/1.445, 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.0539/0.0539, allocations: 8.096 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 71.89 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08931, allocations: 51.51 MB / 465.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.004008/0.09336, allocations: 2.82 MB / 468.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.09489, allocations: 0.8366 MB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.496e-05/0.095, allocations: 4 kB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004051/0.09541, allocations: 135.3 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003554/0.0958, allocations: 143.1 kB / 469.4 MB, free: 14.68 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.001737/0.09754, allocations: 0.9295 MB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004259/0.09798, allocations: 310.5 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.09822, allocations: 118.9 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.09838, allocations: 135.5 kB / 470.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.09866, allocations: 191.3 kB / 471.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.09872, allocations: 24 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004207/0.09914, allocations: 211.8 kB / 471.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.09923, allocations: 71.69 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001505/0.09938, allocations: 147.2 kB / 471.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005993/0.09999, allocations: 466.6 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1, allocations: 0 / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1, allocations: 0 / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1, allocations: 0 / 472 MB, free: 12.11 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.002159/0.1022, allocations: 0.7987 MB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.1022, allocations: 15.89 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.266e-05/0.1023, allocations: 66.72 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.965e-05/0.1024, allocations: 36.75 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.1027, allocations: 268.6 kB / 473.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.417e-05/0.1028, allocations: 80.53 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.1029, allocations: 24.38 kB / 473.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006018/0.1035, allocations: 353.1 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.1035, allocations: 3.938 kB / 473.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.1036, allocations: 11.98 kB / 473.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.1036, allocations: 12 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.1041, allocations: 334.1 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001696/0.1058, allocations: 1.307 MB / 475.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.1069, allocations: 0.5552 MB / 475.8 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003553/0.1073, allocations: 220.6 kB / 476.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.596e-05/0.1074, allocations: 7.984 kB / 476.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004877/0.1079, allocations: 267.1 kB / 476.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 3.787e-06/0.1079, allocations: 3.984 kB / 476.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003187/0.1111, allocations: 1.07 MB / 477.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.1111, allocations: 55.41 kB / 477.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.1114, allocations: 190.7 kB / 477.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.1114, allocations: 29.7 kB / 477.7 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1115, allocations: 152.8 kB / 477.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.1117, allocations: 146.7 kB / 478 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.1118, allocations: 74.12 kB / 478 MB, free: 5.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.112, allocations: 346.7 kB / 478.4 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.1123, allocations: 176.8 kB / 478.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003528/0.1127, allocations: 219.3 kB / 478.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/0.1133, allocations: 407 kB / 479.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1133, allocations: 0 / 479.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00168/0.115, allocations: 0.715 MB / 479.9 MB, free: 3.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.1151, allocations: 4 kB / 479.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1151, allocations: 0 / 479.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.1164, allocations: 300.6 kB / 480.2 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.1167, allocations: 59.91 kB / 480.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004515/0.1212, allocations: 2.968 MB / 483.2 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.1215, allocations: 35.8 kB / 483.2 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.1215, allocations: 15.98 kB / 483.3 MB, free: 348 kB / 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.0001774/0.1217, allocations: 145.8 kB / 483.4 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1217, allocations: 35.73 kB / 483.4 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/0.1236, allocations: 0.7304 MB / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1236, allocations: 4 kB / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.1236, allocations: 0 / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1236, allocations: 7.922 kB / 484.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.1259, allocations: 1.253 MB / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1259, allocations: 0 / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.1261, allocations: 51.97 kB / 485.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/0.1274, allocations: 307.3 kB / 485.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.1274, allocations: 15.92 kB / 485.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004254/0.1317, allocations: 2.928 MB / 488.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1317, allocations: 0 / 488.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.1334, allocations: 0.7748 MB / 489.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.14e-05/0.1335, allocations: 108.8 kB / 489.6 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.1335, allocations: 15.98 kB / 489.6 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.1338, allocations: 19.98 kB / 489.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.1339, allocations: 36.38 kB / 489.7 MB, free: 9.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.275e-05/0.1339, allocations: 12 kB / 489.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.1341, allocations: 152 kB / 489.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1341, allocations: 3.938 kB / 489.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005117/0.1346, allocations: 127.9 kB / 490 MB, free: 9.371 MB / 366.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.002093/0.1367, allocations: 1.338 MB / 491.3 MB, free: 8.004 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.1383, allocations: 0.7181 MB / 492 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1383, allocations: 0 / 492 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.1394, allocations: 497 kB / 492.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.1398, allocations: 35.73 kB / 492.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006226/0.146, allocations: 3.555 MB / 496.1 MB, free: 3.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.1466, allocations: 0.7696 MB / 496.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001741/0.1467, allocations: 50.92 kB / 496.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.1469, allocations: 87.34 kB / 497 MB, free: 2.145 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1469, allocations: 0 / 497 MB, free: 2.145 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03867/0.1856, allocations: 9.976 MB / 0.4951 GB, free: 8.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.27, allocations: 9.969 kB / 0.4951 GB, free: 8.301 MB / 382.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)