Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 182 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.4 MB / 235.1 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009203/0.0009203, allocations: 96 kB / 286.1 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.03944/0.03944, allocations: 8.102 MB / 345.1 MB, free: 1.934 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.431e-05/2.435e-05, allocations: 4 kB / 405.5 MB, free: 61.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07636/0.0764, allocations: 52.51 MB / 458 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2853/0.3617, allocations: 85.41 MB / 0.5307 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001683/0.3619, allocations: 67.91 kB / 0.5307 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05733/0.4193, allocations: 23.74 MB / 0.5539 GB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4193, allocations: 0.5625 kB / 0.5539 GB, free: 13.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.618e-05/0.4193, allocations: 20 kB / 0.5539 GB, free: 13.1 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.003055/0.4224, allocations: 1.399 MB / 0.5553 GB, free: 11.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.4224, allocations: 12.03 kB / 0.5553 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/0.4227, allocations: 146.2 kB / 0.5554 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.4242, allocations: 0.978 MB / 0.5564 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.4243, allocations: 186.9 kB / 0.5566 GB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.625e-05/0.4245, allocations: 57.52 kB / 0.5566 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001179/0.4256, allocations: 0.8113 MB / 0.5574 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.4257, allocations: 4 kB / 0.5574 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.509e-05/0.4257, allocations: 26.05 kB / 0.5575 GB, free: 9.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.4258, allocations: 16 kB / 0.5575 GB, free: 9.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009384/0.4267, allocations: 0.6659 MB / 0.5581 GB, free: 9.594 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005605/0.4323, allocations: 4.309 MB / 0.5623 GB, free: 6.195 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.4339, allocations: 1.223 MB / 0.5635 GB, free: 5.312 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007299/0.4347, allocations: 0.5148 MB / 0.564 GB, free: 4.797 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-05/0.4348, allocations: 24.75 kB / 0.564 GB, free: 4.773 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.4348, allocations: 43.34 kB / 0.5641 GB, free: 4.723 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 3.126e-06/0.4348, allocations: 0 / 0.5641 GB, free: 4.723 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.003336/0.4382, allocations: 1.447 MB / 0.5655 GB, free: 3.258 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.4383, allocations: 248.1 kB / 0.5657 GB, free: 2.961 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002165/0.4405, allocations: 1.633 MB / 0.5673 GB, free: 1.312 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.377e-05/0.4406, allocations: 45.64 kB / 0.5674 GB, free: 1.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003823/0.4409, allocations: 498.1 kB / 0.5678 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.4412, allocations: 291.7 kB / 0.5681 GB, free: 496 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.4412, allocations: 12 kB / 0.5681 GB, free: 484 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4413, allocations: 333.9 kB / 0.5685 GB, free: 144 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.4419, allocations: 357.6 kB / 0.5688 GB, free: 15.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005953/0.4425, allocations: 473.1 kB / 0.5692 GB, free: 15.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.4431, allocations: 378.8 kB / 0.5696 GB, free: 14.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4431, allocations: 4 kB / 0.5696 GB, free: 14.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002596/0.4457, allocations: 1.362 MB / 0.5709 GB, free: 13.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.4457, allocations: 4 kB / 0.5709 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.4457, allocations: 4 kB / 0.571 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/0.4484, allocations: 0.7731 MB / 0.5717 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003921/0.4488, allocations: 107.7 kB / 0.5718 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/0.451, allocations: 1.434 MB / 0.5732 GB, free: 11.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007279/0.4518, allocations: 75.64 kB / 0.5733 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.4518, allocations: 27.98 kB / 0.5733 GB, free: 11.09 MB / 394.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.0002358/0.4521, allocations: 148.9 kB / 0.5735 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.4523, allocations: 130.4 kB / 0.5736 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/0.4547, allocations: 1.373 MB / 0.5749 GB, free: 9.422 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.4548, allocations: 8 kB / 0.5749 GB, free: 9.414 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4548, allocations: 3.938 kB / 0.5749 GB, free: 9.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.4548, allocations: 7.969 kB / 0.5749 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005239/0.46, allocations: 3.267 MB / 0.5781 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.4601, allocations: 0 / 0.5781 GB, free: 6.078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.4605, allocations: 99.88 kB / 0.5782 GB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002546/0.463, allocations: 0.7461 MB / 0.5789 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.027e-05/0.4631, allocations: 16 kB / 0.579 GB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002158/0.4653, allocations: 1.428 MB / 0.5804 GB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4653, allocations: 3.984 kB / 0.5804 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003175/0.4685, allocations: 1.957 MB / 0.5823 GB, free: 1.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005753/0.4691, allocations: 303.5 kB / 0.5826 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001561/0.4693, allocations: 20 kB / 0.5826 GB, free: 1.434 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/0.4699, allocations: 60.02 kB / 0.5826 GB, free: 1.375 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.4701, allocations: 72.62 kB / 0.5827 GB, free: 1.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.067e-05/0.4701, allocations: 27.98 kB / 0.5827 GB, free: 1.277 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00184/0.472, allocations: 1.276 MB / 0.584 GB, free: 15.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.472, allocations: 3.938 kB / 0.584 GB, free: 15.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007657/0.4728, allocations: 263.7 kB / 0.5842 GB, free: 15.73 MB / 410.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: 1 (brk1.BrkOpen) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * 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 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006574/0.4734, allocations: 300.6 kB / 0.5845 GB, free: 15.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.4765, allocations: 1.202 MB / 0.5857 GB, free: 14.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4765, allocations: 4.125 kB / 0.5857 GB, free: 14.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002305/0.4788, allocations: 0.804 MB / 0.5865 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/0.4795, allocations: 88.59 kB / 0.5866 GB, free: 13.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/0.4833, allocations: 2.011 MB / 0.5885 GB, free: 11.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007614/0.484, allocations: 1.201 MB / 0.5897 GB, free: 10.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000483/0.4845, allocations: 175.2 kB / 0.5899 GB, free: 9.949 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/0.4848, allocations: 79.41 kB / 0.5899 GB, free: 9.871 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4848, allocations: 0 / 0.5899 GB, free: 9.871 MB / 410.7 MB Notification: Performance of Templates: time 0.02438/0.5091, allocations: 15.84 MB / 0.6054 GB, free: 10.03 MB / 426.7 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)