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.00151/0.00151, allocations: 107.4 kB / 16.45 MB, free: 6.43 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.002499/0.002499, allocations: 188.4 kB / 17.38 MB, free: 5.688 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.384/1.384, 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.04425/0.04425, allocations: 8.099 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 63.89 kB / 414.5 MB, free: 21.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09814/0.09925, allocations: 51.51 MB / 466 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005666/0.105, allocations: 4.796 MB / 470.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1074, allocations: 1.619 MB / 472.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003224/0.1077, allocations: 12 kB / 472.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.109, allocations: 0.7591 MB / 473.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009371/0.11, allocations: 0.6536 MB / 473.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.112, allocations: 1.144 MB / 475 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00131/0.1133, allocations: 1.262 MB / 476.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005201/0.1138, allocations: 414.2 kB / 476.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005441/0.1144, allocations: 0.5881 MB / 477.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00089/0.1153, allocations: 0.9077 MB / 478.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001648/0.1155, allocations: 128 kB / 478.3 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006144/0.1161, allocations: 359.7 kB / 478.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007002/0.1168, allocations: 0.9739 MB / 479.6 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009993/0.1178, allocations: 1.196 MB / 480.8 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.1208, allocations: 3.359 MB / 484.2 MB, free: 24 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1208, allocations: 0 / 484.2 MB, free: 24 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1208, allocations: 0 / 484.2 MB, free: 24 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.269e-05/0.1209, allocations: 4 kB / 484.2 MB, free: 20 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.006543/0.1274, allocations: 3.499 MB / 487.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.1275, allocations: 8.031 kB / 487.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003587/0.1279, allocations: 310.9 kB / 488 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/0.1305, allocations: 2.205 MB / 490.2 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.1307, allocations: 224.1 kB / 490.4 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.1308, allocations: 64.38 kB / 490.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.1325, allocations: 1.004 MB / 491.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1325, allocations: 0 / 491.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-05/0.1326, allocations: 32 kB / 491.5 MB, free: 8.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.1326, allocations: 19.94 kB / 491.5 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.134, allocations: 0.6806 MB / 492.2 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.1406, allocations: 4.82 MB / 497 MB, free: 2.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.1428, allocations: 1.373 MB / 498.4 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009512/0.1438, allocations: 0.5182 MB / 498.9 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001452/0.1439, allocations: 97.64 kB / 499 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.144, allocations: 51.06 kB / 499 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.144e-06/0.144, allocations: 0 / 499 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004402/0.1484, allocations: 1.67 MB / 0.489 GB, free: 14.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002596/0.1487, allocations: 0.5974 MB / 0.4896 GB, free: 14.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005716/0.1544, allocations: 4.877 MB / 0.4943 GB, free: 9.258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001259/0.1545, allocations: 41.7 kB / 0.4944 GB, free: 9.211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009791/0.1555, allocations: 1.136 MB / 0.4955 GB, free: 8.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.1557, allocations: 222 kB / 0.4957 GB, free: 7.852 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002101/0.1559, allocations: 122.3 kB / 0.4958 GB, free: 7.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1561, allocations: 333.9 kB / 0.4961 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007158/0.1568, allocations: 321.1 kB / 0.4964 GB, free: 7.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008254/0.1576, allocations: 0.5545 MB / 0.497 GB, free: 6.438 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005343/0.163, allocations: 1.673 MB / 0.4986 GB, free: 4.742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.163, allocations: 0 / 0.4986 GB, free: 4.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003108/0.1661, allocations: 1.254 MB / 0.4998 GB, free: 3.477 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1661, allocations: 4 kB / 0.4998 GB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1662, allocations: 4 kB / 0.4998 GB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.1672, allocations: 260.5 kB / 0.5001 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.1679, allocations: 163.8 kB / 0.5002 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003348/0.1712, allocations: 2.703 MB / 0.5029 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.1725, allocations: 115.6 kB / 0.503 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.487e-05/0.1725, allocations: 24 kB / 0.503 GB, free: 76 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.2101/0.3826, allocations: 0.9337 MB / 0.5039 GB, free: 43.24 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006363/0.3833, allocations: 275.2 kB / 0.5042 GB, free: 43.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002911/0.3862, allocations: 1.266 MB / 0.5054 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3862, allocations: 6.062 kB / 0.5054 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3862, allocations: 5.203 kB / 0.5054 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3863, allocations: 3.188 kB / 0.5054 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005606/0.3919, allocations: 3.371 MB / 0.5087 GB, free: 42.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.3919, allocations: 4.656 kB / 0.5087 GB, free: 42.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006244/0.3925, allocations: 140.4 kB / 0.5089 GB, free: 42.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.3937, allocations: 257 kB / 0.5091 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.795e-05/0.3937, allocations: 14.36 kB / 0.5091 GB, free: 42.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/0.3967, allocations: 2.668 MB / 0.5117 GB, free: 40.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3967, allocations: 5.156 kB / 0.5117 GB, free: 40.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003616/0.4003, allocations: 1.702 MB / 0.5134 GB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00091/0.4012, allocations: 0.5401 MB / 0.5139 GB, free: 39.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000217/0.4015, allocations: 14.88 kB / 0.5139 GB, free: 39.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007596/0.4022, allocations: 85.75 kB / 0.514 GB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.4025, allocations: 86.86 kB / 0.5141 GB, free: 39.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.4025, allocations: 18.38 kB / 0.5141 GB, free: 39.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005744/0.4083, allocations: 3.515 MB / 0.5176 GB, free: 38.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4083, allocations: 0 / 0.5176 GB, free: 38.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001186/0.4095, allocations: 361.4 kB / 0.5179 GB, free: 38.05 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.0006759/0.4102, allocations: 289.2 kB / 0.5182 GB, free: 37.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002202/0.4124, allocations: 0.9772 MB / 0.5191 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4124, allocations: 1.297 kB / 0.5191 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.4136, allocations: 0.6381 MB / 0.5198 GB, free: 37.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.4148, allocations: 214.4 kB / 0.52 GB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007493/0.4223, allocations: 5.242 MB / 0.5251 GB, free: 34.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.4235, allocations: 1.828 MB / 0.5269 GB, free: 33.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006486/0.4241, allocations: 352 kB / 0.5272 GB, free: 33.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.4244, allocations: 127.4 kB / 0.5273 GB, free: 33.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4245, allocations: 4 kB / 0.5273 GB, free: 33.46 MB / 382.1 MB Notification: Performance of Templates: time 0.03393/0.4584, allocations: 24.21 MB / 0.551 GB, free: 9.371 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)