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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001788/0.001788, allocations: 117.3 kB / 17.85 MB, free: 5.074 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.002129/0.002129, allocations: 190.1 kB / 20.79 MB, free: 2.141 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.424/1.424, allocations: 225.6 MB / 249.2 MB, free: 3.641 MB / 190.1 MB " [Timeout remaining time 178] 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.04962/0.04962, allocations: 8.238 MB / 312.3 MB, free: 2.027 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.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 71.88 kB / 435.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2345, allocations: 54.36 MB / 489.5 MB, free: 27.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.00462/0.2391, allocations: 4.821 MB / 494.3 MB, free: 23.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.2412, allocations: 1.627 MB / 495.9 MB, free: 22.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.2414, allocations: 12.38 kB / 496 MB, free: 22.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000988/0.2424, allocations: 0.7631 MB / 496.7 MB, free: 22.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007645/0.2432, allocations: 0.6534 MB / 497.4 MB, free: 21.7 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.2448, allocations: 1.166 MB / 498.5 MB, free: 20.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.2459, allocations: 1.254 MB / 499.8 MB, free: 20.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003543/0.2462, allocations: 289.2 kB / 0.4884 GB, free: 19.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004468/0.2467, allocations: 0.5809 MB / 0.4889 GB, free: 19.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008796/0.2475, allocations: 0.9762 MB / 0.4899 GB, free: 18.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.2477, allocations: 128.8 kB / 0.49 GB, free: 18.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006017/0.2483, allocations: 356.5 kB / 0.4903 GB, free: 18.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005524/0.2489, allocations: 0.9658 MB / 0.4913 GB, free: 18.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007017/0.2496, allocations: 1.201 MB / 0.4925 GB, free: 17.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002533/0.2521, allocations: 3.354 MB / 0.4957 GB, free: 15.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2521, allocations: 1.219 kB / 0.4957 GB, free: 15.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2521, allocations: 0 / 0.4957 GB, free: 15.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.571e-05/0.2522, allocations: 0 / 0.4957 GB, free: 15.05 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.006495/0.2586, allocations: 3.507 MB / 0.4992 GB, free: 12.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.2587, allocations: 12.98 kB / 0.4992 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004326/0.2591, allocations: 308.6 kB / 0.4995 GB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002648/0.2618, allocations: 2.205 MB / 0.5016 GB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.2619, allocations: 228.2 kB / 0.5018 GB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.262, allocations: 61.88 kB / 0.5019 GB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.2636, allocations: 1.003 MB / 0.5029 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.2636, allocations: 0 / 0.5029 GB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.649e-05/0.2637, allocations: 32.8 kB / 0.5029 GB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.2637, allocations: 14.88 kB / 0.5029 GB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.2651, allocations: 0.6876 MB / 0.5036 GB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006116/0.2712, allocations: 4.82 MB / 0.5083 GB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.2731, allocations: 1.32 MB / 0.5096 GB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008445/0.274, allocations: 490.7 kB / 0.5101 GB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001288/0.2741, allocations: 89.66 kB / 0.5101 GB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.2741, allocations: 51.06 kB / 0.5102 GB, free: 2.957 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.255e-06/0.2741, allocations: 0 / 0.5102 GB, free: 2.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004303/0.2784, allocations: 1.662 MB / 0.5118 GB, free: 1.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.651e-05/0.2785, allocations: 0.5974 MB / 0.5124 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006705/0.2852, allocations: 4.881 MB / 0.5172 GB, free: 11.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.2853, allocations: 45.7 kB / 0.5172 GB, free: 11.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.2865, allocations: 1.132 MB / 0.5183 GB, free: 10.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.2868, allocations: 233.9 kB / 0.5185 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.287, allocations: 122.3 kB / 0.5187 GB, free: 10.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2872, allocations: 333.9 kB / 0.519 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007906/0.288, allocations: 321.2 kB / 0.5193 GB, free: 9.445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.289, allocations: 0.5506 MB / 0.5198 GB, free: 8.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00607/0.295, allocations: 1.669 MB / 0.5214 GB, free: 7.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2951, allocations: 4 kB / 0.5214 GB, free: 7.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003753/0.2988, allocations: 1.246 MB / 0.5227 GB, free: 5.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.2988, allocations: 4 kB / 0.5227 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.2988, allocations: 4 kB / 0.5227 GB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.3001, allocations: 256.6 kB / 0.5229 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007288/0.3008, allocations: 163.8 kB / 0.5231 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004035/0.3049, allocations: 2.702 MB / 0.5257 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.3064, allocations: 107.5 kB / 0.5258 GB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/0.3064, allocations: 24 kB / 0.5258 GB, free: 2.453 MB / 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.00175/0.3082, allocations: 0.946 MB / 0.5268 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006741/0.3089, allocations: 278.1 kB / 0.527 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003304/0.3122, allocations: 1.252 MB / 0.5282 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.3122, allocations: 4 kB / 0.5283 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3122, allocations: 8 kB / 0.5283 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.3122, allocations: 3.984 kB / 0.5283 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006494/0.3187, allocations: 3.373 MB / 0.5316 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3187, allocations: 0 / 0.5316 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006851/0.3194, allocations: 143.8 kB / 0.5317 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.3206, allocations: 252.7 kB / 0.5319 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.3206, allocations: 16 kB / 0.532 GB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00374/0.3244, allocations: 2.664 MB / 0.5346 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3244, allocations: 4 kB / 0.5346 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004356/0.3287, allocations: 1.692 MB / 0.5362 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.33, allocations: 0.5343 MB / 0.5367 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.3303, allocations: 23.98 kB / 0.5368 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008289/0.3311, allocations: 80.05 kB / 0.5368 GB, free: 6.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.3313, allocations: 80.45 kB / 0.5369 GB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.622e-05/0.3314, allocations: 16 kB / 0.5369 GB, free: 6.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005625/0.337, allocations: 3.523 MB / 0.5404 GB, free: 3.285 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.337, allocations: 0 / 0.5404 GB, free: 3.285 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001467/0.3385, allocations: 359.6 kB / 0.5407 GB, free: 2.934 MB / 398.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.001026/0.3395, allocations: 301.5 kB / 0.541 GB, free: 2.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00248/0.342, allocations: 0.9397 MB / 0.5419 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.342, allocations: 4.234 kB / 0.5419 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.3434, allocations: 0.5997 MB / 0.5425 GB, free: 1.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.345, allocations: 206.4 kB / 0.5427 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.3561, allocations: 5.423 MB / 0.548 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/0.358, allocations: 1.816 MB / 0.5498 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008483/0.3588, allocations: 131.4 kB / 0.5499 GB, free: 9.488 MB / 414.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3588, allocations: 0 / 0.5499 GB, free: 9.488 MB / 414.1 MB Notification: Performance of Templates: time 0.06014/0.419, allocations: 38.94 MB / 0.5879 GB, free: 2.535 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile [Timeout 660] (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) [Timeout 480] [Calling os._exit(0), Time elapsed: 8.52980155381374] Failed to read output from testmodel.py, exit status != 0: 0.427127777133137 0.44060681399999996 0.185568548 Calling exit ...