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.001454/0.001454, allocations: 103.7 kB / 17.79 MB, free: 5.277 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.001501/0.001501, allocations: 187.8 kB / 20.74 MB, free: 2.344 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.324/1.324, allocations: 222.9 MB / 246.4 MB, free: 4.355 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.1536/0.1536, allocations: 8.083 MB / 306.7 MB, free: 2.633 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.001845/0.001846, allocations: 67.89 kB / 423.9 MB, free: 6.391 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2336, allocations: 51.52 MB / 475.4 MB, free: 22.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003134/0.2368, allocations: 2.385 MB / 477.8 MB, free: 20.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006354/0.2374, allocations: 0.5088 MB / 478.3 MB, free: 19.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.7e-05/0.2375, allocations: 3.688 kB / 478.3 MB, free: 19.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.2379, allocations: 94.11 kB / 478.4 MB, free: 19.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.2381, allocations: 85.67 kB / 478.5 MB, free: 19.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.2383, allocations: 83.3 kB / 478.6 MB, free: 19.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.2385, allocations: 276.9 kB / 478.9 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.2387, allocations: 109.5 kB / 479 MB, free: 19.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.2388, allocations: 116.5 kB / 479.1 MB, free: 19.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.239, allocations: 139.4 kB / 479.2 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.2391, allocations: 27.94 kB / 479.3 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.2392, allocations: 76.55 kB / 479.3 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.2394, allocations: 114.9 kB / 479.4 MB, free: 19.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.2395, allocations: 146.2 kB / 479.6 MB, free: 19.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003812/0.2399, allocations: 414.2 kB / 480 MB, free: 18.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2399, allocations: 4 kB / 480 MB, free: 18.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2399, allocations: 1.281 kB / 480 MB, free: 18.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.2399, allocations: 0 / 480 MB, free: 18.76 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001653/0.2416, allocations: 0.8015 MB / 480.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2416, allocations: 16.52 kB / 480.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.2417, allocations: 40.19 kB / 480.9 MB, free: 18.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.242, allocations: 353 kB / 481.2 MB, free: 17.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.2421, allocations: 15.23 kB / 481.2 MB, free: 17.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.2421, allocations: 14.72 kB / 481.2 MB, free: 17.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004349/0.2426, allocations: 278.9 kB / 481.5 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2426, allocations: 5.375 kB / 481.5 MB, free: 17.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.2426, allocations: 10.25 kB / 481.5 MB, free: 17.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2426, allocations: 3.375 kB / 481.5 MB, free: 17.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003549/0.243, allocations: 194.2 kB / 481.7 MB, free: 17.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.2441, allocations: 0.8424 MB / 482.6 MB, free: 16.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005522/0.2446, allocations: 305.6 kB / 482.8 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/0.2449, allocations: 142.6 kB / 483 MB, free: 16.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.245, allocations: 3.25 kB / 483 MB, free: 16.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.245, allocations: 36.59 kB / 483 MB, free: 16.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.245, allocations: 0 / 483 MB, free: 16.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006785/0.2457, allocations: 283.5 kB / 483.3 MB, free: 16.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.2458, allocations: 212.1 kB / 483.5 MB, free: 16.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003895/0.2462, allocations: 372.6 kB / 483.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.2462, allocations: 30.77 kB / 483.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.887e-05/0.2463, allocations: 169 kB / 484.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2463, allocations: 47.98 kB / 484.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.377e-05/0.2464, allocations: 31.66 kB / 484.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.206e-05/0.2465, allocations: 337.3 kB / 484.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002044/0.2467, allocations: 85.97 kB / 484.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.2469, allocations: 153.4 kB / 484.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006988/0.2476, allocations: 247 kB / 485 MB, free: 14.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2476, allocations: 0 / 485 MB, free: 14.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004577/0.2481, allocations: 216.8 kB / 485.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2481, allocations: 5.156 kB / 485.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2481, allocations: 1.188 kB / 485.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.2482, allocations: 5.031 kB / 485.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.2483, allocations: 33.86 kB / 485.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.2483, allocations: 1.688 kB / 485.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.2488, allocations: 85.88 kB / 485.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.332e-05/0.2489, allocations: 6.875 kB / 485.3 MB, free: 14.75 MB / 350.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.0002305/0.2491, allocations: 168.7 kB / 485.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.2492, allocations: 30.72 kB / 485.5 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005431/0.2497, allocations: 242.5 kB / 485.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2497, allocations: 1.188 kB / 485.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2497, allocations: 1.125 kB / 485.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2497, allocations: 3.984 kB / 485.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008153/0.2506, allocations: 0.655 MB / 486.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.2506, allocations: 1.25 kB / 486.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.2507, allocations: 25.48 kB / 486.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2507, allocations: 1.188 kB / 486.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.2508, allocations: 6.25 kB / 486.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.2508, allocations: 9.094 kB / 486.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2508, allocations: 0 / 486.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006283/0.2514, allocations: 427 kB / 486.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.685e-05/0.2515, allocations: 117.2 kB / 487 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.2515, allocations: 9.484 kB / 487 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005326/0.2521, allocations: 86.08 kB / 487.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002293/0.2523, allocations: 124.2 kB / 487.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.2523, allocations: 8.906 kB / 487.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.2526, allocations: 279.9 kB / 487.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2526, allocations: 0 / 487.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.2529, allocations: 67.17 kB / 487.5 MB, free: 13.16 MB / 350.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.0007907/0.2537, allocations: 264.3 kB / 487.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004617/0.2542, allocations: 198.2 kB / 488 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2542, allocations: 0 / 488 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.2544, allocations: 142.2 kB / 488.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.2548, allocations: 31.73 kB / 488.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.2564, allocations: 0.6959 MB / 488.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001726/0.2566, allocations: 0.7608 MB / 489.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.2567, allocations: 34.83 kB / 489.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2567, allocations: 0 / 489.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of Templates: time 0.00584/0.2625, allocations: 4.314 MB / 494 MB, free: 9.418 MB / 350.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.042640328872949] Failed to read output from testmodel.py, exit status != 0: 0.2689667008817196 0.27800924799999993 0.035648543000000005 Calling exit ...