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.001151/0.001151, allocations: 100.8 kB / 16.31 MB, free: 5.879 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.00118/0.00118, allocations: 191.6 kB / 17.24 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.321/1.321, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04614/0.04614, allocations: 8.098 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 63.91 kB / 361.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1956/0.1968, allocations: 51.51 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.004905/0.2017, allocations: 4.787 MB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.2038, allocations: 1.623 MB / 419.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002543/0.204, allocations: 16 kB / 419.8 MB, free: 19.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009395/0.205, allocations: 0.7652 MB / 420.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000727/0.2057, allocations: 0.6458 MB / 421.2 MB, free: 17.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.2074, allocations: 1.14 MB / 422.3 MB, free: 16.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000933/0.2084, allocations: 1.249 MB / 423.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004159/0.2088, allocations: 418.2 kB / 424 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003753/0.2092, allocations: 0.5881 MB / 424.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006467/0.2098, allocations: 0.9076 MB / 425.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.21, allocations: 128 kB / 425.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005081/0.2105, allocations: 351.8 kB / 426 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004185/0.2109, allocations: 0.97 MB / 426.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006126/0.2115, allocations: 1.196 MB / 428.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001763/0.2133, allocations: 3.307 MB / 431.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2133, allocations: 0 / 431.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2133, allocations: 0 / 431.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.942e-05/0.2134, allocations: 8 kB / 431.4 MB, free: 7.422 MB / 302.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.00571/0.2191, allocations: 3.395 MB / 434.8 MB, free: 3.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2191, allocations: 15.89 kB / 434.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.2193, allocations: 114.7 kB / 435 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003244/0.2196, allocations: 289.3 kB / 435.2 MB, free: 3.531 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003371/0.223, allocations: 2.187 MB / 437.4 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001811/0.2232, allocations: 220.1 kB / 437.6 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2233, allocations: 68.38 kB / 437.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.2257, allocations: 1.008 MB / 438.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.2258, allocations: 0 / 438.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001266/0.2259, allocations: 32 kB / 438.7 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.347e-05/0.2259, allocations: 19.98 kB / 438.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.2281, allocations: 0.6845 MB / 439.5 MB, free: 15.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00707/0.2352, allocations: 4.835 MB / 444.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.2376, allocations: 1.374 MB / 445.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.2386, allocations: 0.5179 MB / 446.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001661/0.2388, allocations: 89.66 kB / 446.3 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.2389, allocations: 59 kB / 446.3 MB, free: 7.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 3.887e-06/0.2389, allocations: 3.984 kB / 446.3 MB, free: 7.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004734/0.2436, allocations: 1.649 MB / 448 MB, free: 6.297 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000235/0.2439, allocations: 0.5974 MB / 448.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005759/0.2496, allocations: 4.885 MB / 453.5 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.2498, allocations: 41.7 kB / 453.5 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.2508, allocations: 1.135 MB / 454.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.251, allocations: 212.8 kB / 454.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.2512, allocations: 126.2 kB / 455 MB, free: 15.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.2514, allocations: 329.9 kB / 455.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007149/0.2521, allocations: 329.1 kB / 455.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009089/0.253, allocations: 0.5467 MB / 456.2 MB, free: 13.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005906/0.2589, allocations: 1.673 MB / 457.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.259, allocations: 0 / 457.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003641/0.2626, allocations: 1.236 MB / 459.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.2626, allocations: 8 kB / 459.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.2627, allocations: 4 kB / 459.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.2638, allocations: 268.5 kB / 459.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006955/0.2646, allocations: 159.8 kB / 459.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003818/0.2684, allocations: 2.701 MB / 462.2 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/0.2697, allocations: 111.5 kB / 462.3 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.906e-05/0.2698, allocations: 20 kB / 462.3 MB, free: 7.488 MB / 334.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.001235/0.271, allocations: 0.9367 MB / 463.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000398/0.2714, allocations: 260.6 kB / 463.5 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/0.2744, allocations: 1.275 MB / 464.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2744, allocations: 8 kB / 464.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/0.2744, allocations: 0 / 464.8 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.2744, allocations: 7.922 kB / 464.8 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005632/0.2801, allocations: 3.377 MB / 468.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.2801, allocations: 0 / 468.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006312/0.2807, allocations: 139.8 kB / 468.3 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/0.2819, allocations: 256.7 kB / 468.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.282, allocations: 16 kB / 468.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003387/0.2854, allocations: 2.681 MB / 471.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2854, allocations: 0 / 471.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003877/0.2893, allocations: 1.69 MB / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.2903, allocations: 0.5288 MB / 473.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/0.2906, allocations: 15.94 kB / 473.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007922/0.2914, allocations: 91.98 kB / 473.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.2916, allocations: 80.45 kB / 473.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/0.2916, allocations: 19.94 kB / 473.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004514/0.2961, allocations: 3.519 MB / 477.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2962, allocations: 0 / 477.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001096/0.2973, allocations: 351.5 kB / 477.6 MB, free: 7.953 MB / 350.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.006464/0.3037, allocations: 2.43 MB / 480 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003955/0.3077, allocations: 1.006 MB / 481 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/0.3078, allocations: 4.234 kB / 481 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002212/0.31, allocations: 0.6271 MB / 481.6 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/0.3127, allocations: 206.4 kB / 481.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05339/0.3662, allocations: 30.79 MB / 0.5006 GB, free: 3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001959/0.3682, allocations: 1.82 MB / 0.5024 GB, free: 1.148 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009962/0.3692, allocations: 364.1 kB / 0.5027 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1625/0.5317, allocations: 0.958 MB / 0.5037 GB, free: 91.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5317, allocations: 0 / 0.5037 GB, free: 91.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08228/0.614, allocations: 50.6 MB / 0.5531 GB, free: 49.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.01, allocations: 21.62 kB / 0.5531 GB, free: 49.77 MB / 382.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)