Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",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.001251/0.001251, allocations: 114.7 kB / 16.46 MB, free: 6.434 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.001275/0.001275, allocations: 188.3 kB / 17.38 MB, free: 5.656 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.221/1.221, 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.04395/0.04395, allocations: 8.103 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001123/0.001123, allocations: 63.91 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08291/0.08405, allocations: 51.51 MB / 465.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.005187/0.08928, allocations: 4.684 MB / 470.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.09144, allocations: 1.448 MB / 471.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002185/0.09167, allocations: 12 kB / 471.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000811/0.09251, allocations: 0.494 MB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006662/0.09319, allocations: 437.8 kB / 472.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.0949, allocations: 1.066 MB / 473.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008793/0.0958, allocations: 0.8521 MB / 474.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.0962, allocations: 314.8 kB / 474.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.09655, allocations: 386.7 kB / 475.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006134/0.09717, allocations: 0.5724 MB / 475.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.883e-05/0.09728, allocations: 80 kB / 475.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004762/0.09776, allocations: 299.8 kB / 476.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002995/0.09807, allocations: 430.7 kB / 476.5 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004486/0.09852, allocations: 0.606 MB / 477.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001449/0.09998, allocations: 1.677 MB / 478.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1, allocations: 4 kB / 478.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1, allocations: 0 / 478.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.1, allocations: 0 / 478.8 MB, free: 5.273 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.005169/0.1052, allocations: 2.168 MB / 481 MB, free: 3.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1053, allocations: 11.89 kB / 481 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.1054, allocations: 98.7 kB / 481.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.1056, allocations: 152 kB / 481.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.107, allocations: 0.995 MB / 482.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.1071, allocations: 198.4 kB / 482.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.952e-05/0.1073, allocations: 60.38 kB / 482.5 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.1086, allocations: 0.8594 MB / 483.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.1087, allocations: 0 / 483.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.1087, allocations: 28 kB / 483.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.1088, allocations: 15.98 kB / 483.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.11, allocations: 0.7197 MB / 484.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00528/0.1153, allocations: 4.046 MB / 488.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.1173, allocations: 1.294 MB / 489.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000885/0.1182, allocations: 0.5543 MB / 490 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.234e-05/0.1183, allocations: 20.97 kB / 490 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.1184, allocations: 47.48 kB / 490.1 MB, free: 9.477 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.547e-06/0.1184, allocations: 0 / 490.1 MB, free: 9.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01052/0.1289, allocations: 3.143 MB / 493.2 MB, free: 6.305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.837e-05/0.129, allocations: 248.3 kB / 493.5 MB, free: 6.008 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002083/0.1311, allocations: 1.805 MB / 495.3 MB, free: 4.188 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.1312, allocations: 49.64 kB / 495.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.1316, allocations: 494.2 kB / 495.8 MB, free: 3.648 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002184/0.1318, allocations: 301.3 kB / 496.1 MB, free: 3.352 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.1321, allocations: 146.6 kB / 496.2 MB, free: 3.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1322, allocations: 341.9 kB / 496.6 MB, free: 2.863 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/0.1329, allocations: 421.8 kB / 497 MB, free: 2.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000762/0.1336, allocations: 0.5461 MB / 497.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00831/0.142, allocations: 2.592 MB / 0.4884 GB, free: 15.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.142, allocations: 0 / 0.4884 GB, free: 15.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003975/0.146, allocations: 1.719 MB / 0.4901 GB, free: 13.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.146, allocations: 10.34 kB / 0.4901 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.146, allocations: 0 / 0.4901 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002673/0.1487, allocations: 0.8203 MB / 0.4909 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004278/0.1491, allocations: 115.9 kB / 0.491 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002368/0.1515, allocations: 1.471 MB / 0.4924 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/0.1522, allocations: 91.56 kB / 0.4925 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.984e-05/0.1523, allocations: 27.98 kB / 0.4926 GB, free: 10.97 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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 {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000662/0.153, allocations: 450.5 kB / 0.493 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002412/0.1532, allocations: 131.2 kB / 0.4931 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003984/0.1572, allocations: 1.752 MB / 0.4948 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.1572, allocations: 12 kB / 0.4948 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1573, allocations: 0 / 0.4948 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.1573, allocations: 11.95 kB / 0.4948 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005872/0.1632, allocations: 3.385 MB / 0.4981 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.1632, allocations: 4 kB / 0.4981 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/0.1636, allocations: 103.9 kB / 0.4982 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002628/0.1662, allocations: 0.7771 MB / 0.499 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.219e-05/0.1663, allocations: 23.98 kB / 0.499 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002452/0.1687, allocations: 1.467 MB / 0.5005 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.1687, allocations: 0 / 0.5005 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004736/0.1735, allocations: 2.345 MB / 0.5028 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.1741, allocations: 284.1 kB / 0.503 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.1743, allocations: 20.06 kB / 0.503 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006216/0.1749, allocations: 43.97 kB / 0.5031 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1814/0.3564, allocations: 64.98 kB / 0.5031 GB, free: 46.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.3565, allocations: 26.97 kB / 0.5032 GB, free: 46.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001836/0.3584, allocations: 1.3 MB / 0.5044 GB, free: 45.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3584, allocations: 0 / 0.5044 GB, free: 45.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008406/0.3592, allocations: 250 kB / 0.5047 GB, free: 45.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * 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 {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005347/0.3646, allocations: 3.083 MB / 0.5077 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003603/0.3682, allocations: 1.359 MB / 0.509 GB, free: 44.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3682, allocations: 1.25 kB / 0.509 GB, free: 44.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002496/0.3707, allocations: 0.8644 MB / 0.5099 GB, free: 44.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007684/0.3715, allocations: 107.3 kB / 0.51 GB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/0.3923, allocations: 13.77 MB / 0.5234 GB, free: 38.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.3928, allocations: 1.177 MB / 0.5246 GB, free: 38.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003323/0.3932, allocations: 166.3 kB / 0.5247 GB, free: 37.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00041/0.3936, allocations: 439.5 kB / 0.5251 GB, free: 37.55 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3936, allocations: 4 kB / 0.5251 GB, free: 37.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04817/0.4418, allocations: 28.54 MB / 0.553 GB, free: 9.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.65, allocations: 4 kB / 0.553 GB, free: 9.648 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery_res.csv --start-time 0 --stop-time 21600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8.64 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)