Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",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.0009631/0.0009631, allocations: 105.1 kB / 16.45 MB, free: 6.449 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.0009619/0.0009619, allocations: 189 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.245/1.245, 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.04285/0.04285, allocations: 8.102 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 63.91 kB / 414 MB, free: 22.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08299/0.08411, allocations: 51.51 MB / 465.5 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005317/0.08947, allocations: 4.8 MB / 470.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.09182, allocations: 1.612 MB / 471.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002463/0.09208, allocations: 16 kB / 471.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001067/0.09315, allocations: 0.7593 MB / 472.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008234/0.094, allocations: 0.6653 MB / 473.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.09591, allocations: 1.148 MB / 474.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.09718, allocations: 1.254 MB / 475.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004735/0.09767, allocations: 418.2 kB / 476.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004694/0.09814, allocations: 0.5841 MB / 476.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008433/0.09899, allocations: 0.9194 MB / 477.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001435/0.09915, allocations: 128 kB / 477.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.09968, allocations: 355.8 kB / 478.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006309/0.1003, allocations: 0.9661 MB / 479.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008526/0.1012, allocations: 1.196 MB / 480.3 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002685/0.1039, allocations: 3.359 MB / 483.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1039, allocations: 0 / 483.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1039, allocations: 0 / 483.7 MB, free: 0.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.74e-05/0.1039, allocations: 0 / 483.7 MB, free: 0.543 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006355/0.1103, allocations: 3.507 MB / 487.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.1104, allocations: 15.89 kB / 487.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.1105, allocations: 114.7 kB / 487.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004032/0.1109, allocations: 306.9 kB / 487.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002843/0.1138, allocations: 2.205 MB / 489.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.114, allocations: 224.1 kB / 490 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.1141, allocations: 60.38 kB / 490.1 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.1157, allocations: 1.012 MB / 491.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1157, allocations: 0 / 491.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.769e-05/0.1158, allocations: 28 kB / 491.1 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.1158, allocations: 16 kB / 491.1 MB, free: 8.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00133/0.1172, allocations: 0.6845 MB / 491.8 MB, free: 8.129 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00669/0.1239, allocations: 4.82 MB / 496.6 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.1261, allocations: 1.37 MB / 498 MB, free: 1.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009524/0.127, allocations: 0.5221 MB / 498.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.1272, allocations: 89.67 kB / 498.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/0.1272, allocations: 58.98 kB / 498.7 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 1.904e-06/0.1273, allocations: 0 / 498.7 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004312/0.1316, allocations: 1.67 MB / 0.4886 GB, free: 15.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002153/0.1318, allocations: 0.5935 MB / 0.4892 GB, free: 14.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005207/0.137, allocations: 4.877 MB / 0.494 GB, free: 9.652 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.799e-05/0.1371, allocations: 45.7 kB / 0.494 GB, free: 9.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009253/0.138, allocations: 1.132 MB / 0.4951 GB, free: 8.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.1382, allocations: 230 kB / 0.4953 GB, free: 8.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/0.1384, allocations: 122.3 kB / 0.4955 GB, free: 8.113 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1385, allocations: 337.9 kB / 0.4958 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006763/0.1392, allocations: 321.2 kB / 0.4961 GB, free: 7.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008405/0.1401, allocations: 0.5506 MB / 0.4966 GB, free: 6.824 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00558/0.1457, allocations: 1.665 MB / 0.4982 GB, free: 5.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.1457, allocations: 0 / 0.4982 GB, free: 5.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003224/0.1489, allocations: 1.254 MB / 0.4995 GB, free: 3.871 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.1489, allocations: 8 kB / 0.4995 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.149, allocations: 3.938 kB / 0.4995 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.1501, allocations: 264.5 kB / 0.4997 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006641/0.1508, allocations: 167.8 kB / 0.4999 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003764/0.1545, allocations: 2.699 MB / 0.5025 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.1561, allocations: 115.6 kB / 0.5026 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.284e-05/0.1562, allocations: 23.94 kB / 0.5027 GB, free: 468 kB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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,6)} Notification: Performance of prepare postOptimizeDAE: time 0.1932/0.3494, allocations: 0.9311 MB / 0.5036 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007258/0.3502, allocations: 275 kB / 0.5038 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/0.3533, allocations: 1.27 MB / 0.5051 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3533, allocations: 6.875 kB / 0.5051 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3533, allocations: 2.812 kB / 0.5051 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.3533, allocations: 4.25 kB / 0.5051 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006137/0.3595, allocations: 3.375 MB / 0.5084 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.3595, allocations: 3.312 kB / 0.5084 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000623/0.3601, allocations: 143.1 kB / 0.5085 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/0.3612, allocations: 254.9 kB / 0.5088 GB, free: 42.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.3613, allocations: 15.06 kB / 0.5088 GB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002924/0.3642, allocations: 2.662 MB / 0.5114 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3642, allocations: 5.031 kB / 0.5114 GB, free: 40.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003644/0.3679, allocations: 1.699 MB / 0.513 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001095/0.369, allocations: 0.5417 MB / 0.5136 GB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002309/0.3692, allocations: 19.56 kB / 0.5136 GB, free: 39.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/0.37, allocations: 83.98 kB / 0.5137 GB, free: 39.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3702, allocations: 81.22 kB / 0.5137 GB, free: 39.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/0.3702, allocations: 23.38 kB / 0.5138 GB, free: 39.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005311/0.3756, allocations: 3.514 MB / 0.5172 GB, free: 38.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3756, allocations: 1.781 kB / 0.5172 GB, free: 38.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001857/0.3774, allocations: 360 kB / 0.5175 GB, free: 38.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004397/0.3819, allocations: 2.451 MB / 0.5199 GB, free: 36.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002103/0.384, allocations: 0.9749 MB / 0.5209 GB, free: 36.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.384, allocations: 1.609 kB / 0.5209 GB, free: 36.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.3852, allocations: 0.6389 MB / 0.5215 GB, free: 36.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.3867, allocations: 211.1 kB / 0.5217 GB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03026/0.4169, allocations: 26.32 MB / 0.5474 GB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.4181, allocations: 1.824 MB / 0.5492 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006713/0.4188, allocations: 355.4 kB / 0.5495 GB, free: 10.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000893/0.4197, allocations: 0.9678 MB / 0.5505 GB, free: 9.562 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4197, allocations: 0 / 0.5505 GB, free: 9.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07555/0.4952, allocations: 49.01 MB / 0.5983 GB, free: 8.754 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/16.46, allocations: 11.83 kB / 0.5984 GB, free: 8.75 MB / 430.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries_res.csv --start-time 0 --stop-time 36000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 14.4 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)