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.001492/0.001492, allocations: 112.5 kB / 17.09 MB, free: 6.004 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.002054/0.002055, allocations: 195 kB / 18.02 MB, free: 5.086 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.508/1.508, allocations: 222.9 MB / 241.7 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.0457/0.0457, allocations: 8.101 MB / 300 MB, free: 6.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.89 kB / 363.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2081, allocations: 51.52 MB / 414.7 MB, free: 25.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.002927/0.2111, allocations: 2.383 MB / 417.1 MB, free: 23.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005958/0.2117, allocations: 0.4982 MB / 417.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.25e-05/0.2118, allocations: 4 kB / 417.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003048/0.2121, allocations: 107.3 kB / 417.7 MB, free: 22.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.2123, allocations: 79.47 kB / 417.8 MB, free: 22.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.2124, allocations: 83.78 kB / 417.9 MB, free: 22.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.2126, allocations: 279.1 kB / 418.1 MB, free: 22.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.2128, allocations: 109.2 kB / 418.2 MB, free: 21.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.389e-05/0.2129, allocations: 123.6 kB / 418.4 MB, free: 21.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.2131, allocations: 135.4 kB / 418.5 MB, free: 21.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/0.2131, allocations: 24 kB / 418.5 MB, free: 21.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.2132, allocations: 87.91 kB / 418.6 MB, free: 21.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.2134, allocations: 107.7 kB / 418.7 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.2135, allocations: 147.2 kB / 418.8 MB, free: 21.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.2138, allocations: 410.5 kB / 419.2 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.2138, allocations: 0 / 419.2 MB, free: 20.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2138, allocations: 0 / 419.2 MB, free: 20.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.2138, allocations: 4 kB / 419.2 MB, free: 20.88 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.001487/0.2153, allocations: 0.7949 MB / 420 MB, free: 20.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.655e-05/0.2153, allocations: 8.031 kB / 420.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.167e-05/0.2154, allocations: 32.56 kB / 420.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.2157, allocations: 355.4 kB / 420.4 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.2158, allocations: 12.7 kB / 420.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.2158, allocations: 16.38 kB / 420.5 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003885/0.2162, allocations: 283 kB / 420.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.2162, allocations: 192 / 420.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.2163, allocations: 7.938 kB / 420.7 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2163, allocations: 4 kB / 420.7 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003138/0.2166, allocations: 200.1 kB / 420.9 MB, free: 19.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009811/0.2176, allocations: 0.8492 MB / 421.8 MB, free: 18.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000477/0.2181, allocations: 299.6 kB / 422.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.2183, allocations: 140.8 kB / 422.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.598e-05/0.2184, allocations: 4 kB / 422.2 MB, free: 17.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.2184, allocations: 38.56 kB / 422.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.2184, allocations: 3.938 kB / 422.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006035/0.219, allocations: 281.5 kB / 422.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.2191, allocations: 209.6 kB / 422.7 MB, free: 17.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.2194, allocations: 366.7 kB / 423.1 MB, free: 16.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.2194, allocations: 25.7 kB / 423.1 MB, free: 16.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.574e-05/0.2195, allocations: 180 kB / 423.3 MB, free: 16.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.2195, allocations: 43.39 kB / 423.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.344e-05/0.2196, allocations: 37.64 kB / 423.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.128e-05/0.2196, allocations: 342.8 kB / 423.7 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.2198, allocations: 79.95 kB / 423.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.22, allocations: 153 kB / 423.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006306/0.2207, allocations: 242.4 kB / 424.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2207, allocations: 0 / 424.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003804/0.2211, allocations: 212.9 kB / 424.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.2211, allocations: 4 kB / 424.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.2211, allocations: 0 / 424.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2211, allocations: 8.062 kB / 424.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.2212, allocations: 35.97 kB / 424.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.2213, allocations: 0 / 424.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.2217, allocations: 91.73 kB / 424.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.2217, allocations: 11.98 kB / 424.5 MB, free: 15.24 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.0001667/0.2219, allocations: 153.8 kB / 424.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.2219, allocations: 23.72 kB / 424.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004853/0.2224, allocations: 243.3 kB / 424.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2224, allocations: 3.938 kB / 425 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2225, allocations: 7.938 kB / 425 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2225, allocations: 0 / 425 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007448/0.2232, allocations: 0.6551 MB / 425.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2232, allocations: 0 / 425.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.2234, allocations: 23.98 kB / 425.6 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2234, allocations: 7.984 kB / 425.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.787e-05/0.2234, allocations: 4 kB / 425.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2234, allocations: 3.938 kB / 425.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2234, allocations: 4 kB / 425.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005709/0.224, allocations: 431.9 kB / 426.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.484e-05/0.2241, allocations: 112.8 kB / 426.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.2241, allocations: 4 kB / 426.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.2246, allocations: 87.88 kB / 426.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/0.2248, allocations: 123.8 kB / 426.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.2248, allocations: 8 kB / 426.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002061/0.225, allocations: 277.9 kB / 426.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.225, allocations: 4 kB / 426.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.2253, allocations: 71.84 kB / 426.8 MB, free: 12.91 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.0004986/0.2258, allocations: 257.8 kB / 427 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004183/0.2263, allocations: 195.9 kB / 427.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2263, allocations: 3.938 kB / 427.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002555/0.2265, allocations: 131.9 kB / 427.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.2269, allocations: 40.03 kB / 427.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.2283, allocations: 0.6539 MB / 428 MB, free: 11.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.2284, allocations: 0.7635 MB / 428.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.2286, allocations: 41.47 kB / 428.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.738e-05/0.2287, allocations: 27.44 kB / 428.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2287, allocations: 4 kB / 428.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of Templates: time 0.007242/0.2359, allocations: 5.473 MB / 434.3 MB, free: 5.355 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 cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)