Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 119.3 kB / 17.13 MB, free: 5.906 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.001114/0.001115, allocations: 197.1 kB / 18.06 MB, free: 4.988 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.299/1.299, allocations: 222.9 MB / 241.8 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04788/0.04788, allocations: 8.107 MB / 300 MB, free: 6.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 67.89 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09367, allocations: 51.51 MB / 466.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006677/0.1004, allocations: 4.808 MB / 471.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003181/0.1036, allocations: 1.612 MB / 473.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006715/0.1043, allocations: 15.94 kB / 473.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.1058, allocations: 0.7669 MB / 473.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001451/0.1074, allocations: 0.6419 MB / 474.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002575/0.1099, allocations: 1.16 MB / 475.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.112, allocations: 1.258 MB / 476.9 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007161/0.1127, allocations: 402.2 kB / 477.3 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00098/0.1137, allocations: 0.5881 MB / 477.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.1152, allocations: 0.9116 MB / 478.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003821/0.1156, allocations: 128 kB / 478.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.1166, allocations: 351.8 kB / 479.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009548/0.1176, allocations: 0.97 MB / 480.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001695/0.1193, allocations: 1.204 MB / 481.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004031/0.1233, allocations: 3.338 MB / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.1234, allocations: 4 kB / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1234, allocations: 0 / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.1235, allocations: 0 / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.00904/0.1325, allocations: 3.414 MB / 488.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.1326, allocations: 11.89 kB / 488.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008261/0.1334, allocations: 289.3 kB / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003382/0.1368, allocations: 2.179 MB / 490.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.1371, allocations: 224.1 kB / 490.9 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/0.1372, allocations: 72.36 kB / 491 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.139, allocations: 0.9964 MB / 492 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.139, allocations: 4 kB / 492 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.888e-05/0.1391, allocations: 28 kB / 492 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.1392, allocations: 16 kB / 492 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.1405, allocations: 0.6961 MB / 492.7 MB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00877/0.1493, allocations: 4.808 MB / 497.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/0.1521, allocations: 1.363 MB / 498.9 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.1532, allocations: 0.5207 MB / 499.4 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001658/0.1534, allocations: 93.66 kB / 499.5 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.36e-05/0.1535, allocations: 51.06 kB / 499.6 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.795e-06/0.1535, allocations: 4 kB / 499.6 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004825/0.1583, allocations: 1.657 MB / 0.4895 GB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002743/0.1586, allocations: 0.5974 MB / 0.49 GB, free: 14.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008618/0.1672, allocations: 4.881 MB / 0.4948 GB, free: 9.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001819/0.1674, allocations: 45.7 kB / 0.4949 GB, free: 9.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.1687, allocations: 1.124 MB / 0.496 GB, free: 8.145 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000306/0.169, allocations: 220.8 kB / 0.4962 GB, free: 7.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/0.1693, allocations: 118.3 kB / 0.4963 GB, free: 7.805 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1695, allocations: 333.9 kB / 0.4966 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007865/0.1703, allocations: 317.2 kB / 0.4969 GB, free: 7.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.1713, allocations: 0.5545 MB / 0.4974 GB, free: 6.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005835/0.1772, allocations: 1.677 MB / 0.4991 GB, free: 4.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.1772, allocations: 4 kB / 0.4991 GB, free: 4.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003544/0.1808, allocations: 1.24 MB / 0.5003 GB, free: 3.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.1808, allocations: 4 kB / 0.5003 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.1808, allocations: 4 kB / 0.5003 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.182, allocations: 256.5 kB / 0.5005 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000706/0.1827, allocations: 171.8 kB / 0.5007 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003769/0.1865, allocations: 2.698 MB / 0.5033 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.1879, allocations: 111.4 kB / 0.5035 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.382e-05/0.188, allocations: 20 kB / 0.5035 GB, free: 172 kB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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: 8 * 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 (67): * Single equations (assignments): 66 * 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 {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.1989/0.3869, allocations: 0.9382 MB / 0.5044 GB, free: 43.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007754/0.3877, allocations: 259 kB / 0.5046 GB, free: 43.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003174/0.3909, allocations: 1.259 MB / 0.5059 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3909, allocations: 7.984 kB / 0.5059 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3909, allocations: 5.469 kB / 0.5059 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.391, allocations: 3.281 kB / 0.5059 GB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00632/0.3973, allocations: 3.375 MB / 0.5092 GB, free: 42.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.3973, allocations: 1.125 kB / 0.5092 GB, free: 42.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006376/0.398, allocations: 142.3 kB / 0.5093 GB, free: 42.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.3991, allocations: 256.2 kB / 0.5096 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/0.3991, allocations: 14.47 kB / 0.5096 GB, free: 42.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003187/0.4023, allocations: 2.669 MB / 0.5122 GB, free: 40.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4024, allocations: 5.031 kB / 0.5122 GB, free: 40.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003967/0.4063, allocations: 1.683 MB / 0.5138 GB, free: 39.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/0.4075, allocations: 0.5275 MB / 0.5143 GB, free: 39.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.4079, allocations: 20.33 kB / 0.5144 GB, free: 39.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008598/0.4087, allocations: 81.84 kB / 0.5144 GB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002761/0.409, allocations: 80.69 kB / 0.5145 GB, free: 39.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.862e-05/0.4091, allocations: 18.75 kB / 0.5145 GB, free: 39.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005865/0.415, allocations: 3.515 MB / 0.518 GB, free: 38.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.415, allocations: 3.281 kB / 0.518 GB, free: 38.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00181/0.4168, allocations: 357.7 kB / 0.5183 GB, free: 38.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.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 (55): * Single equations (assignments): 54 * 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 {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007878/0.4176, allocations: 287.6 kB / 0.5186 GB, free: 37.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00228/0.4199, allocations: 0.9775 MB / 0.5195 GB, free: 37.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.4199, allocations: 2.141 kB / 0.5195 GB, free: 37.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.4213, allocations: 0.6257 MB / 0.5202 GB, free: 37.26 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001682/0.423, allocations: 215.8 kB / 0.5204 GB, free: 37.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008553/0.4315, allocations: 5.348 MB / 0.5256 GB, free: 34.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.4328, allocations: 1.819 MB / 0.5274 GB, free: 33.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006834/0.4335, allocations: 136.6 kB / 0.5275 GB, free: 33.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4335, allocations: 0 / 0.5275 GB, free: 33.82 MB / 382.1 MB Notification: Performance of Templates: time 0.04474/0.4782, allocations: 39.24 MB / 0.5658 GB, free: 10.68 MB / 398.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)