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.00122/0.00122, allocations: 108.3 kB / 16.68 MB, free: 6.352 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.001248/0.001248, allocations: 194.5 kB / 17.61 MB, free: 5.754 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.358/1.358, allocations: 222.9 MB / 241.3 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04834/0.04834, allocations: 8.093 MB / 299.5 MB, free: 6.707 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 59.91 kB / 361.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2046, allocations: 51.51 MB / 413.4 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003459/0.2081, allocations: 2.428 MB / 415.8 MB, free: 23.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000847/0.209, allocations: 0.5022 MB / 416.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.2092, allocations: 4 kB / 416.3 MB, free: 22.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004518/0.2097, allocations: 91.56 kB / 416.4 MB, free: 22.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.21, allocations: 67.59 kB / 416.5 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002635/0.2103, allocations: 71.94 kB / 416.6 MB, free: 22.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002773/0.2105, allocations: 291 kB / 416.8 MB, free: 22.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.2108, allocations: 93.41 kB / 416.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.2109, allocations: 119.6 kB / 417 MB, free: 22.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002224/0.2112, allocations: 147.4 kB / 417.2 MB, free: 21.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.121e-05/0.2112, allocations: 24 kB / 417.2 MB, free: 21.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.2114, allocations: 75.98 kB / 417.3 MB, free: 21.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.2116, allocations: 115.6 kB / 417.4 MB, free: 21.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.2117, allocations: 159.2 kB / 417.6 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.212, allocations: 311.3 kB / 417.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.212, allocations: 3.938 kB / 417.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.212, allocations: 0 / 417.9 MB, free: 21.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.2121, allocations: 4 kB / 417.9 MB, free: 21.29 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.001737/0.2138, allocations: 0.7871 MB / 418.7 MB, free: 20.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2139, allocations: 19.89 kB / 418.7 MB, free: 20.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.214, allocations: 32.56 kB / 418.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.2143, allocations: 359.4 kB / 419.1 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.2144, allocations: 12.7 kB / 419.1 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.765e-05/0.2144, allocations: 16.38 kB / 419.1 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004601/0.2149, allocations: 287 kB / 419.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2149, allocations: 192 / 419.4 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.702e-05/0.2149, allocations: 11.94 kB / 419.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.215, allocations: 4 kB / 419.4 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/0.2153, allocations: 195.8 kB / 419.6 MB, free: 19.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.2165, allocations: 0.8454 MB / 420.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005252/0.217, allocations: 299.6 kB / 420.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.2173, allocations: 144.8 kB / 420.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.2174, allocations: 8 kB / 420.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.2174, allocations: 38.56 kB / 420.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.764e-06/0.2174, allocations: 0 / 420.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006421/0.218, allocations: 281.5 kB / 421.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.2181, allocations: 213.6 kB / 421.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2184, allocations: 362.7 kB / 421.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.2185, allocations: 25.7 kB / 421.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.228e-05/0.2186, allocations: 176 kB / 421.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.2186, allocations: 47.38 kB / 422 MB, free: 16.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.715e-05/0.2187, allocations: 29.72 kB / 422 MB, free: 16.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.482e-05/0.2187, allocations: 342.8 kB / 422.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.2189, allocations: 83.94 kB / 422.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002002/0.2191, allocations: 151.6 kB / 422.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007033/0.2198, allocations: 245.1 kB / 422.8 MB, free: 16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2198, allocations: 128 / 422.8 MB, free: 16 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004149/0.2203, allocations: 213.3 kB / 423 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2203, allocations: 4 kB / 423 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2203, allocations: 0 / 423 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.2203, allocations: 4 kB / 423 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.2205, allocations: 31.92 kB / 423.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2205, allocations: 11.91 kB / 423.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.221, allocations: 87.86 kB / 423.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.221, allocations: 15.94 kB / 423.2 MB, free: 15.63 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.0002464/0.2212, allocations: 160.2 kB / 423.3 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.252e-05/0.2213, allocations: 31.69 kB / 423.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005351/0.2218, allocations: 239.3 kB / 423.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.2219, allocations: 3.984 kB / 423.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2219, allocations: 4 kB / 423.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2219, allocations: 0 / 423.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008004/0.2227, allocations: 0.6512 MB / 424.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2227, allocations: 0 / 424.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.2228, allocations: 27.92 kB / 424.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2229, allocations: 8.031 kB / 424.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.2229, allocations: 0 / 424.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2229, allocations: 3.938 kB / 424.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2229, allocations: 7.984 kB / 424.3 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006263/0.2235, allocations: 431.3 kB / 424.7 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.614e-05/0.2236, allocations: 112.8 kB / 424.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.2237, allocations: 8 kB / 424.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/0.2241, allocations: 87.88 kB / 424.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.2244, allocations: 127.7 kB / 425.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.2244, allocations: 8 kB / 425.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.2246, allocations: 273.9 kB / 425.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2246, allocations: 0 / 425.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003318/0.2249, allocations: 71.84 kB / 425.4 MB, free: 13.3 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.0006076/0.2256, allocations: 247.3 kB / 425.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004664/0.226, allocations: 202.2 kB / 425.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.2261, allocations: 4 kB / 425.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002462/0.2263, allocations: 143.8 kB / 426 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.2267, allocations: 31.16 kB / 426 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.2282, allocations: 0.7806 MB / 426.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001563/0.2284, allocations: 0.7597 MB / 427.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2286, allocations: 35.44 kB / 427.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2286, allocations: 0 / 427.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Templates: time 0.005217/0.2338, allocations: 4.291 MB / 431.9 MB, free: 6.828 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 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)