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.001284/0.001284, allocations: 108 kB / 16.45 MB, free: 6.457 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.001385/0.001385, allocations: 192.2 kB / 17.39 MB, free: 5.668 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.328/1.328, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05343/0.05343, allocations: 8.089 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 72.11 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09365, allocations: 51.51 MB / 465.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003939/0.09763, allocations: 2.812 MB / 468.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.09901, allocations: 0.8366 MB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.41e-05/0.0991, allocations: 4 kB / 469.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003496/0.09946, allocations: 143.2 kB / 469.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00031/0.09979, allocations: 139.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.001635/0.1014, allocations: 0.9295 MB / 470.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003972/0.1018, allocations: 310.5 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.1021, allocations: 126.9 kB / 470.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.1022, allocations: 127.5 kB / 470.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.1025, allocations: 195.2 kB / 471.1 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.1025, allocations: 28 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.1029, allocations: 203.9 kB / 471.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.103, allocations: 67.69 kB / 471.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.1032, allocations: 155.2 kB / 471.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005833/0.1037, allocations: 466.6 kB / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1038, allocations: 0 / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1038, allocations: 0 / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.1038, allocations: 4 kB / 472 MB, free: 12.1 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.002103/0.1059, allocations: 0.7909 MB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1059, allocations: 11.89 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.431e-05/0.106, allocations: 74.66 kB / 472.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.753e-05/0.1061, allocations: 32.75 kB / 472.9 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003511/0.1065, allocations: 264.7 kB / 473.2 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.75e-05/0.1066, allocations: 84.53 kB / 473.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.1066, allocations: 28.38 kB / 473.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.1072, allocations: 353.1 kB / 473.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.1072, allocations: 3.938 kB / 473.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.292e-05/0.1073, allocations: 15.98 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.1073, allocations: 4 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005423/0.1078, allocations: 334.1 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.1095, allocations: 1.307 MB / 475.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.1106, allocations: 0.5552 MB / 475.8 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003344/0.111, allocations: 216.6 kB / 476.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.111, allocations: 11.98 kB / 476.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004994/0.1115, allocations: 271.1 kB / 476.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.754e-06/0.1115, allocations: 0 / 476.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003051/0.1146, allocations: 1.07 MB / 477.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.1147, allocations: 55.41 kB / 477.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.1149, allocations: 190.7 kB / 477.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.1149, allocations: 33.7 kB / 477.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.799e-05/0.115, allocations: 144.8 kB / 477.8 MB, free: 5.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.1152, allocations: 146.7 kB / 478 MB, free: 5.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.1153, allocations: 82.12 kB / 478 MB, free: 5.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1155, allocations: 334.8 kB / 478.4 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/0.1158, allocations: 180.8 kB / 478.5 MB, free: 5.211 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003456/0.1161, allocations: 223.3 kB / 478.8 MB, free: 4.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.1168, allocations: 399 kB / 479.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1168, allocations: 4 kB / 479.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001623/0.1184, allocations: 0.715 MB / 479.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1185, allocations: 15.94 kB / 479.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.1185, allocations: 0 / 479.9 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.1197, allocations: 300.1 kB / 480.2 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.1199, allocations: 59.91 kB / 480.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004438/0.1244, allocations: 2.957 MB / 483.2 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.1246, allocations: 39.8 kB / 483.2 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/0.1247, allocations: 19.98 kB / 483.3 MB, free: 344 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.0001626/0.1248, allocations: 145.8 kB / 483.4 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.025e-05/0.1249, allocations: 31.73 kB / 483.4 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.1266, allocations: 0.7265 MB / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.1266, allocations: 4 kB / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.1266, allocations: 0 / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.247e-05/0.1267, allocations: 11.92 kB / 484.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.1288, allocations: 1.253 MB / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1288, allocations: 0 / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.129, allocations: 51.91 kB / 485.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.1302, allocations: 300.5 kB / 485.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.1302, allocations: 15.98 kB / 485.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004122/0.1343, allocations: 2.933 MB / 488.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.1344, allocations: 8.109 kB / 488.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.136, allocations: 0.7709 MB / 489.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.003e-05/0.1361, allocations: 112.8 kB / 489.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.1361, allocations: 11.98 kB / 489.6 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.1363, allocations: 16 kB / 489.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.1365, allocations: 40.38 kB / 489.7 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-05/0.1365, allocations: 16 kB / 489.7 MB, free: 9.645 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.1366, allocations: 148 kB / 489.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1367, allocations: 0 / 489.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004474/0.1371, allocations: 131.9 kB / 490 MB, free: 9.367 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.001997/0.1391, allocations: 1.326 MB / 491.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.1405, allocations: 0.7181 MB / 492 MB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1405, allocations: 3.938 kB / 492 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009212/0.1415, allocations: 0.4893 MB / 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.0003394/0.1418, allocations: 31.73 kB / 492.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005796/0.1476, allocations: 3.559 MB / 496.1 MB, free: 3.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.148, allocations: 0.7696 MB / 496.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.1482, allocations: 42.92 kB / 496.9 MB, free: 2.238 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.1483, allocations: 83.41 kB / 497 MB, free: 2.156 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1483, allocations: 4 kB / 497 MB, free: 2.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03702/0.1854, allocations: 9.993 MB / 0.4951 GB, free: 8.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/11.83, allocations: 7.922 kB / 0.4951 GB, free: 8.297 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSysPro_PowerSysPro_Examples_UsingDiesel_OneDieselRescuingOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad.pipe 2>&1)