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.001187/0.001187, allocations: 104.2 kB / 16.03 MB, free: 6.34 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.001237/0.001237, allocations: 196.8 kB / 16.95 MB, free: 6.172 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.294/1.294, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04649/0.04649, allocations: 8.103 MB / 298.9 MB, free: 6.906 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001195, allocations: 55.91 kB / 361.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.191, allocations: 51.52 MB / 412.8 MB, free: 25.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002945/0.194, allocations: 2.421 MB / 415.3 MB, free: 23.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006345/0.1947, allocations: 0.51 MB / 415.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.196e-05/0.1948, allocations: 0 / 415.8 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003251/0.1951, allocations: 87.56 kB / 415.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.1953, allocations: 75.58 kB / 415.9 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.1955, allocations: 67.89 kB / 416 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.1957, allocations: 283.1 kB / 416.3 MB, free: 22.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.1959, allocations: 101.7 kB / 416.4 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.195e-05/0.196, allocations: 119.6 kB / 416.5 MB, free: 22.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001563/0.1961, allocations: 135.5 kB / 416.6 MB, free: 21.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.1962, allocations: 28 kB / 416.7 MB, free: 21.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.1963, allocations: 83.92 kB / 416.7 MB, free: 21.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1964, allocations: 107.7 kB / 416.8 MB, free: 21.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.827e-05/0.1965, allocations: 159.2 kB / 417 MB, free: 21.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.1968, allocations: 398.7 kB / 417.4 MB, free: 21.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1968, allocations: 3.938 kB / 417.4 MB, free: 21.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1969, allocations: 0 / 417.4 MB, free: 21.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1969, allocations: 0 / 417.4 MB, free: 21.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.001565/0.1984, allocations: 0.7871 MB / 418.2 MB, free: 20.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1985, allocations: 15.89 kB / 418.2 MB, free: 20.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.661e-05/0.1985, allocations: 54.67 kB / 418.2 MB, free: 20.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.623e-05/0.1986, allocations: 36.56 kB / 418.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.199, allocations: 355.4 kB / 418.6 MB, free: 19.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.1991, allocations: 12.7 kB / 418.6 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.1991, allocations: 20.38 kB / 418.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000425/0.1995, allocations: 283 kB / 418.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.1995, allocations: 3.938 kB / 418.9 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.1996, allocations: 12 kB / 419 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1996, allocations: 4 kB / 419 MB, free: 19.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000342/0.1999, allocations: 191.8 kB / 419.1 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.201, allocations: 0.8571 MB / 420 MB, free: 18.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005324/0.2015, allocations: 295.7 kB / 420.3 MB, free: 18.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.2019, allocations: 152.7 kB / 420.4 MB, free: 17.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.2019, allocations: 4 kB / 420.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.2019, allocations: 34.56 kB / 420.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.2019, allocations: 0 / 420.5 MB, free: 17.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006538/0.2026, allocations: 269.5 kB / 420.7 MB, free: 17.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/0.2027, allocations: 213.6 kB / 421 MB, free: 17.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003212/0.203, allocations: 366.7 kB / 421.3 MB, free: 17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.203, allocations: 33.7 kB / 421.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.626e-05/0.2031, allocations: 172 kB / 421.5 MB, free: 16.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.2032, allocations: 35.41 kB / 421.5 MB, free: 16.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.212e-05/0.2032, allocations: 45.7 kB / 421.6 MB, free: 16.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.696e-05/0.2033, allocations: 334.8 kB / 421.9 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.2035, allocations: 91.88 kB / 422 MB, free: 16.28 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.2037, allocations: 147.7 kB / 422.1 MB, free: 16.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00072/0.2044, allocations: 248.9 kB / 422.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2044, allocations: 4 kB / 422.4 MB, free: 15.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004103/0.2049, allocations: 209.3 kB / 422.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.2049, allocations: 8 kB / 422.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2049, allocations: 0 / 422.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2049, allocations: 0 / 422.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001438/0.2051, allocations: 35.92 kB / 422.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.2051, allocations: 0 / 422.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.2056, allocations: 91.81 kB / 422.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.425e-05/0.2056, allocations: 4 kB / 422.7 MB, free: 15.51 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.0002392/0.2058, allocations: 164.9 kB / 422.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.844e-05/0.2059, allocations: 27.72 kB / 422.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005179/0.2064, allocations: 242.7 kB / 423.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2064, allocations: 4 kB / 423.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.2064, allocations: 0 / 423.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2064, allocations: 0 / 423.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008293/0.2073, allocations: 0.6667 MB / 423.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2073, allocations: 0 / 423.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.2075, allocations: 27.98 kB / 423.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2075, allocations: 0 / 423.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.2075, allocations: 15.97 kB / 423.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.2075, allocations: 0 / 423.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2075, allocations: 0 / 423.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006205/0.2081, allocations: 435.9 kB / 424.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.637e-05/0.2082, allocations: 112.8 kB / 424.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.2083, allocations: 11.92 kB / 424.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005069/0.2088, allocations: 83.95 kB / 424.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.209, allocations: 123.8 kB / 424.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.209, allocations: 4 kB / 424.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.2092, allocations: 281.9 kB / 424.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2093, allocations: 0 / 424.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003316/0.2096, allocations: 63.84 kB / 425 MB, free: 13.17 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.001205/0.2108, allocations: 1.113 MB / 426.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004476/0.2113, allocations: 207.7 kB / 426.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.2113, allocations: 8.062 kB / 426.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002479/0.2115, allocations: 135.8 kB / 426.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.2119, allocations: 34.12 kB / 426.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003853/0.2158, allocations: 3.158 MB / 429.6 MB, free: 8.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.2159, allocations: 0.7674 MB / 430.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001464/0.2161, allocations: 37.53 kB / 430.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.2163, allocations: 95.39 kB / 430.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2163, allocations: 0 / 430.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.2435, allocations: 7.022 MB / 437.5 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001353/0.2437, allocations: 251.9 kB / 437.8 MB, free: 392 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.211, allocations: 4 kB / 437.8 MB, free: 388 kB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)