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/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.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.001008/0.001008, allocations: 104.5 kB / 16.45 MB, free: 6.441 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.0009845/0.0009845, allocations: 188.9 kB / 17.39 MB, free: 5.691 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.379/1.379, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05679/0.05679, allocations: 8.095 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 414.5 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1244, allocations: 51.51 MB / 466 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.00624/0.1306, allocations: 4.8 MB / 470.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.1338, allocations: 1.612 MB / 472.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003729/0.1342, allocations: 12 kB / 472.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.1358, allocations: 0.7746 MB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001149/0.1371, allocations: 0.6498 MB / 473.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.1394, allocations: 1.156 MB / 475 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.1408, allocations: 1.266 MB / 476.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005668/0.1414, allocations: 410.2 kB / 476.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005555/0.1419, allocations: 0.5803 MB / 477.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009634/0.1429, allocations: 0.9116 MB / 478.2 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001679/0.1431, allocations: 128 kB / 478.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008029/0.1439, allocations: 351.8 kB / 478.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007771/0.1447, allocations: 0.97 MB / 479.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.1457, allocations: 1.2 MB / 480.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003035/0.1487, allocations: 3.338 MB / 484.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.1488, allocations: 4 kB / 484.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1488, allocations: 0 / 484.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.328e-05/0.1488, allocations: 0 / 484.1 MB, free: 15.93 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.006577/0.1554, allocations: 3.403 MB / 487.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.1554, allocations: 12.02 kB / 487.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004089/0.1559, allocations: 297.3 kB / 487.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003186/0.1591, allocations: 2.179 MB / 490 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.1593, allocations: 224.1 kB / 490.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1594, allocations: 60.38 kB / 490.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.1613, allocations: 1.004 MB / 491.3 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.1614, allocations: 0 / 491.3 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.609e-05/0.1614, allocations: 31.98 kB / 491.3 MB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.1615, allocations: 20 kB / 491.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.1629, allocations: 0.6884 MB / 492 MB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007026/0.1699, allocations: 4.804 MB / 496.8 MB, free: 2.828 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.1723, allocations: 1.377 MB / 498.2 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001/0.1733, allocations: 0.5143 MB / 498.7 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001564/0.1735, allocations: 97.59 kB / 498.8 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.1735, allocations: 51.06 kB / 498.9 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.304e-06/0.1735, allocations: 4 kB / 498.9 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.00451/0.178, allocations: 1.649 MB / 0.4888 GB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002774/0.1783, allocations: 0.5935 MB / 0.4894 GB, free: 14.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00591/0.1843, allocations: 4.893 MB / 0.4942 GB, free: 9.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/0.1843, allocations: 41.7 kB / 0.4942 GB, free: 9.273 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.1854, allocations: 1.131 MB / 0.4953 GB, free: 8.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.1856, allocations: 220.8 kB / 0.4955 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002156/0.1858, allocations: 114.3 kB / 0.4956 GB, free: 7.801 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.186, allocations: 337.9 kB / 0.496 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007133/0.1867, allocations: 317.2 kB / 0.4963 GB, free: 7.156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009402/0.1876, allocations: 0.5506 MB / 0.4968 GB, free: 6.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005685/0.1933, allocations: 1.677 MB / 0.4984 GB, free: 4.816 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1934, allocations: 0 / 0.4984 GB, free: 4.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003256/0.1966, allocations: 1.229 MB / 0.4996 GB, free: 3.574 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.378e-05/0.1967, allocations: 19.92 kB / 0.4996 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.1967, allocations: 0 / 0.4996 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.1978, allocations: 264.5 kB / 0.4999 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006907/0.1985, allocations: 159.8 kB / 0.5001 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/0.2023, allocations: 2.705 MB / 0.5027 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001315/0.2036, allocations: 107.4 kB / 0.5028 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.627e-05/0.2037, allocations: 27.98 kB / 0.5028 GB, free: 168 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.2268/0.4305, allocations: 0.9376 MB / 0.5037 GB, free: 43.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007313/0.4312, allocations: 259.6 kB / 0.504 GB, free: 43.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003157/0.4344, allocations: 1.257 MB / 0.5052 GB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.4344, allocations: 7.531 kB / 0.5052 GB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4344, allocations: 2.625 kB / 0.5052 GB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.4344, allocations: 4.516 kB / 0.5052 GB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006075/0.4405, allocations: 3.376 MB / 0.5085 GB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4405, allocations: 4.547 kB / 0.5085 GB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006651/0.4412, allocations: 146.7 kB / 0.5087 GB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.4423, allocations: 250.9 kB / 0.5089 GB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.402e-05/0.4424, allocations: 13.48 kB / 0.5089 GB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002952/0.4453, allocations: 2.669 MB / 0.5115 GB, free: 40.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4454, allocations: 0 / 0.5115 GB, free: 40.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003957/0.4493, allocations: 1.69 MB / 0.5132 GB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.4504, allocations: 0.5266 MB / 0.5137 GB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000254/0.4506, allocations: 16.8 kB / 0.5137 GB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008088/0.4514, allocations: 80.17 kB / 0.5138 GB, free: 39.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.4516, allocations: 79.89 kB / 0.5139 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.4517, allocations: 18.97 kB / 0.5139 GB, free: 39.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005426/0.4571, allocations: 3.516 MB / 0.5173 GB, free: 38.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4572, allocations: 0 / 0.5173 GB, free: 38.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001343/0.4585, allocations: 353.7 kB / 0.5177 GB, free: 38.08 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.000723/0.4592, allocations: 293.7 kB / 0.5179 GB, free: 37.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002219/0.4615, allocations: 0.9784 MB / 0.5189 GB, free: 37.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.4615, allocations: 1.609 kB / 0.5189 GB, free: 37.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.4628, allocations: 0.6334 MB / 0.5195 GB, free: 37.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.4641, allocations: 209.1 kB / 0.5197 GB, free: 37.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007661/0.4717, allocations: 5.174 MB / 0.5248 GB, free: 35.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.473, allocations: 1.816 MB / 0.5265 GB, free: 34.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007054/0.4737, allocations: 368.4 kB / 0.5269 GB, free: 33.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003334/0.474, allocations: 127.1 kB / 0.527 GB, free: 33.68 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.474, allocations: 0 / 0.527 GB, free: 33.68 MB / 382.1 MB Notification: Performance of Templates: time 0.03388/0.5079, allocations: 24.2 MB / 0.5506 GB, free: 9.648 MB / 382.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)