Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.001203/0.001203, allocations: 105.4 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.001208/0.001208, allocations: 190.1 kB / 20.74 MB, free: 2.34 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.345/1.345, allocations: 222.9 MB / 246.4 MB, free: 4.211 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.1643/0.1643, allocations: 8.084 MB / 306.7 MB, free: 2.641 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.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 67.88 kB / 423.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2193, allocations: 51.53 MB / 475.5 MB, free: 22.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.00433/0.2237, allocations: 3.358 MB / 478.8 MB, free: 19.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.2257, allocations: 1.321 MB / 480.1 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003951/0.2262, allocations: 6.594 kB / 480.1 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005906/0.2268, allocations: 181.1 kB / 480.3 MB, free: 18.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005334/0.2273, allocations: 179.3 kB / 480.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005715/0.2279, allocations: 247.1 kB / 480.7 MB, free: 17.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005827/0.2285, allocations: 0.5463 MB / 481.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.2288, allocations: 156.4 kB / 481.4 MB, free: 17.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.229, allocations: 209.9 kB / 481.6 MB, free: 17.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.2292, allocations: 230.6 kB / 481.9 MB, free: 17.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.2293, allocations: 43.56 kB / 481.9 MB, free: 17.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001825/0.2295, allocations: 88.16 kB / 482 MB, free: 17.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001743/0.2297, allocations: 168.9 kB / 482.2 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.2299, allocations: 256.5 kB / 482.4 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006049/0.2305, allocations: 0.6533 MB / 483.1 MB, free: 16.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2305, allocations: 4 kB / 483.1 MB, free: 16.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2305, allocations: 0 / 483.1 MB, free: 16.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.2305, allocations: 5.203 kB / 483.1 MB, free: 16.41 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001964/0.2325, allocations: 1.011 MB / 484.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.2325, allocations: 13.33 kB / 484.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.2327, allocations: 60.69 kB / 484.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006299/0.2333, allocations: 499.1 kB / 484.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.2333, allocations: 24.5 kB / 484.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.2334, allocations: 32.62 kB / 484.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006032/0.234, allocations: 388.2 kB / 485.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.234, allocations: 1.094 kB / 485.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.2341, allocations: 16.09 kB / 485.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.2341, allocations: 6.438 kB / 485.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004447/0.2345, allocations: 257.2 kB / 485.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2364, allocations: 1.508 MB / 486.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004933/0.2369, allocations: 277.2 kB / 487.1 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.2372, allocations: 108.8 kB / 487.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.2372, allocations: 2.75 kB / 487.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.427e-05/0.2372, allocations: 41.94 kB / 487.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.2372, allocations: 0 / 487.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007203/0.238, allocations: 308.1 kB / 487.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.238, allocations: 211.3 kB / 487.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005909/0.2386, allocations: 0.574 MB / 488.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.2387, allocations: 32.45 kB / 488.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.2388, allocations: 261 kB / 488.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.327e-05/0.2388, allocations: 49.08 kB / 488.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.2389, allocations: 52.95 kB / 488.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.64e-05/0.239, allocations: 349.8 kB / 489.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.2392, allocations: 97.55 kB / 489.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002532/0.2395, allocations: 216.6 kB / 489.4 MB, free: 11.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003167/0.2398, allocations: 202.8 kB / 489.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2398, allocations: 1.406 kB / 489.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005507/0.2404, allocations: 293.3 kB / 489.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.2404, allocations: 10.62 kB / 489.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.2404, allocations: 2.469 kB / 489.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.2404, allocations: 7.75 kB / 489.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.2406, allocations: 47.94 kB / 489.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.2407, allocations: 4.062 kB / 489.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005898/0.2412, allocations: 111.3 kB / 490.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.866e-05/0.2413, allocations: 9.688 kB / 490.1 MB, free: 11.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.000176/0.2415, allocations: 185.2 kB / 490.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.701e-05/0.2415, allocations: 48.81 kB / 490.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005627/0.2421, allocations: 260.7 kB / 490.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2421, allocations: 1.781 kB / 490.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.2421, allocations: 0 / 490.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2421, allocations: 1.031 kB / 490.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000941/0.2431, allocations: 0.7581 MB / 491.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.2431, allocations: 5.375 kB / 491.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2433, allocations: 29.3 kB / 491.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.2433, allocations: 1.719 kB / 491.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.2433, allocations: 8.875 kB / 491.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.2433, allocations: 5.078 kB / 491.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2433, allocations: 1.094 kB / 491.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000688/0.244, allocations: 476 kB / 491.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/0.2442, allocations: 150.9 kB / 492 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.396e-05/0.2442, allocations: 6.031 kB / 492 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/0.2449, allocations: 98.86 kB / 492.1 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002242/0.2451, allocations: 127.5 kB / 492.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.2451, allocations: 6.406 kB / 492.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004399/0.2456, allocations: 422.4 kB / 492.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2456, allocations: 0 / 492.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004504/0.246, allocations: 106.2 kB / 492.7 MB, free: 9.312 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * 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.001165/0.2472, allocations: 362.6 kB / 493.1 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005108/0.2477, allocations: 231.1 kB / 493.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2477, allocations: 1.406 kB / 493.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002627/0.248, allocations: 142.4 kB / 493.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005797/0.2486, allocations: 110.2 kB / 493.6 MB, free: 8.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.25, allocations: 0.8683 MB / 494.4 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.2502, allocations: 0.8359 MB / 495.3 MB, free: 7.578 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001534/0.2504, allocations: 40.69 kB / 495.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2504, allocations: 0 / 495.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of Templates: time 0.007618/0.258, allocations: 6.844 MB / 0.4904 GB, free: 1.254 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile [Timeout 660] (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.464755899971351] Failed to read output from testmodel.py, exit status != 0: 0.26418808894231915 0.276573546 0.043452075 Calling exit ...