Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",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.001069/0.001069, allocations: 102.6 kB / 16.45 MB, free: 6.438 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.001079/0.00108, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.26/1.26, 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.0451/0.0451, allocations: 8.093 MB / 299.3 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 59.91 kB / 414 MB, free: 22.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.0877, allocations: 51.5 MB / 465.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004136/0.09186, allocations: 3.374 MB / 468.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.09373, allocations: 1.325 MB / 470.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.09391, allocations: 8 kB / 470.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004996/0.09443, allocations: 171 kB / 470.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003771/0.09482, allocations: 194.8 kB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004959/0.09533, allocations: 247.3 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004822/0.09582, allocations: 0.5377 MB / 471.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.09606, allocations: 156.8 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.09627, allocations: 215.2 kB / 471.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.09653, allocations: 231 kB / 472 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.478e-05/0.0966, allocations: 44 kB / 472 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.09675, allocations: 91.92 kB / 472.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.09695, allocations: 163.5 kB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.09715, allocations: 262.6 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006134/0.09777, allocations: 0.6498 MB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.09779, allocations: 0 / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.0978, allocations: 3.938 kB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.09781, allocations: 0 / 473.2 MB, free: 10.96 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002008/0.09982, allocations: 1.02 MB / 474.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.09987, allocations: 11.89 kB / 474.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.824e-05/0.09994, allocations: 66.73 kB / 474.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.678e-05/0.1, allocations: 60.56 kB / 474.3 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006783/0.1007, allocations: 0.491 MB / 474.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.1008, allocations: 20.94 kB / 474.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.325e-05/0.1008, allocations: 39.92 kB / 474.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006014/0.1014, allocations: 389.6 kB / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1015, allocations: 4 kB / 475.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.334e-05/0.1015, allocations: 8 kB / 475.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.1015, allocations: 8 kB / 475.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.102, allocations: 254 kB / 475.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.1039, allocations: 1.496 MB / 477 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004901/0.1044, allocations: 283.5 kB / 477.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.1047, allocations: 104.8 kB / 477.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.1047, allocations: 4 kB / 477.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.1047, allocations: 38.56 kB / 477.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.1047, allocations: 96 / 477.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006909/0.1054, allocations: 309.4 kB / 477.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/0.1055, allocations: 209.6 kB / 478 MB, free: 5.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006081/0.1062, allocations: 0.5838 MB / 478.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.1062, allocations: 29.7 kB / 478.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.1064, allocations: 264 kB / 478.8 MB, free: 4.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.1064, allocations: 51.58 kB / 478.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.746e-05/0.1065, allocations: 49.7 kB / 478.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1066, allocations: 350.8 kB / 479.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/0.1068, allocations: 99.94 kB / 479.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/0.1071, allocations: 216.1 kB / 479.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1075, allocations: 201 kB / 479.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1075, allocations: 0 / 479.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005272/0.108, allocations: 293.1 kB / 480.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1081, allocations: 8 kB / 480.1 MB, free: 3.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1081, allocations: 4.25 kB / 480.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.1081, allocations: 8 kB / 480.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001936/0.1083, allocations: 47.91 kB / 480.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.1083, allocations: 4 kB / 480.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.1089, allocations: 107.7 kB / 480.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.1089, allocations: 11.94 kB / 480.2 MB, free: 3.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001697/0.1091, allocations: 177.8 kB / 480.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-05/0.1092, allocations: 51.7 kB / 480.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005575/0.1097, allocations: 261.2 kB / 480.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1097, allocations: 0 / 480.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1097, allocations: 128 / 480.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.1098, allocations: 11.97 kB / 480.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009853/0.1107, allocations: 0.7526 MB / 481.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1108, allocations: 0 / 481.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.1109, allocations: 27.92 kB / 481.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.1109, allocations: 4 kB / 481.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.1109, allocations: 4 kB / 481.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.111, allocations: 3.984 kB / 481.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.111, allocations: 0 / 481.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007107/0.1117, allocations: 463.9 kB / 482 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.1119, allocations: 164.7 kB / 482.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.592e-05/0.1119, allocations: 8 kB / 482.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006052/0.1125, allocations: 91.94 kB / 482.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002406/0.1128, allocations: 127.8 kB / 482.4 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.874e-05/0.1128, allocations: 11.94 kB / 482.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004513/0.1133, allocations: 431.1 kB / 482.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.334e-06/0.1133, allocations: 0 / 482.8 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003867/0.1137, allocations: 103.8 kB / 482.9 MB, free: 0.6758 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * 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.00169/0.1154, allocations: 1.245 MB / 484.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005257/0.1159, allocations: 231.7 kB / 484.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1159, allocations: 4 kB / 484.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.1162, allocations: 144.5 kB / 484.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.1168, allocations: 105.6 kB / 484.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005351/0.1222, allocations: 4.307 MB / 488.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.1225, allocations: 0.8269 MB / 489.8 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002372/0.1228, allocations: 71.25 kB / 489.8 MB, free: 9.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.123, allocations: 143.4 kB / 490 MB, free: 9.539 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.123, allocations: 8 kB / 490 MB, free: 9.531 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04884/0.1718, allocations: 12.52 MB / 0.4907 GB, free: 13.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.754, allocations: 19.08 kB / 0.4907 GB, free: 13.18 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL_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_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)