Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 100.7 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 175.6 kB / 16.61 MB, free: 6.418 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.497/1.497, allocations: 223.2 MB / 240.6 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2011/0.2011, allocations: 8.084 MB / 299.7 MB, free: 2.859 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004192/0.0004194, allocations: 8 kB / 362.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1213, allocations: 52.52 MB / 415.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003059/0.1244, allocations: 2.574 MB / 417.9 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.1259, allocations: 1.067 MB / 418.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.1261, allocations: 4 kB / 418.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006922/0.1268, allocations: 402.7 kB / 419.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003298/0.1271, allocations: 251.4 kB / 419.6 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.1284, allocations: 0.7748 MB / 420.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004626/0.1288, allocations: 331.3 kB / 420.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.1291, allocations: 123 kB / 420.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.1293, allocations: 191.4 kB / 421 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004144/0.1297, allocations: 283.1 kB / 421.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.962e-05/0.1298, allocations: 20 kB / 421.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000501/0.1303, allocations: 203.8 kB / 421.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002975/0.1306, allocations: 323.2 kB / 421.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.1308, allocations: 185.1 kB / 422 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.1319, allocations: 1.029 MB / 423 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1319, allocations: 0 / 423 MB, free: 1.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1319, allocations: 4 kB / 423 MB, free: 1.008 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.1319, allocations: 0 / 423 MB, free: 1.008 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.2204/0.3524, allocations: 1.395 MB / 424.4 MB, free: 40.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.3524, allocations: 8.906 kB / 424.4 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.3527, allocations: 106.4 kB / 424.5 MB, free: 40.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.354, allocations: 0.8342 MB / 425.3 MB, free: 39.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.976e-05/0.3541, allocations: 80.62 kB / 425.4 MB, free: 39.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.241e-05/0.3541, allocations: 26.62 kB / 425.4 MB, free: 39.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007102/0.3549, allocations: 453.9 kB / 425.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3549, allocations: 2.656 kB / 425.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.03e-05/0.3549, allocations: 13.19 kB / 425.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.3549, allocations: 10.7 kB / 425.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005516/0.3555, allocations: 328.8 kB / 426.2 MB, free: 39.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002908/0.3584, allocations: 2.153 MB / 428.4 MB, free: 39.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008925/0.3593, allocations: 494.8 kB / 428.9 MB, free: 39.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/0.3595, allocations: 90 kB / 429 MB, free: 38.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.3595, allocations: 37.33 kB / 429 MB, free: 38.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.653e-06/0.3595, allocations: 0 / 429 MB, free: 38.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002101/0.3616, allocations: 0.8452 MB / 429.8 MB, free: 38.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.3617, allocations: 237.9 kB / 430.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.3636, allocations: 1.743 MB / 431.8 MB, free: 38.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.3637, allocations: 32.27 kB / 431.8 MB, free: 38.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003285/0.364, allocations: 442.4 kB / 432.3 MB, free: 38.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.328e-05/0.3641, allocations: 95.03 kB / 432.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.3641, allocations: 3.875 kB / 432.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.101e-05/0.3642, allocations: 322.8 kB / 432.7 MB, free: 37.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3645, allocations: 166 kB / 432.8 MB, free: 37.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.3648, allocations: 248.7 kB / 433.1 MB, free: 37.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.3652, allocations: 183.2 kB / 433.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3652, allocations: 0 / 433.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001376/0.3666, allocations: 0.6167 MB / 433.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.3666, allocations: 5.875 kB / 433.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3666, allocations: 5.203 kB / 433.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006849/0.3673, allocations: 144 kB / 434 MB, free: 37.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.3677, allocations: 80.2 kB / 434.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.37, allocations: 1.915 MB / 436 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004817/0.3705, allocations: 56.97 kB / 436.1 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.3705, allocations: 7.219 kB / 436.1 MB, free: 35.72 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005537/0.3711, allocations: 406.8 kB / 436.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.3712, allocations: 99.75 kB / 436.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00125/0.3725, allocations: 0.5977 MB / 437.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3725, allocations: 4.109 kB / 437.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.3725, allocations: 5.531 kB / 437.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3725, allocations: 4 kB / 437.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3746, allocations: 1.486 MB / 438.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3746, allocations: 0 / 438.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002591/0.3749, allocations: 71.16 kB / 438.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005716/0.3755, allocations: 140.5 kB / 438.9 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.3755, allocations: 12.16 kB / 438.9 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.3772, allocations: 1.897 MB / 440.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3773, allocations: 3.031 kB / 440.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.3789, allocations: 0.8456 MB / 441.6 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.3794, allocations: 237.9 kB / 441.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.815e-05/0.3795, allocations: 14.59 kB / 441.9 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003993/0.3799, allocations: 38.7 kB / 441.9 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.38, allocations: 36.31 kB / 442 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.3801, allocations: 10.09 kB / 442 MB, free: 32.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001886/0.382, allocations: 1.265 MB / 443.2 MB, free: 31.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.382, allocations: 3.828 kB / 443.2 MB, free: 31.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007995/0.3828, allocations: 161.8 kB / 443.4 MB, free: 31.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008309/0.3836, allocations: 274 kB / 443.7 MB, free: 31.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3848, allocations: 0.5391 MB / 444.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3848, allocations: 0 / 444.2 MB, free: 31.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000582/0.3854, allocations: 345.4 kB / 444.5 MB, free: 31.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.3859, allocations: 77 kB / 444.6 MB, free: 31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003505/0.3894, allocations: 2.07 MB / 446.7 MB, free: 30.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.39, allocations: 1.092 MB / 447.8 MB, free: 29.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003586/0.3903, allocations: 136.3 kB / 447.9 MB, free: 29.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3905, allocations: 56.7 kB / 448 MB, free: 29.21 MB / 350.1 MB Notification: Performance of SimCode: time 1.433e-06/0.3905, allocations: 0 / 448 MB, free: 29.21 MB / 350.1 MB Notification: Performance of Templates: time 0.0159/0.4064, allocations: 9.898 MB / 457.9 MB, free: 28.53 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile Environment - environmentSimulation: (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) Environment - environmentSimulation: