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.003754/0.003753, allocations: 88.47 kB / 15.91 MB, free: 6.301 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.0009122/0.0009123, allocations: 199.3 kB / 16.83 MB, free: 6.234 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.194/1.194, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1468/0.1468, allocations: 8.087 MB / 298.7 MB, free: 2.047 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 59.91 kB / 361 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09336, allocations: 51.53 MB / 412.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004019/0.09742, allocations: 3.174 MB / 415.7 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001559/0.09901, allocations: 1.152 MB / 416.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.09915, allocations: 12 kB / 416.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006868/0.09985, allocations: 415.1 kB / 417.3 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.1002, allocations: 247.1 kB / 417.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001456/0.1017, allocations: 0.9499 MB / 418.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.1022, allocations: 0.4905 MB / 419 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.1024, allocations: 140.5 kB / 419.1 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.1025, allocations: 207.3 kB / 419.3 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.1029, allocations: 354.9 kB / 419.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.593e-05/0.1029, allocations: 28 kB / 419.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.1034, allocations: 247.8 kB / 419.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.1036, allocations: 331.1 kB / 420.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002852/0.1039, allocations: 413.3 kB / 420.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009506/0.1048, allocations: 1.289 MB / 422 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1049, allocations: 0 / 422 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1049, allocations: 0 / 422 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.1049, allocations: 0 / 422 MB, free: 0.6953 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.002897/0.1078, allocations: 1.556 MB / 423.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.1078, allocations: 8.031 kB / 423.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.108, allocations: 107.6 kB / 423.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009874/0.109, allocations: 0.868 MB / 424.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.823e-05/0.1091, allocations: 80.53 kB / 424.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.1091, allocations: 36.31 kB / 424.6 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007107/0.1098, allocations: 449 kB / 425 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1099, allocations: 4 kB / 425 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.646e-05/0.1099, allocations: 12 kB / 425.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1099, allocations: 8 kB / 425.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005594/0.1105, allocations: 314.1 kB / 425.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002734/0.1132, allocations: 2.143 MB / 427.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009298/0.1142, allocations: 468.4 kB / 428 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003957/0.1146, allocations: 213.2 kB / 428.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.1147, allocations: 97.25 kB / 428.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.1148, allocations: 46.73 kB / 428.3 MB, free: 10 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.1148, allocations: 0 / 428.3 MB, free: 10 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002129/0.1169, allocations: 0.8168 MB / 429.1 MB, free: 9.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.117, allocations: 235.3 kB / 429.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.1187, allocations: 1.741 MB / 431.1 MB, free: 7.109 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.1188, allocations: 33.7 kB / 431.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.1191, allocations: 436.7 kB / 431.6 MB, free: 6.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.165e-05/0.1192, allocations: 102.6 kB / 431.7 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.1193, allocations: 73.34 kB / 431.7 MB, free: 6.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.698e-05/0.1194, allocations: 314 kB / 432.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.1197, allocations: 159.9 kB / 432.2 MB, free: 5.992 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.1201, allocations: 246.2 kB / 432.4 MB, free: 5.719 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003405/0.1235, allocations: 0.9456 MB / 433.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1235, allocations: 0 / 433.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00131/0.1248, allocations: 0.5985 MB / 434 MB, free: 4.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1248, allocations: 8 kB / 434 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1248, allocations: 0 / 434 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006504/0.1255, allocations: 144.7 kB / 434.1 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.1258, allocations: 71.89 kB / 434.2 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.128, allocations: 1.896 MB / 436.1 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004178/0.1284, allocations: 43.72 kB / 436.1 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.1284, allocations: 12 kB / 436.2 MB, free: 1.848 MB / 366.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: 4 * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000466/0.1289, allocations: 409.5 kB / 436.6 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.129, allocations: 94.78 kB / 436.7 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.1303, allocations: 0.5935 MB / 437.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1303, allocations: 0 / 437.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.1303, allocations: 8.062 kB / 437.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1303, allocations: 0 / 437.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1462/0.2765, allocations: 1.465 MB / 438.7 MB, free: 56.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2765, allocations: 5.719 kB / 438.7 MB, free: 56.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.2767, allocations: 54.08 kB / 438.8 MB, free: 56.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000584/0.2773, allocations: 152.2 kB / 438.9 MB, free: 56.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.2774, allocations: 10.36 kB / 438.9 MB, free: 56.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.279, allocations: 1.861 MB / 440.8 MB, free: 55.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.279, allocations: 0 / 440.8 MB, free: 55.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.2805, allocations: 0.835 MB / 441.6 MB, free: 55.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.2807, allocations: 244.8 kB / 441.9 MB, free: 55.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.83e-05/0.2808, allocations: 8.406 kB / 441.9 MB, free: 55.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003388/0.2811, allocations: 34.55 kB / 441.9 MB, free: 55.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.2812, allocations: 30.48 kB / 441.9 MB, free: 55.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.2813, allocations: 11.2 kB / 442 MB, free: 55.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001201/0.2825, allocations: 1.259 MB / 443.2 MB, free: 55.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2825, allocations: 0 / 443.2 MB, free: 55.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004798/0.283, allocations: 153.9 kB / 443.4 MB, free: 55.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005282/0.2835, allocations: 283.5 kB / 443.6 MB, free: 55.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009225/0.2844, allocations: 0.5145 MB / 444.2 MB, free: 54.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2844, allocations: 0 / 444.2 MB, free: 54.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005435/0.285, allocations: 341.6 kB / 444.5 MB, free: 54.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.2855, allocations: 90.58 kB / 444.6 MB, free: 54.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.2879, allocations: 2.146 MB / 446.7 MB, free: 53.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.2883, allocations: 1.073 MB / 447.8 MB, free: 53.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.2885, allocations: 133.3 kB / 447.9 MB, free: 53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.2887, allocations: 55.94 kB / 448 MB, free: 52.99 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2887, allocations: 0 / 448 MB, free: 52.99 MB / 366.1 MB Notification: Performance of Templates: time 0.01318/0.3019, allocations: 10.44 MB / 458.4 MB, free: 52.29 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (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)