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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008973/0.0008971, allocations: 177.9 kB / 8.044 MB, free: 1.016 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 221.5 MB / 230 MB, free: 3.18 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 93.34 kB / 280.9 MB, free: 1.156 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04576/0.04576, allocations: 8.083 MB / 339.7 MB, free: 6.246 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.678e-05/1.679e-05, allocations: 7.984 kB / 398.5 MB, free: 67.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09785, allocations: 52.52 MB / 451 MB, free: 15.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3493/0.4472, allocations: 83.51 MB / 0.522 GB, free: 10.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.4475, allocations: 65.97 kB / 0.522 GB, free: 10.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03493/0.4824, allocations: 14.58 MB / 0.5363 GB, free: 14.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4825, allocations: 4 kB / 0.5363 GB, free: 14.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.917e-05/0.4825, allocations: 12 kB / 0.5363 GB, free: 14.47 MB / 362.7 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.002095/0.4846, allocations: 1.078 MB / 0.5374 GB, free: 13.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.4847, allocations: 15.97 kB / 0.5374 GB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001754/0.4849, allocations: 106.7 kB / 0.5375 GB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.4861, allocations: 0.8484 MB / 0.5383 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.353e-05/0.4862, allocations: 67.97 kB / 0.5384 GB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.884e-05/0.4862, allocations: 15.95 kB / 0.5384 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004269/0.4866, allocations: 276.3 kB / 0.5386 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005496/0.4872, allocations: 375.9 kB / 0.539 GB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.4872, allocations: 0 / 0.539 GB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.4873, allocations: 0 / 0.539 GB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.4873, allocations: 8 kB / 0.539 GB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003217/0.4905, allocations: 2.192 MB / 0.5411 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006643/0.4912, allocations: 394.5 kB / 0.5415 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.4915, allocations: 180.6 kB / 0.5417 GB, free: 9.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.122e-05/0.4916, allocations: 10.3 kB / 0.5417 GB, free: 9.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.4916, allocations: 38.05 kB / 0.5417 GB, free: 9.875 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.174e-06/0.4916, allocations: 0 / 0.5417 GB, free: 9.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001112/0.4927, allocations: 468.9 kB / 0.5422 GB, free: 9.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.4929, allocations: 235.3 kB / 0.5424 GB, free: 9.234 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.4947, allocations: 1.527 MB / 0.5439 GB, free: 8.102 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.411e-05/0.4948, allocations: 25.7 kB / 0.5439 GB, free: 8.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003461/0.4951, allocations: 442.5 kB / 0.5444 GB, free: 7.852 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.522e-05/0.4952, allocations: 90.91 kB / 0.5444 GB, free: 7.773 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.735e-05/0.4952, allocations: 0 / 0.5444 GB, free: 7.773 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4953, allocations: 316.8 kB / 0.5447 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.4955, allocations: 115.6 kB / 0.5449 GB, free: 7.402 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.4958, allocations: 196 kB / 0.545 GB, free: 7.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003193/0.4961, allocations: 139.1 kB / 0.5452 GB, free: 7.156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4961, allocations: 0 / 0.5452 GB, free: 7.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0011/0.4972, allocations: 0.5162 MB / 0.5457 GB, free: 6.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.4973, allocations: 4 kB / 0.5457 GB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.4973, allocations: 3.984 kB / 0.5457 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006111/0.4979, allocations: 139.4 kB / 0.5458 GB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.4982, allocations: 71.83 kB / 0.5459 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.5002, allocations: 1.819 MB / 0.5477 GB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.5006, allocations: 43.75 kB / 0.5477 GB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.5007, allocations: 10.69 kB / 0.5477 GB, free: 4.91 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001726/0.5008, allocations: 108.9 kB / 0.5478 GB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.501, allocations: 102.8 kB / 0.5479 GB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.5021, allocations: 0.5179 MB / 0.5484 GB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.5021, allocations: 4 kB / 0.5484 GB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.5021, allocations: 3.953 kB / 0.5484 GB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.5021, allocations: 3.984 kB / 0.5484 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.5043, allocations: 1.49 MB / 0.5499 GB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.5043, allocations: 4 kB / 0.5499 GB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/0.5046, allocations: 59.89 kB / 0.5499 GB, free: 3.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005561/0.5052, allocations: 137.2 kB / 0.5501 GB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.5052, allocations: 7.953 kB / 0.5501 GB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/0.5071, allocations: 1.821 MB / 0.5519 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5071, allocations: 0 / 0.5519 GB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.5084, allocations: 0.734 MB / 0.5526 GB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003311/0.5087, allocations: 274.1 kB / 0.5528 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.692e-05/0.5088, allocations: 7.953 kB / 0.5528 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.5092, allocations: 44.02 kB / 0.5529 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.5093, allocations: 31.02 kB / 0.5529 GB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.5093, allocations: 11.94 kB / 0.5529 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001422/0.5108, allocations: 1.178 MB / 0.5541 GB, free: 15.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5108, allocations: 0 / 0.5541 GB, free: 15.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005936/0.5114, allocations: 151.8 kB / 0.5542 GB, free: 15.54 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006367/0.512, allocations: 243 kB / 0.5545 GB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000837/0.5129, allocations: 439 kB / 0.5549 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.5129, allocations: 0 / 0.5549 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000494/0.5134, allocations: 295.8 kB / 0.5552 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004561/0.5138, allocations: 75.12 kB / 0.5552 GB, free: 14.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.5164, allocations: 1.512 MB / 0.5567 GB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007151/0.5171, allocations: 1.091 MB / 0.5578 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003369/0.5175, allocations: 145.1 kB / 0.5579 GB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.5177, allocations: 59.42 kB / 0.558 GB, free: 12.13 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5177, allocations: 0 / 0.558 GB, free: 12.13 MB / 378.7 MB Notification: Performance of Templates: time 0.01701/0.5347, allocations: 8.982 MB / 0.5667 GB, free: 3.164 MB / 378.7 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)