Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 104 kB / 16.98 MB, free: 6.176 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.001014/0.001014, allocations: 191.6 kB / 17.91 MB, free: 5.277 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.389/1.389, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04844/0.04844, allocations: 8.102 MB / 299.9 MB, free: 6.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 64.05 kB / 362.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.22, allocations: 51.51 MB / 413.9 MB, free: 25.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004111/0.2242, allocations: 3.352 MB / 417.3 MB, free: 22.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2259, allocations: 1.329 MB / 418.6 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.2261, allocations: 7.938 kB / 418.6 MB, free: 20.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005604/0.2267, allocations: 174.9 kB / 418.8 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003541/0.2271, allocations: 186.8 kB / 419 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.2276, allocations: 234.4 kB / 419.2 MB, free: 20.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003963/0.228, allocations: 0.5338 MB / 419.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.2282, allocations: 164.7 kB / 419.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.2284, allocations: 223.1 kB / 420.1 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.2286, allocations: 223 kB / 420.3 MB, free: 19.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.667e-05/0.2287, allocations: 44 kB / 420.4 MB, free: 19.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.2288, allocations: 87.97 kB / 420.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.229, allocations: 163.5 kB / 420.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.2292, allocations: 262.6 kB / 420.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004525/0.2297, allocations: 0.6385 MB / 421.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2297, allocations: 0 / 421.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2297, allocations: 0 / 421.5 MB, free: 17.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.2297, allocations: 4 kB / 421.5 MB, free: 17.99 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001935/0.2316, allocations: 1.001 MB / 422.5 MB, free: 16.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2317, allocations: 15.89 kB / 422.5 MB, free: 16.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.935e-05/0.2318, allocations: 56.28 kB / 422.6 MB, free: 16.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.2323, allocations: 494.3 kB / 423.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002183/0.2325, allocations: 69.06 kB / 423.1 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.2326, allocations: 27.94 kB / 423.1 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/0.2332, allocations: 409.5 kB / 423.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.2332, allocations: 0 / 423.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.477e-05/0.2333, allocations: 15.94 kB / 423.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2333, allocations: 8 kB / 423.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004668/0.2337, allocations: 266 kB / 423.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.2356, allocations: 1.515 MB / 425.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.2362, allocations: 315.5 kB / 425.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.2364, allocations: 120.8 kB / 425.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.085e-05/0.2365, allocations: 7.984 kB / 425.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.2365, allocations: 34.56 kB / 425.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.322e-06/0.2365, allocations: 0 / 425.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008053/0.2373, allocations: 345.1 kB / 426.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.2374, allocations: 209.6 kB / 426.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005269/0.2379, allocations: 0.5721 MB / 426.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.238, allocations: 33.7 kB / 427 MB, free: 12.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.2381, allocations: 267.7 kB / 427.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.2381, allocations: 43.34 kB / 427.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.259e-05/0.2382, allocations: 49.7 kB / 427.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.2383, allocations: 354.8 kB / 427.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.2386, allocations: 107.8 kB / 427.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002903/0.2389, allocations: 236 kB / 428 MB, free: 11.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004059/0.2393, allocations: 224.1 kB / 428.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2393, allocations: 0 / 428.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005911/0.2399, allocations: 313.2 kB / 428.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2399, allocations: 10.38 kB / 428.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2399, allocations: 11.88 kB / 428.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.24, allocations: 4 kB / 428.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.2402, allocations: 47.95 kB / 428.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2402, allocations: 7.938 kB / 428.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005607/0.2408, allocations: 115.6 kB / 428.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.2408, allocations: 11.98 kB / 428.7 MB, free: 10.32 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.0001567/0.241, allocations: 181.8 kB / 428.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.399e-05/0.241, allocations: 43.53 kB / 428.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006307/0.2417, allocations: 281.2 kB / 429.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2417, allocations: 4 kB / 429.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2417, allocations: 4.125 kB / 429.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2417, allocations: 0 / 429.2 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009928/0.2427, allocations: 0.7798 MB / 430 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2427, allocations: 96 / 430 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.2429, allocations: 39.84 kB / 430 MB, free: 8.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2429, allocations: 8.031 kB / 430.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2429, allocations: 7.984 kB / 430.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.243, allocations: 0 / 430.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.243, allocations: 4 kB / 430.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007975/0.2438, allocations: 491.6 kB / 430.5 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.2439, allocations: 156.5 kB / 430.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.497e-05/0.244, allocations: 8 kB / 430.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.2446, allocations: 99.92 kB / 430.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000304/0.2449, allocations: 131.7 kB / 430.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.245, allocations: 8 kB / 430.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003814/0.2453, allocations: 427.1 kB / 431.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2454, allocations: 0 / 431.4 MB, free: 7.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003904/0.2457, allocations: 103.8 kB / 431.5 MB, free: 7.469 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * 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.0007728/0.2465, allocations: 360.5 kB / 431.8 MB, free: 7.242 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006063/0.2472, allocations: 259.6 kB / 432.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.2472, allocations: 0 / 432.1 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.2475, allocations: 152.6 kB / 432.2 MB, free: 6.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005763/0.2481, allocations: 128.9 kB / 432.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.2496, allocations: 0.863 MB / 433.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.2498, allocations: 0.823 MB / 434 MB, free: 4.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.2499, allocations: 51.42 kB / 434.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2499, allocations: 0 / 434.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of Templates: time 0.008532/0.2585, allocations: 6.854 MB / 440.9 MB, free: 14.11 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)