Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",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.001391/0.001391, allocations: 105.3 kB / 16.45 MB, free: 6.461 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.001576/0.001576, 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.262/1.262, allocations: 222.9 MB / 241.1 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04223/0.04223, allocations: 8.099 MB / 299.3 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 59.91 kB / 414 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08182/0.08294, allocations: 51.52 MB / 465.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003611/0.08659, allocations: 2.387 MB / 467.9 MB, free: 200 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008989/0.08751, allocations: 0.5023 MB / 468.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.08769, allocations: 7.938 kB / 468.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003802/0.08808, allocations: 95.72 kB / 468.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.08836, allocations: 83.44 kB / 468.6 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002531/0.08863, allocations: 87.8 kB / 468.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.08896, allocations: 286.9 kB / 469 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.08917, allocations: 103.3 kB / 469.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.08936, allocations: 115.6 kB / 469.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.08959, allocations: 139.4 kB / 469.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.635e-05/0.08965, allocations: 28 kB / 469.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001577/0.08981, allocations: 79.92 kB / 469.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.08998, allocations: 119.7 kB / 469.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.09013, allocations: 151.2 kB / 469.7 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.09058, allocations: 402.4 kB / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09059, allocations: 0 / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.0906, allocations: 0 / 470.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.09061, allocations: 0 / 470.1 MB, free: 14.02 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001857/0.09247, allocations: 0.8063 MB / 470.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.09252, allocations: 15.83 kB / 470.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.949e-05/0.09259, allocations: 54.73 kB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.332e-05/0.09269, allocations: 36.7 kB / 471 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004347/0.09313, allocations: 351.7 kB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.09316, allocations: 8.703 kB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.0932, allocations: 16.38 kB / 471.4 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.09371, allocations: 287 kB / 471.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.09373, allocations: 3.938 kB / 471.7 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.09376, allocations: 8 kB / 471.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.09378, allocations: 4 kB / 471.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003919/0.09417, allocations: 192.1 kB / 471.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.09546, allocations: 0.8455 MB / 472.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.09606, allocations: 303.6 kB / 473 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.09638, allocations: 144.8 kB / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.09644, allocations: 8 kB / 473.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.09647, allocations: 34.56 kB / 473.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.162e-06/0.09648, allocations: 0 / 473.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006988/0.09718, allocations: 289.5 kB / 473.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.956e-05/0.09729, allocations: 209.6 kB / 473.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003948/0.09769, allocations: 366.6 kB / 474 MB, free: 9.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.09773, allocations: 33.7 kB / 474.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.919e-05/0.09783, allocations: 168.3 kB / 474.2 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.316e-05/0.09788, allocations: 39.64 kB / 474.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.09796, allocations: 37.7 kB / 474.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.09808, allocations: 342.8 kB / 474.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.09828, allocations: 75.95 kB / 474.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.09852, allocations: 155.7 kB / 474.9 MB, free: 8.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007279/0.09926, allocations: 238.3 kB / 475.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.09927, allocations: 0 / 475.1 MB, free: 8.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004559/0.09974, allocations: 221.4 kB / 475.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.09976, allocations: 4 kB / 475.3 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.09977, allocations: 4 kB / 475.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.09979, allocations: 0 / 475.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.09995, allocations: 40.03 kB / 475.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.09996, allocations: 4 kB / 475.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005112/0.1005, allocations: 83.89 kB / 475.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.1005, allocations: 11.98 kB / 475.5 MB, free: 8.301 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002513/0.1008, allocations: 170.6 kB / 475.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.307e-05/0.1008, allocations: 35.8 kB / 475.7 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005851/0.1014, allocations: 231.3 kB / 475.9 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1015, allocations: 4 kB / 475.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1015, allocations: 0 / 475.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1015, allocations: 0 / 475.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009031/0.1024, allocations: 0.6629 MB / 476.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1024, allocations: 0 / 476.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.1025, allocations: 27.98 kB / 476.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.1026, allocations: 3.984 kB / 476.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.1026, allocations: 11.97 kB / 476.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.1026, allocations: 4 kB / 476.6 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1026, allocations: 3.938 kB / 476.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006984/0.1033, allocations: 423.7 kB / 477 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.765e-05/0.1034, allocations: 112.9 kB / 477.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/0.1034, allocations: 7.938 kB / 477.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004943/0.1039, allocations: 83.94 kB / 477.2 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002494/0.1042, allocations: 127.8 kB / 477.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.1042, allocations: 8 kB / 477.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002937/0.1045, allocations: 277.9 kB / 477.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1045, allocations: 0 / 477.6 MB, free: 6.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.1049, allocations: 67.89 kB / 477.7 MB, free: 5.953 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00142/0.1063, allocations: 1.124 MB / 478.8 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004855/0.1068, allocations: 195.8 kB / 479 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1068, allocations: 4.125 kB / 479 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.1071, allocations: 139.8 kB / 479.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.1074, allocations: 28.55 kB / 479.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004508/0.1119, allocations: 3.083 MB / 482.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.1123, allocations: 0.7597 MB / 483 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.1124, allocations: 37.53 kB / 483.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.1126, allocations: 87.41 kB / 483.1 MB, free: 444 kB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1126, allocations: 0 / 483.1 MB, free: 444 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.1392, allocations: 8.167 MB / 491.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.099/7.238, allocations: 4.062 kB / 491.3 MB, free: 8.359 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)