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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 107.1 kB / 17.8 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 187.8 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 246.4 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1498/0.1498, allocations: 8.082 MB / 306.7 MB, free: 2.699 MB / 238.1 MB " [Timeout remaining time 180] 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.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 63.91 kB / 423.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.2011, allocations: 51.53 MB / 475.4 MB, free: 22.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004508/0.2056, allocations: 4.687 MB / 480.1 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.2077, allocations: 1.439 MB / 481.5 MB, free: 17.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004507/0.2081, allocations: 11.09 kB / 481.5 MB, free: 17.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009216/0.2091, allocations: 499.5 kB / 482 MB, free: 17.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008494/0.21, allocations: 418.8 kB / 482.4 MB, free: 16.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.2115, allocations: 1.089 MB / 483.5 MB, free: 16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007897/0.2123, allocations: 0.8479 MB / 484.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003594/0.2127, allocations: 317.1 kB / 484.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003005/0.213, allocations: 380.5 kB / 485.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005266/0.2135, allocations: 0.5742 MB / 485.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.2136, allocations: 80.44 kB / 485.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005213/0.2142, allocations: 309.4 kB / 486 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002438/0.2144, allocations: 425 kB / 486.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003482/0.2148, allocations: 0.6098 MB / 487 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.216, allocations: 1.675 MB / 488.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.216, allocations: 1.375 kB / 488.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.216, allocations: 0 / 488.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.2161, allocations: 3.984 kB / 488.7 MB, free: 12.78 MB / 350.1 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.004475/0.2205, allocations: 2.16 MB / 490.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.2206, allocations: 12.95 kB / 490.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.2208, allocations: 153.4 kB / 491 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.2218, allocations: 0.9898 MB / 492 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.222, allocations: 193.5 kB / 492.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/0.222, allocations: 59.53 kB / 492.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.2232, allocations: 0.8615 MB / 493.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2232, allocations: 3.938 kB / 493.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.2233, allocations: 21.12 kB / 493.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.2233, allocations: 14.44 kB / 493.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.2244, allocations: 0.7251 MB / 493.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.2285, allocations: 4.056 MB / 498 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.23, allocations: 1.294 MB / 499.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006929/0.2308, allocations: 0.5504 MB / 499.8 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.96e-05/0.2308, allocations: 20.97 kB / 499.8 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.2309, allocations: 55.38 kB / 499.9 MB, free: 3.523 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 2.385e-06/0.2309, allocations: 0 / 499.9 MB, free: 3.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.009544/0.2404, allocations: 3.139 MB / 0.4912 GB, free: 364 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.2405, allocations: 244.3 kB / 0.4915 GB, free: 64 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002471/0.243, allocations: 1.805 MB / 0.4932 GB, free: 14.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.747e-05/0.2431, allocations: 41.7 kB / 0.4933 GB, free: 14.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004545/0.2436, allocations: 494.1 kB / 0.4937 GB, free: 13.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.2439, allocations: 309.3 kB / 0.494 GB, free: 13.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002598/0.2441, allocations: 150.6 kB / 0.4942 GB, free: 13.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2443, allocations: 333.9 kB / 0.4945 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007618/0.2451, allocations: 433.8 kB / 0.4949 GB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008871/0.246, allocations: 0.5384 MB / 0.4954 GB, free: 11.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008981/0.2549, allocations: 2.588 MB / 0.498 GB, free: 9.328 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.255, allocations: 0 / 0.498 GB, free: 9.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004343/0.2593, allocations: 1.719 MB / 0.4996 GB, free: 7.598 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2594, allocations: 4 kB / 0.4996 GB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.2594, allocations: 3.984 kB / 0.4996 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002868/0.2623, allocations: 0.8164 MB / 0.5004 GB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.2627, allocations: 119.8 kB / 0.5006 GB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002518/0.2652, allocations: 1.477 MB / 0.502 GB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007929/0.266, allocations: 79.64 kB / 0.5021 GB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/0.2661, allocations: 27.98 kB / 0.5021 GB, free: 5.043 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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 {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0006917/0.2668, allocations: 449.6 kB / 0.5025 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.267, allocations: 131.2 kB / 0.5027 GB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004165/0.2712, allocations: 1.76 MB / 0.5044 GB, free: 2.691 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.2712, allocations: 15.98 kB / 0.5044 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2712, allocations: 0 / 0.5044 GB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.2713, allocations: 3.984 kB / 0.5044 GB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006125/0.2774, allocations: 3.389 MB / 0.5077 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2774, allocations: 0 / 0.5077 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003776/0.2778, allocations: 111.8 kB / 0.5078 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002705/0.2805, allocations: 0.781 MB / 0.5086 GB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.879e-05/0.2806, allocations: 23.98 kB / 0.5086 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002482/0.2831, allocations: 1.459 MB / 0.51 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2831, allocations: 0 / 0.51 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004936/0.288, allocations: 2.338 MB / 0.5123 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004264/0.2885, allocations: 284.1 kB / 0.5126 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.2886, allocations: 16 kB / 0.5126 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.2891, allocations: 48.03 kB / 0.5126 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.2893, allocations: 68.89 kB / 0.5127 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.99e-05/0.2894, allocations: 28 kB / 0.5127 GB, free: 10 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001712/0.2911, allocations: 1.298 MB / 0.514 GB, free: 8.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2911, allocations: 0 / 0.514 GB, free: 8.699 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006657/0.2918, allocations: 259.7 kB / 0.5142 GB, free: 8.445 MB / 382.1 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 (n.y) * Number of discrete states: 0 () * Number of clocked 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 (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 {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009031/0.2927, allocations: 299.6 kB / 0.5145 GB, free: 8.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003578/0.2963, allocations: 1.355 MB / 0.5158 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.2963, allocations: 0 / 0.5158 GB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00258/0.2989, allocations: 0.8677 MB / 0.5167 GB, free: 6.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006722/0.2996, allocations: 114.9 kB / 0.5168 GB, free: 5.898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.3041, allocations: 2.667 MB / 0.5194 GB, free: 3.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008472/0.3049, allocations: 1.177 MB / 0.5206 GB, free: 1.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.3052, allocations: 75.42 kB / 0.5206 GB, free: 1.918 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3052, allocations: 0 / 0.5206 GB, free: 1.918 MB / 382.1 MB Notification: Performance of Templates: time 0.02564/0.3308, allocations: 19.82 MB / 0.54 GB, free: 14.09 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile [Timeout 660] (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) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.40233808895573] Failed to read output from testmodel.py, exit status != 0: 0.33770640613511205 0.34989212099999994 0.13136989399999996 Calling exit ...