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.001859/0.001859, 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.003154/0.003154, allocations: 190 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.536/1.536, 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.06029/0.06029, allocations: 8.238 MB / 315.3 MB, free: 364 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.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.002043/0.002043, allocations: 63.89 kB / 439.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1246, allocations: 54.4 MB / 494.1 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005788/0.1304, allocations: 3.396 MB / 497.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.133, allocations: 1.356 MB / 498.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002618/0.1332, allocations: 7.938 kB / 498.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006755/0.1339, allocations: 178.9 kB / 499.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005345/0.1345, allocations: 194.8 kB / 499.3 MB, free: 484 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006966/0.1352, allocations: 246.6 kB / 499.5 MB, free: 240 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007436/0.1359, allocations: 0.5454 MB / 0.4883 GB, free: 15.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.1362, allocations: 113.2 kB / 0.4884 GB, free: 15.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.1364, allocations: 219.2 kB / 0.4887 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003346/0.1368, allocations: 238.9 kB / 0.4889 GB, free: 15.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.54e-05/0.1368, allocations: 48 kB / 0.4889 GB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.137, allocations: 95.91 kB / 0.489 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002714/0.1373, allocations: 167.5 kB / 0.4892 GB, free: 14.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.1376, allocations: 250.7 kB / 0.4894 GB, free: 14.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008731/0.1385, allocations: 0.6575 MB / 0.4901 GB, free: 13.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1385, allocations: 0 / 0.4901 GB, free: 13.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1385, allocations: 0 / 0.4901 GB, free: 13.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1385, allocations: 0 / 0.4901 GB, free: 13.91 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.002486/0.141, allocations: 0.9447 MB / 0.491 GB, free: 12.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.141, allocations: 11.89 kB / 0.491 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.1411, allocations: 60.56 kB / 0.4911 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008971/0.142, allocations: 437 kB / 0.4915 GB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.1421, allocations: 29.02 kB / 0.4915 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.996e-05/0.1421, allocations: 28.12 kB / 0.4915 GB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007669/0.1429, allocations: 399 kB / 0.4919 GB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1429, allocations: 0 / 0.4919 GB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.1429, allocations: 12 kB / 0.4919 GB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.143, allocations: 8 kB / 0.4919 GB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005357/0.1435, allocations: 258.4 kB / 0.4922 GB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002445/0.1459, allocations: 1.439 MB / 0.4936 GB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005489/0.1465, allocations: 202.4 kB / 0.4938 GB, free: 9.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.1467, allocations: 100.8 kB / 0.4939 GB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.236e-05/0.1468, allocations: 3.984 kB / 0.4939 GB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.1468, allocations: 42.55 kB / 0.4939 GB, free: 9.773 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.1468, allocations: 0 / 0.4939 GB, free: 9.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008019/0.1476, allocations: 309.5 kB / 0.4942 GB, free: 9.465 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.1478, allocations: 209.6 kB / 0.4944 GB, free: 9.211 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007838/0.1485, allocations: 0.5721 MB / 0.495 GB, free: 8.625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.1486, allocations: 37.62 kB / 0.495 GB, free: 8.582 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.1488, allocations: 268 kB / 0.4953 GB, free: 8.316 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.958e-05/0.1489, allocations: 43.64 kB / 0.4953 GB, free: 8.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.149, allocations: 49.75 kB / 0.4953 GB, free: 8.219 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.1492, allocations: 362.7 kB / 0.4957 GB, free: 7.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.1494, allocations: 91.94 kB / 0.4958 GB, free: 7.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003513/0.1498, allocations: 210.5 kB / 0.496 GB, free: 7.508 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.1502, allocations: 204.3 kB / 0.4962 GB, free: 7.277 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1502, allocations: 0 / 0.4962 GB, free: 7.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000643/0.1508, allocations: 293.1 kB / 0.4965 GB, free: 6.984 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.1509, allocations: 8 kB / 0.4965 GB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1509, allocations: 4 kB / 0.4965 GB, free: 6.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/0.1509, allocations: 7.938 kB / 0.4965 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.1511, allocations: 56.22 kB / 0.4965 GB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.1511, allocations: 0 / 0.4965 GB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006209/0.1518, allocations: 107.6 kB / 0.4966 GB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.962e-05/0.1518, allocations: 12 kB / 0.4966 GB, free: 6.793 MB / 366.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.0002529/0.152, allocations: 185.8 kB / 0.4968 GB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.579e-05/0.1521, allocations: 43.72 kB / 0.4969 GB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006799/0.1528, allocations: 257.2 kB / 0.4971 GB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.1528, allocations: 7.969 kB / 0.4971 GB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1528, allocations: 0 / 0.4971 GB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/0.1529, allocations: 8 kB / 0.4971 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.1542, allocations: 0.732 MB / 0.4978 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1542, allocations: 0 / 0.4978 GB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.1544, allocations: 31.95 kB / 0.4979 GB, free: 5.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1544, allocations: 4 kB / 0.4979 GB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.1544, allocations: 0 / 0.4979 GB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.1544, allocations: 4 kB / 0.4979 GB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1544, allocations: 0 / 0.4979 GB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008816/0.1553, allocations: 467.9 kB / 0.4983 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.1555, allocations: 75.7 kB / 0.4984 GB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.712e-05/0.1555, allocations: 4 kB / 0.4984 GB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006416/0.1562, allocations: 99.92 kB / 0.4985 GB, free: 4.812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/0.1565, allocations: 127.8 kB / 0.4986 GB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.1565, allocations: 4 kB / 0.4986 GB, free: 4.684 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005764/0.1571, allocations: 427.1 kB / 0.499 GB, free: 4.273 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1571, allocations: 3.938 kB / 0.499 GB, free: 4.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004458/0.1575, allocations: 107.8 kB / 0.4991 GB, free: 4.164 MB / 366.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.001316/0.1588, allocations: 362.3 kB / 0.4995 GB, free: 3.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006459/0.1595, allocations: 223.7 kB / 0.4997 GB, free: 3.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1595, allocations: 0 / 0.4997 GB, free: 3.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003192/0.1598, allocations: 136.5 kB / 0.4998 GB, free: 3.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006482/0.1604, allocations: 105.8 kB / 0.4999 GB, free: 3.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.1624, allocations: 0.8302 MB / 0.5007 GB, free: 2.617 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006518/0.1631, allocations: 0.8344 MB / 0.5015 GB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.1633, allocations: 75.25 kB / 0.5016 GB, free: 1.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.1635, allocations: 35.44 kB / 0.5016 GB, free: 1.648 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1635, allocations: 0 / 0.5016 GB, free: 1.648 MB / 366.1 MB Notification: Performance of Templates: time 0.01778/0.1812, allocations: 8.271 MB / 0.5097 GB, free: 9.449 MB / 382.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: 5.353304707445204] Failed to read output from testmodel.py, exit status != 0: 0.189470574259758 0.45752581999999997 0.31537598499999997 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f107d78d7b0>