Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",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.001059/0.001059, allocations: 107 kB / 16.44 MB, free: 5.914 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.001114/0.001114, allocations: 198.1 kB / 17.38 MB, free: 5.539 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.233/1.233, 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.04571/0.04571, allocations: 8.094 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 59.91 kB / 414 MB, free: 22.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08543, allocations: 51.51 MB / 465.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004164/0.08964, allocations: 3.147 MB / 468.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.09134, allocations: 1.175 MB / 469.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.09148, allocations: 4 kB / 469.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007379/0.09224, allocations: 438.8 kB / 470.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004178/0.09267, allocations: 270.8 kB / 470.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.09427, allocations: 0.9879 MB / 471.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005405/0.09482, allocations: 0.5139 MB / 472 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002445/0.09508, allocations: 165.4 kB / 472.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001997/0.09528, allocations: 243.2 kB / 472.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.0957, allocations: 355 kB / 472.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.489e-05/0.09578, allocations: 56 kB / 472.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004181/0.09621, allocations: 267.8 kB / 473.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002643/0.09648, allocations: 354.9 kB / 473.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003583/0.09685, allocations: 453.3 kB / 473.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.0981, allocations: 1.331 MB / 475.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.09812, allocations: 0 / 475.2 MB, free: 9.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.09813, allocations: 4 kB / 475.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.09814, allocations: 0 / 475.2 MB, free: 9.043 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00324/0.1014, allocations: 1.591 MB / 476.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1014, allocations: 11.89 kB / 476.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.896e-05/0.1015, allocations: 66.67 kB / 476.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.1017, allocations: 112.2 kB / 477 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.1029, allocations: 0.8806 MB / 477.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-05/0.103, allocations: 76.53 kB / 477.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.377e-05/0.103, allocations: 32.36 kB / 478 MB, free: 6.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007321/0.1038, allocations: 452.8 kB / 478.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1038, allocations: 4 kB / 478.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.1039, allocations: 12 kB / 478.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1039, allocations: 8 kB / 478.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005886/0.1045, allocations: 322.1 kB / 478.7 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.1074, allocations: 2.116 MB / 480.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009477/0.1084, allocations: 489.1 kB / 481.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004046/0.1088, allocations: 217.2 kB / 481.5 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000138/0.109, allocations: 89.33 kB / 481.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.109, allocations: 42.78 kB / 481.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.109, allocations: 4 kB / 481.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002135/0.1111, allocations: 0.829 MB / 482.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.1113, allocations: 235.3 kB / 482.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.1131, allocations: 1.741 MB / 484.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1131, allocations: 37.7 kB / 484.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003556/0.1135, allocations: 437 kB / 484.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.1136, allocations: 99.16 kB / 485 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1137, allocations: 69.44 kB / 485.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1138, allocations: 318 kB / 485.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.1141, allocations: 155.9 kB / 485.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.1145, allocations: 254 kB / 485.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003247/0.1177, allocations: 0.9384 MB / 486.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1177, allocations: 4 kB / 486.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001234/0.119, allocations: 0.6143 MB / 487.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.119, allocations: 8.094 kB / 487.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.119, allocations: 0 / 487.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005919/0.1196, allocations: 144.7 kB / 487.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.1199, allocations: 71.89 kB / 487.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002301/0.1222, allocations: 2.04 MB / 489.6 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.1226, allocations: 47.75 kB / 489.7 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.696e-05/0.1226, allocations: 12 kB / 489.7 MB, free: 9.891 MB / 366.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004195/0.1231, allocations: 397.7 kB / 490.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.1232, allocations: 103.3 kB / 490.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.1244, allocations: 0.5896 MB / 490.8 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.433e-06/0.1245, allocations: 11.98 kB / 490.8 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.1245, allocations: 4 kB / 490.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1245, allocations: 0 / 490.8 MB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/0.1267, allocations: 1.47 MB / 492.3 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.1268, allocations: 4.031 kB / 492.3 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002399/0.127, allocations: 59.89 kB / 492.3 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005637/0.1276, allocations: 148.7 kB / 492.5 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.1276, allocations: 4 kB / 492.5 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.1296, allocations: 2.013 MB / 494.5 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1297, allocations: 4.125 kB / 494.5 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.1311, allocations: 0.8382 MB / 495.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000363/0.1315, allocations: 244.4 kB / 495.6 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.741e-05/0.1316, allocations: 4 kB / 495.6 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.1319, allocations: 43.95 kB / 495.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.331e-05/0.132, allocations: 39.89 kB / 495.6 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.1321, allocations: 8 kB / 495.7 MB, free: 3.656 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.1335, allocations: 1.26 MB / 496.9 MB, free: 2.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1335, allocations: 0 / 496.9 MB, free: 2.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004894/0.134, allocations: 155.8 kB / 497.1 MB, free: 2.234 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * 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: 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002258/0.1362, allocations: 1.554 MB / 498.6 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.1373, allocations: 0.5179 MB / 499.1 MB, free: 200 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1373, allocations: 3.938 kB / 499.1 MB, free: 196 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000636/0.138, allocations: 339.2 kB / 499.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.1385, allocations: 87.09 kB / 499.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.1515, allocations: 10.16 MB / 0.4978 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006609/0.1522, allocations: 1.072 MB / 0.4988 GB, free: 4.348 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002778/0.1525, allocations: 137.1 kB / 0.499 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003981/0.1529, allocations: 323.3 kB / 0.4993 GB, free: 3.895 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1529, allocations: 0 / 0.4993 GB, free: 3.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2194/0.3722, allocations: 20.82 MB / 0.5196 GB, free: 41.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/12.28, allocations: 14.55 kB / 0.5196 GB, free: 41.63 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad_res.csv --start-time 0 --stop-time 360000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 144 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)