Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",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.001403/0.001403, allocations: 104.6 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.001496/0.001496, 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.349/1.349, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05299/0.05299, allocations: 8.098 MB / 299.2 MB, free: 6.715 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002447/0.002447, allocations: 67.89 kB / 361.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2469, allocations: 51.51 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002909/0.2499, allocations: 2.372 MB / 415.7 MB, free: 23.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005981/0.2505, allocations: 0.5061 MB / 416.2 MB, free: 22.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.935e-05/0.2506, allocations: 7.938 kB / 416.2 MB, free: 22.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.2509, allocations: 103.4 kB / 416.3 MB, free: 22.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.2511, allocations: 79.45 kB / 416.4 MB, free: 22.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001798/0.2513, allocations: 91.8 kB / 416.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001765/0.2515, allocations: 275.1 kB / 416.8 MB, free: 22.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2516, allocations: 105.7 kB / 416.9 MB, free: 22.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.306e-05/0.2517, allocations: 119.6 kB / 417 MB, free: 21.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.2519, allocations: 135.5 kB / 417.1 MB, free: 21.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.2519, allocations: 28 kB / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.2521, allocations: 83.91 kB / 417.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.2522, allocations: 115.7 kB / 417.4 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.2523, allocations: 151.2 kB / 417.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00028/0.2526, allocations: 394.7 kB / 417.9 MB, free: 21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2526, allocations: 3.938 kB / 417.9 MB, free: 21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2527, allocations: 0 / 417.9 MB, free: 21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.2527, allocations: 0 / 417.9 MB, free: 21 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001622/0.2543, allocations: 0.7949 MB / 418.7 MB, free: 20.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.2543, allocations: 15.89 kB / 418.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.671e-05/0.2544, allocations: 54.73 kB / 418.8 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.357e-05/0.2545, allocations: 32.56 kB / 418.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.2548, allocations: 355.4 kB / 419.1 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.2548, allocations: 12.7 kB / 419.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.2548, allocations: 12.38 kB / 419.2 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004064/0.2553, allocations: 287 kB / 419.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.2553, allocations: 3.938 kB / 419.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.2553, allocations: 12 kB / 419.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.2553, allocations: 4 kB / 419.5 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003406/0.2557, allocations: 191.8 kB / 419.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.2567, allocations: 0.8493 MB / 420.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005263/0.2572, allocations: 299.6 kB / 420.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.2575, allocations: 148.8 kB / 420.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.2576, allocations: 4 kB / 420.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.2576, allocations: 34.56 kB / 421 MB, free: 17.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.2576, allocations: 0 / 421 MB, free: 17.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006369/0.2583, allocations: 277.5 kB / 421.2 MB, free: 17.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.2583, allocations: 213.6 kB / 421.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003109/0.2586, allocations: 362.7 kB / 421.8 MB, free: 16.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.2587, allocations: 33.7 kB / 421.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.528e-05/0.2587, allocations: 172 kB / 422 MB, free: 16.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.2588, allocations: 43.33 kB / 422.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.598e-05/0.2588, allocations: 33.72 kB / 422.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.818e-05/0.2589, allocations: 342.8 kB / 422.4 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.2591, allocations: 83.94 kB / 422.5 MB, free: 16.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.2593, allocations: 151.7 kB / 422.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007332/0.2601, allocations: 246 kB / 422.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.2601, allocations: 0 / 422.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004158/0.2605, allocations: 217.3 kB / 423.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2605, allocations: 4 kB / 423.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2605, allocations: 4 kB / 423.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.2605, allocations: 0 / 423.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.2607, allocations: 35.91 kB / 423.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2607, allocations: 4 kB / 423.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005075/0.2612, allocations: 87.84 kB / 423.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.2612, allocations: 11.94 kB / 423.2 MB, free: 15.29 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002143/0.2615, allocations: 171.2 kB / 423.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.96e-05/0.2615, allocations: 23.72 kB / 423.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005256/0.2621, allocations: 231.3 kB / 423.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2621, allocations: 4 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2621, allocations: 3.938 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.2621, allocations: 3.984 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007771/0.2629, allocations: 0.659 MB / 424.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2629, allocations: 0 / 424.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.263, allocations: 32.02 kB / 424.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2631, allocations: 0 / 424.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2631, allocations: 7.938 kB / 424.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2631, allocations: 4 kB / 424.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2631, allocations: 0 / 424.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006299/0.2637, allocations: 431.9 kB / 424.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.155e-05/0.2638, allocations: 116.8 kB / 424.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.2639, allocations: 11.94 kB / 424.9 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005365/0.2644, allocations: 75.95 kB / 425 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.2646, allocations: 131.8 kB / 425.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.2647, allocations: 4 kB / 425.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002168/0.2649, allocations: 277.9 kB / 425.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2649, allocations: 4 kB / 425.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.2652, allocations: 63.84 kB / 425.5 MB, free: 12.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.00123/0.2664, allocations: 1.121 MB / 426.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004582/0.2669, allocations: 203.8 kB / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2669, allocations: 0 / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.2672, allocations: 139.8 kB / 426.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000327/0.2675, allocations: 32.41 kB / 427 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003826/0.2714, allocations: 3.08 MB / 430 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2715, allocations: 0.7597 MB / 430.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.2717, allocations: 49.45 kB / 430.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.2718, allocations: 87.41 kB / 430.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.2718, allocations: 0 / 430.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.2946, allocations: 8.047 MB / 439 MB, free: 15.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.715/8.01, allocations: 0 / 439 MB, free: 15.46 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge_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_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)