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.001178/0.001178, allocations: 113.7 kB / 17.13 MB, free: 5.965 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.001036/0.001036, allocations: 190.3 kB / 18.06 MB, free: 5.043 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.287/1.287, allocations: 222.9 MB / 241.8 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04344/0.04344, allocations: 8.09 MB / 300 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 67.89 kB / 415.2 MB, free: 21.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08157/0.08275, allocations: 51.51 MB / 466.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005717/0.0885, allocations: 4.804 MB / 471.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002583/0.09111, allocations: 1.608 MB / 473.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003545/0.09148, allocations: 15.94 kB / 473.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001098/0.09259, allocations: 0.7669 MB / 473.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008571/0.09347, allocations: 0.638 MB / 474.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.09549, allocations: 1.16 MB / 475.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00125/0.09675, allocations: 1.269 MB / 476.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005122/0.09728, allocations: 402.2 kB / 477.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005071/0.09779, allocations: 0.5881 MB / 477.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009415/0.09874, allocations: 0.9077 MB / 478.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001789/0.09893, allocations: 128 kB / 479 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005864/0.09952, allocations: 347.8 kB / 479.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006253/0.1002, allocations: 0.9739 MB / 480.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008551/0.101, allocations: 1.2 MB / 481.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002658/0.1037, allocations: 3.341 MB / 484.8 MB, free: 56 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1037, allocations: 4 kB / 484.8 MB, free: 52 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1037, allocations: 0 / 484.8 MB, free: 52 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.265e-05/0.1038, allocations: 0 / 484.8 MB, free: 52 kB / 350.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.006379/0.1101, allocations: 3.41 MB / 488.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.1102, allocations: 8.031 kB / 488.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003701/0.1106, allocations: 289.3 kB / 488.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00265/0.1132, allocations: 2.179 MB / 490.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/0.1134, allocations: 224.1 kB / 490.9 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/0.1135, allocations: 64.38 kB / 491 MB, free: 9.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/0.1153, allocations: 1 MB / 492 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1153, allocations: 0 / 492 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.1154, allocations: 31.98 kB / 492 MB, free: 8.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1154, allocations: 16 kB / 492 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.1169, allocations: 0.6884 MB / 492.7 MB, free: 7.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006696/0.1236, allocations: 4.815 MB / 497.5 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.1259, allocations: 1.369 MB / 498.9 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.127, allocations: 0.5182 MB / 499.4 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001437/0.1271, allocations: 101.6 kB / 499.5 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.1272, allocations: 47.06 kB / 499.6 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.355e-06/0.1272, allocations: 0 / 499.6 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004579/0.1318, allocations: 1.661 MB / 0.4895 GB, free: 15.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002396/0.132, allocations: 0.5935 MB / 0.49 GB, free: 14.33 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005592/0.1376, allocations: 4.881 MB / 0.4948 GB, free: 9.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.351e-05/0.1377, allocations: 45.7 kB / 0.4949 GB, free: 9.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.1388, allocations: 1.124 MB / 0.496 GB, free: 8.258 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.1389, allocations: 224.7 kB / 0.4962 GB, free: 8.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002065/0.1392, allocations: 122.3 kB / 0.4963 GB, free: 7.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1393, allocations: 333.9 kB / 0.4966 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007266/0.14, allocations: 317.2 kB / 0.4969 GB, free: 7.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008995/0.1409, allocations: 0.5584 MB / 0.4975 GB, free: 6.621 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005721/0.1466, allocations: 1.669 MB / 0.4991 GB, free: 4.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.1467, allocations: 0 / 0.4991 GB, free: 4.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002974/0.1496, allocations: 1.24 MB / 0.5003 GB, free: 3.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.1497, allocations: 4 kB / 0.5003 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.1497, allocations: 0 / 0.5003 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.1509, allocations: 260.5 kB / 0.5005 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/0.1516, allocations: 171.8 kB / 0.5007 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.1551, allocations: 2.694 MB / 0.5033 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009588/0.1561, allocations: 111.4 kB / 0.5034 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.1561, allocations: 20 kB / 0.5035 GB, free: 292 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.1726/0.3288, allocations: 0.9417 MB / 0.5044 GB, free: 43.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005799/0.3294, allocations: 259.7 kB / 0.5046 GB, free: 43.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002954/0.3323, allocations: 1.259 MB / 0.5059 GB, free: 43.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3323, allocations: 7.875 kB / 0.5059 GB, free: 43.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.3323, allocations: 3.781 kB / 0.5059 GB, free: 43.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3324, allocations: 6.797 kB / 0.5059 GB, free: 43.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/0.3376, allocations: 3.371 MB / 0.5092 GB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3376, allocations: 2.859 kB / 0.5092 GB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006327/0.3382, allocations: 149.6 kB / 0.5093 GB, free: 42.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.3394, allocations: 255 kB / 0.5096 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.189e-05/0.3394, allocations: 16.52 kB / 0.5096 GB, free: 42.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002724/0.3421, allocations: 2.656 MB / 0.5122 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3422, allocations: 3.953 kB / 0.5122 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.3455, allocations: 1.689 MB / 0.5138 GB, free: 40.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/0.3462, allocations: 0.524 MB / 0.5143 GB, free: 39.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.3464, allocations: 19.92 kB / 0.5144 GB, free: 39.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008159/0.3472, allocations: 80.42 kB / 0.5144 GB, free: 39.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.3474, allocations: 76.83 kB / 0.5145 GB, free: 39.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.981e-05/0.3475, allocations: 21.14 kB / 0.5145 GB, free: 39.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004397/0.3519, allocations: 3.515 MB / 0.518 GB, free: 38.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3519, allocations: 0 / 0.518 GB, free: 38.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009524/0.3529, allocations: 358.7 kB / 0.5183 GB, free: 38.55 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.0006045/0.3535, allocations: 301.4 kB / 0.5186 GB, free: 38.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002035/0.3555, allocations: 0.9786 MB / 0.5195 GB, free: 38.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3555, allocations: 2.797 kB / 0.5195 GB, free: 38.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.3567, allocations: 0.6271 MB / 0.5202 GB, free: 37.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.3578, allocations: 209.4 kB / 0.5204 GB, free: 37.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006906/0.3647, allocations: 5.345 MB / 0.5256 GB, free: 35.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001088/0.3658, allocations: 1.822 MB / 0.5274 GB, free: 34.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004022/0.3662, allocations: 133 kB / 0.5275 GB, free: 34.43 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.3662, allocations: 0 / 0.5275 GB, free: 34.43 MB / 382.1 MB Notification: Performance of Templates: time 0.03746/0.4037, allocations: 38.89 MB / 0.5655 GB, free: 11.67 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)