Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.001355/0.001355, allocations: 118.7 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.001474/0.001474, allocations: 191.8 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.442/1.442, allocations: 225.6 MB / 249.2 MB, free: 3.602 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.05383/0.05383, allocations: 8.238 MB / 312.3 MB, free: 2.051 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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 67.89 kB / 435.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2574, allocations: 54.36 MB / 489.5 MB, free: 27.64 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003104/0.2605, allocations: 2.397 MB / 491.9 MB, free: 25.76 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006719/0.2612, allocations: 0.5142 MB / 492.4 MB, free: 25.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.943e-05/0.2613, allocations: 3.531 kB / 492.4 MB, free: 25.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.2616, allocations: 93.86 kB / 492.5 MB, free: 25.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001761/0.2618, allocations: 86.45 kB / 492.6 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002087/0.262, allocations: 86.78 kB / 492.7 MB, free: 25.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000221/0.2622, allocations: 273.7 kB / 493 MB, free: 24.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000164/0.2624, allocations: 78.88 kB / 493 MB, free: 24.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.2625, allocations: 121.2 kB / 493.1 MB, free: 24.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.2627, allocations: 143.8 kB / 493.3 MB, free: 24.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.015e-05/0.2627, allocations: 26.97 kB / 493.3 MB, free: 24.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.2629, allocations: 76.84 kB / 493.4 MB, free: 24.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.263, allocations: 111.2 kB / 493.5 MB, free: 24.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.2631, allocations: 154.9 kB / 493.7 MB, free: 24.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.2635, allocations: 400.2 kB / 494 MB, free: 24.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2635, allocations: 9.375 kB / 494.1 MB, free: 24.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2635, allocations: 0 / 494.1 MB, free: 24.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.2635, allocations: 0 / 494.1 MB, free: 24.25 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001676/0.2651, allocations: 0.8053 MB / 494.9 MB, free: 23.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.2652, allocations: 13.73 kB / 494.9 MB, free: 23.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.113e-05/0.2653, allocations: 35.42 kB / 494.9 MB, free: 23.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.2656, allocations: 352.8 kB / 495.2 MB, free: 23.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.2656, allocations: 11.3 kB / 495.3 MB, free: 23.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.741e-05/0.2657, allocations: 18.91 kB / 495.3 MB, free: 23.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004703/0.2661, allocations: 282.4 kB / 495.6 MB, free: 23.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2661, allocations: 1.5 kB / 495.6 MB, free: 23.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.2662, allocations: 13.22 kB / 495.6 MB, free: 23.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.2662, allocations: 9.234 kB / 495.6 MB, free: 23.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003741/0.2666, allocations: 194.7 kB / 495.8 MB, free: 22.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.2676, allocations: 0.837 MB / 496.6 MB, free: 22.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.2682, allocations: 285 kB / 496.9 MB, free: 22.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.2685, allocations: 136.9 kB / 497 MB, free: 21.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.2685, allocations: 7.484 kB / 497 MB, free: 21.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.2685, allocations: 40.56 kB / 497.1 MB, free: 21.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.252e-06/0.2685, allocations: 4 kB / 497.1 MB, free: 21.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.000686/0.2692, allocations: 280.1 kB / 497.3 MB, free: 21.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.517e-05/0.2693, allocations: 212.2 kB / 497.5 MB, free: 21.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.2697, allocations: 368 kB / 497.9 MB, free: 21.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.2697, allocations: 30.73 kB / 497.9 MB, free: 21.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.777e-05/0.2698, allocations: 172.5 kB / 498.1 MB, free: 21.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.338e-05/0.2698, allocations: 49.12 kB / 498.2 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.128e-05/0.2699, allocations: 34.97 kB / 498.2 MB, free: 21.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.692e-05/0.2699, allocations: 340.6 kB / 498.5 MB, free: 20.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.2701, allocations: 81.75 kB / 498.6 MB, free: 20.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.2703, allocations: 155.1 kB / 498.8 MB, free: 20.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007333/0.2711, allocations: 242 kB / 499 MB, free: 20.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2711, allocations: 1.125 kB / 499 MB, free: 20.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004499/0.2715, allocations: 216.6 kB / 499.2 MB, free: 20.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.2715, allocations: 8.312 kB / 499.2 MB, free: 20.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2716, allocations: 4.984 kB / 499.2 MB, free: 20.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2716, allocations: 2.188 kB / 499.2 MB, free: 20.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.2717, allocations: 33.52 kB / 499.2 MB, free: 20.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.2717, allocations: 1.5 kB / 499.2 MB, free: 20.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005004/0.2722, allocations: 82 kB / 499.3 MB, free: 20.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.2722, allocations: 9.688 kB / 499.3 MB, free: 20.23 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002164/0.2725, allocations: 174.4 kB / 499.5 MB, free: 20.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.323e-05/0.2725, allocations: 27.66 kB / 499.5 MB, free: 20.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005516/0.2731, allocations: 229.6 kB / 499.8 MB, free: 19.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2731, allocations: 5.406 kB / 499.8 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2731, allocations: 4.969 kB / 499.8 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2731, allocations: 3.984 kB / 499.8 MB, free: 19.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008506/0.2739, allocations: 0.6515 MB / 0.4887 GB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2739, allocations: 1.25 kB / 0.4887 GB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.2741, allocations: 29.05 kB / 0.4887 GB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.696e-06/0.2741, allocations: 1.125 kB / 0.4887 GB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2741, allocations: 6.5 kB / 0.4887 GB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2741, allocations: 5.125 kB / 0.4887 GB, free: 19.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2741, allocations: 0 / 0.4887 GB, free: 19.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006693/0.2748, allocations: 426.6 kB / 0.4891 GB, free: 19.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.2749, allocations: 120.3 kB / 0.4893 GB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.594e-05/0.2749, allocations: 6.375 kB / 0.4893 GB, free: 18.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005291/0.2754, allocations: 90.05 kB / 0.4894 GB, free: 18.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.2757, allocations: 128.7 kB / 0.4895 GB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2757, allocations: 4.625 kB / 0.4895 GB, free: 18.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.2759, allocations: 276.3 kB / 0.4897 GB, free: 18.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2759, allocations: 4 kB / 0.4897 GB, free: 18.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000339/0.2763, allocations: 71.8 kB / 0.4898 GB, free: 18.64 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000804/0.2771, allocations: 255.9 kB / 0.4901 GB, free: 18.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.2776, allocations: 194.5 kB / 0.4902 GB, free: 18.42 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.2776, allocations: 1.219 kB / 0.4902 GB, free: 18.42 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.2779, allocations: 135.1 kB / 0.4904 GB, free: 18.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.2782, allocations: 34.69 kB / 0.4904 GB, free: 18.34 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.2799, allocations: 0.7099 MB / 0.4911 GB, free: 17.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001759/0.2801, allocations: 0.7562 MB / 0.4918 GB, free: 17.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.2802, allocations: 38.95 kB / 0.4919 GB, free: 17.14 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2802, allocations: 0 / 0.4919 GB, free: 17.14 MB / 366.1 MB Notification: Performance of Templates: time 0.006232/0.2864, allocations: 4.307 MB / 0.4961 GB, free: 14.91 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.477694456931204] Failed to read output from testmodel.py, exit status != 0: 0.29385090596042573 0.30201419799999996 0.036635874 Calling exit ...