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: 101.8 kB / 16.45 MB, free: 6.5 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.00127/0.00127, allocations: 192.1 kB / 17.39 MB, free: 5.688 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.263/1.263, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04615/0.04615, allocations: 8.102 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 67.89 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08805, allocations: 51.51 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingDiesel.OneDieselRescuingOneLoad): time 0.003546/0.09164, allocations: 2.832 MB / 468.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.09291, allocations: 0.8289 MB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.47e-05/0.09301, allocations: 4 kB / 469.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003756/0.09339, allocations: 143.2 kB / 469.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003265/0.09374, allocations: 139.1 kB / 469.4 MB, free: 14.69 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.001529/0.09528, allocations: 0.9296 MB / 470.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.09563, allocations: 306.5 kB / 470.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.09584, allocations: 126.9 kB / 470.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.09596, allocations: 127.5 kB / 470.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.09621, allocations: 195.2 kB / 471.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.09626, allocations: 24 kB / 471.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003243/0.09659, allocations: 211.8 kB / 471.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.781e-05/0.09665, allocations: 67.7 kB / 471.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.0968, allocations: 151.2 kB / 471.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005194/0.09733, allocations: 470.5 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09734, allocations: 4 kB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09735, allocations: 0 / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.09736, 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.001983/0.09935, allocations: 0.791 MB / 472.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.0994, allocations: 11.89 kB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.166e-05/0.0995, allocations: 66.72 kB / 472.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.35e-05/0.09959, allocations: 36.75 kB / 472.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003065/0.09991, allocations: 272.6 kB / 473.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.785e-05/0.09999, allocations: 80.53 kB / 473.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.1, allocations: 28.38 kB / 473.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005202/0.1006, allocations: 357.1 kB / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.1006, allocations: 0 / 473.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.1006, allocations: 8 kB / 473.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.1006, allocations: 8 kB / 473.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004825/0.1011, allocations: 334.1 kB / 474 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.1027, allocations: 1.319 MB / 475.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.1037, allocations: 0.5513 MB / 475.9 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.104, allocations: 216.6 kB / 476.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-05/0.1041, allocations: 4 kB / 476.1 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004824/0.1046, allocations: 275.1 kB / 476.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1046, allocations: 0 / 476.3 MB, free: 7.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.002821/0.1074, allocations: 1.07 MB / 477.4 MB, free: 6.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1074, allocations: 59.41 kB / 477.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.1076, allocations: 186.7 kB / 477.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.273e-05/0.1077, allocations: 29.7 kB / 477.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.512e-05/0.1078, allocations: 152.7 kB / 477.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.1079, allocations: 146.7 kB / 478 MB, free: 5.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/0.108, allocations: 78.12 kB / 478 MB, free: 5.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1081, allocations: 334.8 kB / 478.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/0.1084, allocations: 176.8 kB / 478.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002989/0.1087, allocations: 227.3 kB / 478.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005628/0.1093, allocations: 407 kB / 479.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1093, allocations: 4 kB / 479.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001458/0.1108, allocations: 0.7072 MB / 479.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1108, allocations: 4 kB / 479.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1108, allocations: 0 / 479.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001177/0.112, allocations: 308.5 kB / 480.2 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.1122, allocations: 59.91 kB / 480.2 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003776/0.116, allocations: 2.957 MB / 483.2 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.1162, allocations: 35.8 kB / 483.2 MB, free: 376 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.17e-05/0.1163, allocations: 15.98 kB / 483.2 MB, free: 360 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.0001388/0.1164, allocations: 157.7 kB / 483.4 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.1165, allocations: 27.8 kB / 483.4 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.118, allocations: 0.7265 MB / 484.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.118, allocations: 4 kB / 484.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.1181, allocations: 0 / 484.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.1181, allocations: 7.922 kB / 484.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.12, allocations: 1.253 MB / 485.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.12, allocations: 3.938 kB / 485.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.1202, allocations: 51.91 kB / 485.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.1213, allocations: 312.5 kB / 485.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.1214, allocations: 12 kB / 485.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003571/0.1249, allocations: 2.922 MB / 488.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.125, allocations: 4 kB / 488.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.1264, allocations: 0.7749 MB / 489.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.237e-05/0.1265, allocations: 108.8 kB / 489.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.1265, allocations: 12 kB / 489.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.1268, allocations: 19.98 kB / 489.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.11e-05/0.1268, allocations: 36.39 kB / 489.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.1269, allocations: 12 kB / 489.7 MB, free: 9.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001237/0.127, allocations: 148 kB / 489.8 MB, free: 9.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.127, allocations: 4 kB / 489.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000435/0.1275, allocations: 131.9 kB / 490 MB, free: 9.379 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.001778/0.1292, allocations: 1.341 MB / 491.3 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.1305, allocations: 0.7181 MB / 492 MB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1306, allocations: 0 / 492 MB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008567/0.1314, allocations: 0.4893 MB / 492.5 MB, free: 6.777 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.1318, allocations: 27.75 kB / 492.5 MB, free: 6.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005248/0.137, allocations: 3.558 MB / 496.1 MB, free: 3.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.1374, allocations: 0.7696 MB / 496.9 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.1375, allocations: 46.92 kB / 496.9 MB, free: 2.246 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.1376, allocations: 83.41 kB / 497 MB, free: 2.164 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1376, allocations: 0 / 497 MB, free: 2.164 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03031/0.1679, allocations: 10 MB / 0.4951 GB, free: 8.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.65, allocations: 11.67 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)