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.001468/0.001468, allocations: 102.9 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.001212/0.001212, 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.356/1.356, 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.05156/0.05156, allocations: 8.099 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 71.88 kB / 414 MB, free: 22.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09355, allocations: 51.51 MB / 465.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005085/0.09868, allocations: 3.362 MB / 468.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.1013, allocations: 1.329 MB / 470.2 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002794/0.1016, allocations: 11.94 kB / 470.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006623/0.1023, allocations: 175 kB / 470.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000483/0.1028, allocations: 190.8 kB / 470.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000649/0.1034, allocations: 243.1 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006679/0.1041, allocations: 0.5338 MB / 471.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002868/0.1044, allocations: 160.8 kB / 471.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.1047, allocations: 215.1 kB / 471.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.105, allocations: 227 kB / 472 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.1051, allocations: 44 kB / 472 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.1053, allocations: 91.97 kB / 472.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002376/0.1055, allocations: 171.5 kB / 472.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002632/0.1058, allocations: 258.6 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008205/0.1066, allocations: 0.6459 MB / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1066, allocations: 0 / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1066, allocations: 0 / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1067, allocations: 0 / 473.2 MB, free: 10.97 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.002319/0.109, allocations: 1.028 MB / 474.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.109, allocations: 15.89 kB / 474.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.783e-05/0.1091, allocations: 58.73 kB / 474.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1092, allocations: 60.56 kB / 474.3 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008255/0.1101, allocations: 0.4949 MB / 474.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.1101, allocations: 20.94 kB / 474.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.664e-05/0.1102, allocations: 31.88 kB / 474.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000692/0.1109, allocations: 393.6 kB / 475.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1109, allocations: 0 / 475.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.1109, allocations: 12 kB / 475.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.1109, allocations: 4 kB / 475.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/0.1115, allocations: 254.1 kB / 475.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.1138, allocations: 1.496 MB / 477 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.1144, allocations: 287.5 kB / 477.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.1147, allocations: 104.8 kB / 477.4 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.1147, allocations: 4 kB / 477.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1148, allocations: 42.58 kB / 477.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.603e-06/0.1148, allocations: 3.938 kB / 477.5 MB, free: 6.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007915/0.1156, allocations: 313.3 kB / 477.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.1157, allocations: 209.6 kB / 478 MB, free: 5.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00075/0.1165, allocations: 0.576 MB / 478.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.1165, allocations: 29.7 kB / 478.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.1167, allocations: 272.1 kB / 478.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.1168, allocations: 43.58 kB / 478.9 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.1169, allocations: 45.72 kB / 478.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.1171, allocations: 358.8 kB / 479.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.1174, allocations: 91.94 kB / 479.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003576/0.1177, allocations: 214.5 kB / 479.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000411/0.1181, allocations: 197.3 kB / 479.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1182, allocations: 0 / 479.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006205/0.1188, allocations: 301.1 kB / 480.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1188, allocations: 4 kB / 480.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1188, allocations: 7.938 kB / 480.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.1189, allocations: 4 kB / 480.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.1191, allocations: 56.22 kB / 480.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1191, allocations: 4 kB / 480.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005827/0.1197, allocations: 95.72 kB / 480.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.1197, allocations: 20 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.0002178/0.1199, allocations: 185.7 kB / 480.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-05/0.12, allocations: 43.72 kB / 480.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00063/0.1207, allocations: 257.2 kB / 480.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.1207, allocations: 3.984 kB / 480.7 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.1207, allocations: 8 kB / 480.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.1207, allocations: 0 / 480.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/0.1219, allocations: 0.7448 MB / 481.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1219, allocations: 4.125 kB / 481.5 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.1221, allocations: 32.02 kB / 481.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1221, allocations: 0 / 481.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.1221, allocations: 3.984 kB / 481.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.1221, allocations: 4 kB / 481.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1221, allocations: 0 / 481.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008231/0.123, allocations: 475.5 kB / 482 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.1232, allocations: 160.7 kB / 482.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.278e-05/0.1232, allocations: 4 kB / 482.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006352/0.1239, allocations: 99.92 kB / 482.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002823/0.1242, allocations: 131.7 kB / 482.4 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.1242, allocations: 4 kB / 482.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005456/0.1247, allocations: 427.1 kB / 482.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1247, allocations: 0 / 482.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004196/0.1252, allocations: 103.9 kB / 482.9 MB, free: 0.6836 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.00234/0.1275, allocations: 1.248 MB / 484.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005822/0.1281, allocations: 231.2 kB / 484.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1281, allocations: 0 / 484.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003061/0.1284, allocations: 144.5 kB / 484.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.129, allocations: 113.4 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.006503/0.1356, allocations: 4.303 MB / 488.9 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005209/0.1361, allocations: 0.8231 MB / 489.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002773/0.1364, allocations: 71.22 kB / 489.8 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.1367, allocations: 151.4 kB / 490 MB, free: 9.539 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1367, allocations: 0 / 490 MB, free: 9.539 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04053/0.1772, allocations: 12.54 MB / 0.4907 GB, free: 13.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.535/8.713, allocations: 11.14 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)