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: translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 105.5 kB / 17.07 MB, free: 5.68 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.001095/0.001095, allocations: 196 kB / 18.01 MB, free: 5.02 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.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04981/0.04981, allocations: 8.095 MB / 300 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.89 kB / 363.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1992, allocations: 51.52 MB / 414.7 MB, free: 25.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003117/0.2024, allocations: 2.387 MB / 417.1 MB, free: 23.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007496/0.2031, allocations: 0.5061 MB / 417.6 MB, free: 22.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.2033, allocations: 4 kB / 417.6 MB, free: 22.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003636/0.2036, allocations: 99.25 kB / 417.7 MB, free: 22.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.2038, allocations: 87.45 kB / 417.8 MB, free: 22.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.204, allocations: 79.84 kB / 417.8 MB, free: 22.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.2042, allocations: 279 kB / 418.1 MB, free: 21.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.2044, allocations: 109.2 kB / 418.2 MB, free: 21.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.743e-05/0.2045, allocations: 115.6 kB / 418.3 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.2047, allocations: 143.4 kB / 418.5 MB, free: 21.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.636e-05/0.2047, allocations: 28 kB / 418.5 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.2049, allocations: 71.98 kB / 418.6 MB, free: 21.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.205, allocations: 115.6 kB / 418.7 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.2051, allocations: 155.2 kB / 418.8 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.2055, allocations: 402.6 kB / 419.2 MB, free: 20.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2055, allocations: 4 kB / 419.2 MB, free: 20.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2055, allocations: 0 / 419.2 MB, free: 20.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2055, allocations: 0 / 419.2 MB, free: 20.87 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.001538/0.207, allocations: 0.7949 MB / 420 MB, free: 20.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.2071, allocations: 15.89 kB / 420 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.654e-05/0.2071, allocations: 32.56 kB / 420.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.2075, allocations: 351.4 kB / 420.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.2075, allocations: 16.64 kB / 420.4 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.2076, allocations: 16.38 kB / 420.5 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.208, allocations: 279 kB / 420.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.208, allocations: 4.188 kB / 420.7 MB, free: 19.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.629e-05/0.208, allocations: 11.94 kB / 420.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.208, allocations: 7.938 kB / 420.7 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003313/0.2084, allocations: 188.2 kB / 420.9 MB, free: 19.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.2094, allocations: 0.8414 MB / 421.8 MB, free: 18.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005004/0.2099, allocations: 299.7 kB / 422.1 MB, free: 17.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.2102, allocations: 148.8 kB / 422.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.2103, allocations: 7.984 kB / 422.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.528e-05/0.2103, allocations: 42.5 kB / 422.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.2103, allocations: 0 / 422.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.000624/0.2109, allocations: 277.5 kB / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.211, allocations: 209.6 kB / 422.7 MB, free: 17.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.2113, allocations: 366.7 kB / 423.1 MB, free: 16.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.2113, allocations: 29.7 kB / 423.1 MB, free: 16.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.074e-05/0.2114, allocations: 176 kB / 423.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.691e-05/0.2115, allocations: 35.41 kB / 423.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.535e-05/0.2115, allocations: 41.64 kB / 423.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.91e-05/0.2116, allocations: 338.8 kB / 423.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.2118, allocations: 87.94 kB / 423.8 MB, free: 16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.212, allocations: 154.2 kB / 423.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006592/0.2126, allocations: 242.5 kB / 424.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.2126, allocations: 4 kB / 424.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003931/0.213, allocations: 212.8 kB / 424.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.2131, allocations: 11.98 kB / 424.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.2131, allocations: 0 / 424.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.2131, allocations: 0 / 424.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.2132, allocations: 31.98 kB / 424.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.2133, allocations: 4 kB / 424.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004285/0.2137, allocations: 91.81 kB / 424.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.2137, allocations: 4 kB / 424.5 MB, free: 15.23 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.0001981/0.2139, allocations: 161.7 kB / 424.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.214, allocations: 23.72 kB / 424.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004956/0.2145, allocations: 239.3 kB / 424.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.2145, allocations: 4 kB / 424.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2145, allocations: 0 / 424.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2145, allocations: 0 / 424.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007979/0.2153, allocations: 0.659 MB / 425.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2153, allocations: 3.938 kB / 425.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.2155, allocations: 27.98 kB / 425.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2155, allocations: 0 / 425.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.922e-05/0.2155, allocations: 4 kB / 425.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2155, allocations: 7.938 kB / 425.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2155, allocations: 0 / 425.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005976/0.2161, allocations: 431.9 kB / 426.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.82e-05/0.2162, allocations: 116.8 kB / 426.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.2163, allocations: 11.98 kB / 426.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.2167, allocations: 83.83 kB / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.217, allocations: 127.8 kB / 426.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.217, allocations: 8 kB / 426.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002118/0.2172, allocations: 273.9 kB / 426.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2172, allocations: 4 kB / 426.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003182/0.2175, allocations: 67.84 kB / 426.7 MB, free: 12.89 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.0005182/0.2181, allocations: 259.7 kB / 427 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004322/0.2185, allocations: 198 kB / 427.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2185, allocations: 0 / 427.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.2188, allocations: 144 kB / 427.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.2191, allocations: 31.34 kB / 427.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.2206, allocations: 0.6539 MB / 428 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.2207, allocations: 0.7597 MB / 428.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.2208, allocations: 41.48 kB / 428.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.221, allocations: 35.42 kB / 428.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.221, allocations: 0 / 428.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Templates: time 0.007464/0.2284, allocations: 5.469 MB / 434.3 MB, free: 5.344 MB / 302.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (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 & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)