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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) 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.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 114.6 kB / 17.14 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 194.9 kB / 18.07 MB, free: 5.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 241.8 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04666/0.04666, allocations: 8.103 MB / 300 MB, free: 6.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.91 kB / 415.2 MB, free: 21.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08709/0.08829, allocations: 51.52 MB / 466.7 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.006142/0.09446, allocations: 4.692 MB / 471.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002497/0.09699, allocations: 1.444 MB / 472.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/0.09745, allocations: 8 kB / 472.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/0.09852, allocations: 0.4941 MB / 473.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001043/0.09962, allocations: 421.8 kB / 473.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.1017, allocations: 1.078 MB / 474.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.1027, allocations: 0.8482 MB / 475.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000429/0.1032, allocations: 318.8 kB / 476 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003452/0.1035, allocations: 382.7 kB / 476.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006552/0.1042, allocations: 0.5685 MB / 476.9 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.1043, allocations: 80 kB / 477 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005399/0.1049, allocations: 311.8 kB / 477.3 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003094/0.1052, allocations: 426.8 kB / 477.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004782/0.1057, allocations: 0.6098 MB / 478.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001476/0.1071, allocations: 1.671 MB / 480 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1072, allocations: 0 / 480 MB, free: 4.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1072, allocations: 0 / 480 MB, free: 4.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.1072, allocations: 0 / 480 MB, free: 4.766 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.005155/0.1123, allocations: 2.111 MB / 482.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.1124, allocations: 11.89 kB / 482.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.1126, allocations: 147.2 kB / 482.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001327/0.114, allocations: 0.9823 MB / 483.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000142/0.1141, allocations: 198.3 kB / 483.4 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.319e-05/0.1142, allocations: 56.38 kB / 483.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.1156, allocations: 0.8596 MB / 484.4 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1156, allocations: 3.938 kB / 484.4 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.1157, allocations: 20 kB / 484.4 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.1157, allocations: 16 kB / 484.4 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.1169, allocations: 0.7158 MB / 485.1 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005102/0.122, allocations: 4.057 MB / 489.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.1241, allocations: 1.286 MB / 490.5 MB, free: 9.789 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000929/0.125, allocations: 0.5543 MB / 491 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.64e-05/0.1251, allocations: 24.95 kB / 491 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.1252, allocations: 51.5 kB / 491.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.517e-06/0.1252, allocations: 0 / 491.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01138/0.1366, allocations: 3.13 MB / 494.2 MB, free: 5.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.1368, allocations: 248.3 kB / 494.5 MB, free: 5.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/0.1392, allocations: 1.809 MB / 496.3 MB, free: 3.867 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.386e-05/0.1393, allocations: 45.7 kB / 496.3 MB, free: 3.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004006/0.1397, allocations: 493.9 kB / 496.8 MB, free: 3.332 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/0.14, allocations: 291.6 kB / 497.1 MB, free: 3.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.1403, allocations: 150.6 kB / 497.2 MB, free: 2.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1404, allocations: 334 kB / 497.5 MB, free: 2.559 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007467/0.1412, allocations: 425.8 kB / 498 MB, free: 2.141 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.1421, allocations: 0.5385 MB / 498.5 MB, free: 1.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009107/0.1512, allocations: 2.604 MB / 0.4894 GB, free: 14.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1512, allocations: 0 / 0.4894 GB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004419/0.1556, allocations: 1.702 MB / 0.491 GB, free: 13.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.1557, allocations: 7.984 kB / 0.491 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.1557, allocations: 4 kB / 0.491 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/0.1586, allocations: 0.8164 MB / 0.4918 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.159, allocations: 123.8 kB / 0.492 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002567/0.1616, allocations: 1.47 MB / 0.4934 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007966/0.1624, allocations: 87.39 kB / 0.4935 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.374e-05/0.1625, allocations: 27.98 kB / 0.4935 GB, free: 10.68 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.0007788/0.1633, allocations: 445.6 kB / 0.4939 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003365/0.1636, allocations: 118.5 kB / 0.494 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004385/0.168, allocations: 1.764 MB / 0.4958 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.1681, allocations: 3.984 kB / 0.4958 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1681, allocations: 0 / 0.4958 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005381/0.1686, allocations: 283.2 kB / 0.496 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002122/0.1688, allocations: 16 kB / 0.496 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006199/0.1695, allocations: 43.97 kB / 0.4961 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.1697, allocations: 120.8 kB / 0.4962 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003813/0.1736, allocations: 1.521 MB / 0.4977 GB, free: 6.328 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002594/0.1762, allocations: 1.618 MB / 0.4993 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000709/0.1769, allocations: 423.8 kB / 0.4997 GB, free: 4.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001869/0.1788, allocations: 1.302 MB / 0.5009 GB, free: 2.98 MB / 382.1 MB Notification: Performance of Backend: time 3.61e-07/0.1788, allocations: 0 / 0.5009 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00457/0.1834, allocations: 1.472 MB / 0.5024 GB, free: 1.633 MB / 382.1 MB Notification: Performance of SimCode: time 0.2023/0.3856, allocations: 2.895 MB / 0.5052 GB, free: 46.16 MB / 382.1 MB Notification: Performance of Templates: time 0.02689/0.4126, allocations: 18.73 MB / 0.5235 GB, free: 40.2 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (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)