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.001205/0.001205, allocations: 104.4 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.001195/0.001195, allocations: 192.3 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.309/1.309, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04637/0.04637, allocations: 8.089 MB / 299.2 MB, free: 6.699 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.91 kB / 361.8 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2035, allocations: 51.52 MB / 413.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003489/0.207, allocations: 3.129 MB / 416.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.2083, allocations: 1.175 MB / 417.7 MB, free: 21.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.2085, allocations: 4 kB / 417.7 MB, free: 21.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006454/0.2092, allocations: 448.7 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.2096, allocations: 262.8 kB / 418.4 MB, free: 20.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.2109, allocations: 0.9881 MB / 419.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004189/0.2113, allocations: 0.4984 MB / 419.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.2116, allocations: 157.4 kB / 420 MB, free: 18.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.2117, allocations: 239.2 kB / 420.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.212, allocations: 358.9 kB / 420.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.45e-05/0.2121, allocations: 52 kB / 420.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003561/0.2125, allocations: 275.8 kB / 420.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.2127, allocations: 358.9 kB / 421.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002428/0.2129, allocations: 441.4 kB / 421.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007947/0.2137, allocations: 1.324 MB / 423 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2137, allocations: 0 / 423 MB, free: 15.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2138, allocations: 0 / 423 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.2138, allocations: 0 / 423 MB, free: 15.86 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002702/0.2165, allocations: 1.552 MB / 424.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2165, allocations: 15.89 kB / 424.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.695e-05/0.2166, allocations: 62.73 kB / 424.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.2167, allocations: 111.6 kB / 424.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000825/0.2176, allocations: 0.8719 MB / 425.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.709e-05/0.2176, allocations: 76.53 kB / 425.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.522e-05/0.2177, allocations: 32.36 kB / 425.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/0.2183, allocations: 456.8 kB / 426.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2183, allocations: 3.984 kB / 426.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.2184, allocations: 12 kB / 426.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2184, allocations: 4 kB / 426.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005131/0.2189, allocations: 326.1 kB / 426.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.2213, allocations: 2.135 MB / 428.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008718/0.2221, allocations: 478 kB / 429.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003668/0.2225, allocations: 213.2 kB / 429.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.2226, allocations: 97.31 kB / 429.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.596e-05/0.2227, allocations: 30.8 kB / 429.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.2227, allocations: 0 / 429.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002032/0.2247, allocations: 0.8292 MB / 430.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.2248, allocations: 239.3 kB / 430.5 MB, free: 7.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.2262, allocations: 1.741 MB / 432.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.2262, allocations: 29.7 kB / 432.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.2265, allocations: 440.8 kB / 432.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.185e-05/0.2266, allocations: 94.64 kB / 432.8 MB, free: 5.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.2267, allocations: 73.59 kB / 432.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.955e-05/0.2267, allocations: 318 kB / 433.2 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.227, allocations: 147.9 kB / 433.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.2273, allocations: 246.3 kB / 433.6 MB, free: 4.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/0.2306, allocations: 0.9379 MB / 434.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2306, allocations: 4 kB / 434.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001161/0.2318, allocations: 0.6136 MB / 435.1 MB, free: 3.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.2318, allocations: 11.98 kB / 435.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2318, allocations: 80 / 435.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006162/0.2324, allocations: 148.7 kB / 435.3 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.2327, allocations: 75.83 kB / 435.4 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.2347, allocations: 2.042 MB / 437.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/0.2351, allocations: 47.66 kB / 437.4 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.2351, allocations: 12 kB / 437.5 MB, free: 0.7539 MB / 302.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.0003702/0.2355, allocations: 406.5 kB / 437.9 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.2356, allocations: 94.78 kB / 437.9 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001314/0.237, allocations: 0.5858 MB / 438.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.237, allocations: 7.938 kB / 438.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.237, allocations: 0 / 438.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.237, allocations: 0 / 438.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.2393, allocations: 1.481 MB / 440 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2393, allocations: 0 / 440 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002551/0.2396, allocations: 59.91 kB / 440.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005964/0.2402, allocations: 144.7 kB / 440.2 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.2402, allocations: 8 kB / 440.2 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.2424, allocations: 2.013 MB / 442.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2424, allocations: 0 / 442.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.2441, allocations: 0.8333 MB / 443.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/0.2443, allocations: 239.8 kB / 443.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.825e-05/0.2444, allocations: 8 kB / 443.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003724/0.2448, allocations: 39.97 kB / 443.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.026e-05/0.2449, allocations: 35.95 kB / 443.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.245, allocations: 4 kB / 443.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001454/0.2464, allocations: 1.26 MB / 444.7 MB, free: 9.281 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2464, allocations: 4 kB / 444.7 MB, free: 9.277 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005199/0.2469, allocations: 155.7 kB / 444.8 MB, free: 9.125 MB / 318.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.002366/0.2493, allocations: 1.535 MB / 446.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.2505, allocations: 0.5335 MB / 446.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2505, allocations: 0 / 446.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006693/0.2512, allocations: 347.1 kB / 447.2 MB, free: 6.738 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.2518, allocations: 101.5 kB / 447.3 MB, free: 6.641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01616/0.2679, allocations: 10.72 MB / 458 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000757/0.2687, allocations: 1.08 MB / 459.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003261/0.2691, allocations: 129.1 kB / 459.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004387/0.2695, allocations: 327.3 kB / 459.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2695, allocations: 0 / 459.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04626/0.3158, allocations: 20.46 MB / 480 MB, free: 5.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.67, allocations: 11.88 kB / 480 MB, free: 5.762 MB / 350.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)