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.001297/0.001297, allocations: 115.3 kB / 19.74 MB, free: 2.137 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.00147/0.00147, allocations: 189.1 kB / 23.02 MB, free: 4.945 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.515/1.515, allocations: 225.6 MB / 251.8 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05708/0.05708, allocations: 8.229 MB / 315.3 MB, free: 396 kB / 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/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.001942/0.001942, allocations: 63.89 kB / 439.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1286, allocations: 54.39 MB / 494.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.007178/0.1358, allocations: 4.749 MB / 498.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003407/0.1392, allocations: 1.452 MB / 0.4886 GB, free: 15.46 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000403/0.1396, allocations: 8 kB / 0.4886 GB, free: 15.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.1408, allocations: 0.5019 MB / 0.4891 GB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009579/0.1418, allocations: 421.8 kB / 0.4895 GB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002672/0.1444, allocations: 1.088 MB / 0.4906 GB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001519/0.146, allocations: 0.856 MB / 0.4914 GB, free: 12.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004921/0.1464, allocations: 215.4 kB / 0.4916 GB, free: 12.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005104/0.147, allocations: 390.7 kB / 0.492 GB, free: 11.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008792/0.1478, allocations: 0.588 MB / 0.4926 GB, free: 11.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.148, allocations: 79.94 kB / 0.4926 GB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008408/0.1488, allocations: 323.7 kB / 0.4929 GB, free: 11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004555/0.1493, allocations: 422.8 kB / 0.4933 GB, free: 10.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006053/0.1499, allocations: 0.6059 MB / 0.4939 GB, free: 9.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.1522, allocations: 1.681 MB / 0.4956 GB, free: 8.293 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.1522, allocations: 0 / 0.4956 GB, free: 8.293 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1522, allocations: 0 / 0.4956 GB, free: 8.293 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.42e-05/0.1523, allocations: 0 / 0.4956 GB, free: 8.293 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.006794/0.1591, allocations: 2.081 MB / 0.4976 GB, free: 6.168 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.525e-05/0.1591, allocations: 11.89 kB / 0.4976 GB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003035/0.1594, allocations: 163.9 kB / 0.4978 GB, free: 5.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.1612, allocations: 0.9346 MB / 0.4987 GB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.1614, allocations: 194.4 kB / 0.4989 GB, free: 4.805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.1615, allocations: 64.36 kB / 0.4989 GB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001603/0.1631, allocations: 0.8596 MB / 0.4998 GB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.1631, allocations: 3.938 kB / 0.4998 GB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.771e-05/0.1632, allocations: 28 kB / 0.4998 GB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.1632, allocations: 15.98 kB / 0.4998 GB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.1645, allocations: 0.7392 MB / 0.5005 GB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006534/0.1711, allocations: 4.023 MB / 0.5045 GB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.1733, allocations: 0.9896 MB / 0.5054 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009688/0.1742, allocations: 499.7 kB / 0.5059 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.33e-05/0.1743, allocations: 16.97 kB / 0.5059 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/0.1744, allocations: 55.48 kB / 0.506 GB, free: 13.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=85): time 5.591e-06/0.1744, allocations: 3.984 kB / 0.506 GB, free: 13.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.01174/0.1861, allocations: 3.05 MB / 0.509 GB, free: 10.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001689/0.1863, allocations: 244.3 kB / 0.5092 GB, free: 9.844 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.1891, allocations: 1.813 MB / 0.511 GB, free: 8.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.1892, allocations: 45.7 kB / 0.511 GB, free: 7.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005034/0.1897, allocations: 498.2 kB / 0.5115 GB, free: 7.477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.19, allocations: 297.3 kB / 0.5118 GB, free: 7.184 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.1903, allocations: 146.7 kB / 0.5119 GB, free: 7.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1905, allocations: 337.9 kB / 0.5122 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008168/0.1913, allocations: 433.8 kB / 0.5127 GB, free: 6.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009625/0.1923, allocations: 0.5385 MB / 0.5132 GB, free: 5.707 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009522/0.2018, allocations: 2.624 MB / 0.5157 GB, free: 3.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.286e-05/0.2018, allocations: 0 / 0.5157 GB, free: 3.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004902/0.2067, allocations: 1.699 MB / 0.5174 GB, free: 1.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.2067, allocations: 4 kB / 0.5174 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.2067, allocations: 3.938 kB / 0.5174 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002986/0.2097, allocations: 0.8205 MB / 0.5182 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004887/0.2102, allocations: 115.9 kB / 0.5183 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3022/0.5124, allocations: 1.471 MB / 0.5198 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.5135, allocations: 83.67 kB / 0.5198 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.5137, allocations: 29.09 kB / 0.5199 GB, free: 34.58 MB / 382.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.001088/0.5148, allocations: 449.8 kB / 0.5203 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000517/0.5153, allocations: 130.7 kB / 0.5204 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00503/0.5203, allocations: 1.744 MB / 0.5221 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.5203, allocations: 9.281 kB / 0.5221 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.5203, allocations: 1.125 kB / 0.5221 GB, free: 34.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.5204, allocations: 8.953 kB / 0.5221 GB, free: 34.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007248/0.5276, allocations: 3.348 MB / 0.5254 GB, free: 33.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.5276, allocations: 5.844 kB / 0.5254 GB, free: 33.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/0.528, allocations: 108.9 kB / 0.5255 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002918/0.5309, allocations: 0.7792 MB / 0.5263 GB, free: 32.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-05/0.531, allocations: 22.89 kB / 0.5263 GB, free: 32.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002559/0.5336, allocations: 1.454 MB / 0.5277 GB, free: 32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5336, allocations: 0.5156 kB / 0.5277 GB, free: 32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005803/0.5394, allocations: 2.344 MB / 0.53 GB, free: 30.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008538/0.5402, allocations: 206.9 kB / 0.5302 GB, free: 30.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.5404, allocations: 21.8 kB / 0.5302 GB, free: 30.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006194/0.541, allocations: 44.06 kB / 0.5303 GB, free: 30.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002586/0.5413, allocations: 73.69 kB / 0.5303 GB, free: 30.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.466e-05/0.5413, allocations: 28.47 kB / 0.5304 GB, free: 30.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002319/0.5437, allocations: 1.303 MB / 0.5316 GB, free: 30.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5437, allocations: 0 / 0.5316 GB, free: 30.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001474/0.5451, allocations: 252.4 kB / 0.5319 GB, free: 30.29 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.001208/0.5463, allocations: 304 kB / 0.5322 GB, free: 30.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00437/0.5507, allocations: 1.303 MB / 0.5334 GB, free: 29.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.5507, allocations: 1.062 kB / 0.5334 GB, free: 29.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002896/0.5536, allocations: 0.8056 MB / 0.5342 GB, free: 29.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/0.5548, allocations: 118.5 kB / 0.5343 GB, free: 29.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006663/0.5614, allocations: 2.601 MB / 0.5369 GB, free: 28.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.5628, allocations: 1.179 MB / 0.538 GB, free: 27.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008079/0.5636, allocations: 163.4 kB / 0.5382 GB, free: 27.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/0.5639, allocations: 83.11 kB / 0.5383 GB, free: 27.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.583e-06/0.5639, allocations: 0 / 0.5383 GB, free: 27.47 MB / 382.1 MB Notification: Performance of Templates: time 0.03108/0.595, allocations: 17.59 MB / 0.5554 GB, free: 14.11 MB / 382.1 MB " [Timeout remaining time 659] 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: 5.826955390162766] Failed to read output from testmodel.py, exit status != 0: 0.6039705369621515 0.614346647 0.459641397 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc3fce457b0>