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.002011/0.002011, allocations: 118.1 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.002302/0.002302, allocations: 188.6 kB / 23.02 MB, free: 4.953 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.467/1.467, allocations: 225.6 MB / 251.8 MB, free: 13.02 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.05436/0.05436, allocations: 8.241 MB / 315.3 MB, free: 388 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.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.001919/0.001919, allocations: 67.89 kB / 439.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1044, allocations: 54.39 MB / 494.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.007409/0.1118, allocations: 4.845 MB / 499 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003158/0.115, allocations: 1.631 MB / 0.4889 GB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004668/0.1154, allocations: 12 kB / 0.4889 GB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001605/0.117, allocations: 0.763 MB / 0.4896 GB, free: 14.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00126/0.1183, allocations: 0.6536 MB / 0.4903 GB, free: 13.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002498/0.1208, allocations: 1.178 MB / 0.4914 GB, free: 12.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001701/0.1225, allocations: 1.25 MB / 0.4926 GB, free: 11.33 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004888/0.123, allocations: 286.8 kB / 0.4929 GB, free: 11.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007956/0.1238, allocations: 0.5998 MB / 0.4935 GB, free: 10.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001292/0.1251, allocations: 0.9778 MB / 0.4945 GB, free: 9.449 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.1253, allocations: 128 kB / 0.4946 GB, free: 9.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007392/0.126, allocations: 355.8 kB / 0.4949 GB, free: 8.977 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009254/0.1269, allocations: 0.9662 MB / 0.4959 GB, free: 8.008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.1281, allocations: 1.2 MB / 0.497 GB, free: 6.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004139/0.1322, allocations: 3.359 MB / 0.5003 GB, free: 3.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1322, allocations: 0 / 0.5003 GB, free: 3.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1322, allocations: 4 kB / 0.5003 GB, free: 3.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.653e-05/0.1323, allocations: 0 / 0.5003 GB, free: 3.426 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.2388/0.3711, allocations: 3.425 MB / 0.5037 GB, free: 19.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3712, allocations: 12.61 kB / 0.5037 GB, free: 19.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007809/0.3719, allocations: 306.2 kB / 0.504 GB, free: 19.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004001/0.3759, allocations: 2.146 MB / 0.5061 GB, free: 18.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.3761, allocations: 230.9 kB / 0.5063 GB, free: 18.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.3762, allocations: 59.59 kB / 0.5063 GB, free: 18.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.3782, allocations: 1.01 MB / 0.5073 GB, free: 18.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.3783, allocations: 1.438 kB / 0.5073 GB, free: 18.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.782e-05/0.3783, allocations: 28.28 kB / 0.5074 GB, free: 18.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.3784, allocations: 16.95 kB / 0.5074 GB, free: 18.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.3798, allocations: 0.6956 MB / 0.508 GB, free: 18.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009915/0.3897, allocations: 4.764 MB / 0.5127 GB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002324/0.3921, allocations: 0.8705 MB / 0.5136 GB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001075/0.3931, allocations: 493.1 kB / 0.514 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.3933, allocations: 16.91 kB / 0.514 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.3933, allocations: 52.47 kB / 0.5141 GB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.925e-06/0.3933, allocations: 4 kB / 0.5141 GB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.005379/0.3987, allocations: 1.582 MB / 0.5156 GB, free: 14.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.3988, allocations: 0.5973 MB / 0.5162 GB, free: 13.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007051/0.4059, allocations: 4.886 MB / 0.521 GB, free: 12.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001914/0.4061, allocations: 44.91 kB / 0.521 GB, free: 12.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008841/0.407, allocations: 1.14 MB / 0.5221 GB, free: 11.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.4072, allocations: 229 kB / 0.5224 GB, free: 11.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.4074, allocations: 119.2 kB / 0.5225 GB, free: 11.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.574e-05/0.4075, allocations: 335.6 kB / 0.5228 GB, free: 10.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008306/0.4083, allocations: 321.2 kB / 0.5231 GB, free: 10.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009661/0.4093, allocations: 0.5562 MB / 0.5236 GB, free: 10.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005537/0.4148, allocations: 1.68 MB / 0.5253 GB, free: 9.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.4148, allocations: 0 / 0.5253 GB, free: 9.793 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003553/0.4184, allocations: 1.244 MB / 0.5265 GB, free: 9.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.4184, allocations: 11.5 kB / 0.5265 GB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4184, allocations: 1.562 kB / 0.5265 GB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.4195, allocations: 256.2 kB / 0.5268 GB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006594/0.4202, allocations: 160.8 kB / 0.5269 GB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003038/0.4232, allocations: 2.61 MB / 0.5295 GB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.4248, allocations: 105.9 kB / 0.5296 GB, free: 6.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.594e-05/0.4249, allocations: 30.83 kB / 0.5296 GB, free: 6.785 MB / 366.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.001728/0.4266, allocations: 0.9377 MB / 0.5305 GB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008267/0.4274, allocations: 274.2 kB / 0.5308 GB, free: 5.906 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/0.4304, allocations: 1.258 MB / 0.532 GB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4304, allocations: 8 kB / 0.532 GB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.4304, allocations: 4 kB / 0.532 GB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.4304, allocations: 3.984 kB / 0.532 GB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005443/0.4358, allocations: 3.34 MB / 0.5353 GB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4358, allocations: 2.203 kB / 0.5353 GB, free: 1.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/0.4364, allocations: 139.8 kB / 0.5354 GB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.4374, allocations: 265.4 kB / 0.5357 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.4375, allocations: 19.98 kB / 0.5357 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003373/0.4409, allocations: 2.559 MB / 0.5382 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4409, allocations: 4 kB / 0.5382 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00451/0.4454, allocations: 1.704 MB / 0.5399 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001593/0.447, allocations: 472.2 kB / 0.5403 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002991/0.4473, allocations: 19.98 kB / 0.5403 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008507/0.4481, allocations: 83.92 kB / 0.5404 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.4483, allocations: 80.52 kB / 0.5405 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.4484, allocations: 16 kB / 0.5405 GB, free: 11.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005361/0.4538, allocations: 3.519 MB / 0.5439 GB, free: 8.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4538, allocations: 4 kB / 0.5439 GB, free: 8.246 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001528/0.4553, allocations: 361.6 kB / 0.5443 GB, free: 7.906 MB / 382.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.001191/0.4565, allocations: 304.8 kB / 0.5446 GB, free: 7.703 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002623/0.4591, allocations: 0.9447 MB / 0.5455 GB, free: 6.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.425e-06/0.4591, allocations: 240 / 0.5455 GB, free: 6.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.4606, allocations: 0.612 MB / 0.5461 GB, free: 6.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.4624, allocations: 209 kB / 0.5463 GB, free: 5.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.4724, allocations: 5.252 MB / 0.5514 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/0.4743, allocations: 1.812 MB / 0.5532 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.4753, allocations: 365.8 kB / 0.5535 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.4757, allocations: 127.4 kB / 0.5537 GB, free: 14.29 MB / 398.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4757, allocations: 0 / 0.5537 GB, free: 14.29 MB / 398.1 MB Notification: Performance of Templates: time 0.05098/0.5267, allocations: 24.81 MB / 0.5779 GB, free: 5.602 MB / 414.1 MB " [Timeout remaining time 659] 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: 6.047312199138105] Failed to read output from testmodel.py, exit status != 0: 0.5350994598120451 0.5514021499999999 0.41586803199999994 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f8d5f60d7b0>