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/package.mo", uses=false) 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=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.001093/0.001093, allocations: 105.5 kB / 16.45 MB, free: 6.441 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.001138/0.001138, allocations: 188.9 kB / 17.39 MB, free: 5.688 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.421/1.421, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05251/0.05251, allocations: 8.104 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 67.89 kB / 414.5 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.106, allocations: 51.52 MB / 466 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.007008/0.113, allocations: 4.687 MB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003316/0.1164, allocations: 1.436 MB / 472.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005537/0.1169, allocations: 12 kB / 472.1 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.1183, allocations: 0.4981 MB / 472.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001147/0.1195, allocations: 421.8 kB / 473.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002622/0.1221, allocations: 1.078 MB / 474.1 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1235, allocations: 0.8521 MB / 475 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006273/0.1241, allocations: 322.8 kB / 475.3 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005103/0.1246, allocations: 382.7 kB / 475.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009283/0.1256, allocations: 0.5685 MB / 476.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.1257, allocations: 80 kB / 476.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007702/0.1265, allocations: 307.8 kB / 476.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004513/0.127, allocations: 426.8 kB / 477 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007079/0.1277, allocations: 0.6098 MB / 477.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002239/0.1299, allocations: 1.671 MB / 479.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.13, allocations: 4 kB / 479.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.13, allocations: 0 / 479.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.13, allocations: 0 / 479.3 MB, free: 4.793 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.007967/0.138, allocations: 2.107 MB / 481.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.138, allocations: 12.03 kB / 481.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003566/0.1384, allocations: 151.2 kB / 481.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/0.1403, allocations: 0.9784 MB / 482.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001878/0.1405, allocations: 186.4 kB / 482.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.1407, allocations: 64.38 kB / 482.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.1429, allocations: 0.8596 MB / 483.7 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1429, allocations: 3.938 kB / 483.7 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.143, allocations: 28 kB / 483.7 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/0.1431, allocations: 16 kB / 483.7 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.145, allocations: 0.7157 MB / 484.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007898/0.153, allocations: 4.061 MB / 488.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003095/0.1561, allocations: 1.286 MB / 489.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001412/0.1575, allocations: 0.5465 MB / 490.3 MB, free: 9.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.1576, allocations: 28.95 kB / 490.4 MB, free: 9.234 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.906e-05/0.1577, allocations: 51.44 kB / 490.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.957e-06/0.1577, allocations: 0 / 490.4 MB, free: 9.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01576/0.1735, allocations: 3.13 MB / 493.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.1737, allocations: 244.3 kB / 493.8 MB, free: 5.723 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002748/0.1765, allocations: 1.805 MB / 495.6 MB, free: 3.902 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.1766, allocations: 45.69 kB / 495.6 MB, free: 3.852 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.1771, allocations: 497.8 kB / 496.1 MB, free: 3.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.1774, allocations: 299.6 kB / 496.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.1776, allocations: 146.6 kB / 496.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1778, allocations: 334 kB / 496.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007558/0.1785, allocations: 425.8 kB / 497.3 MB, free: 2.168 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008617/0.1794, allocations: 0.5384 MB / 497.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009118/0.1885, allocations: 2.592 MB / 0.4887 GB, free: 15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.1886, allocations: 4 kB / 0.4887 GB, free: 14.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004696/0.1933, allocations: 1.706 MB / 0.4904 GB, free: 13.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.1933, allocations: 4 kB / 0.4904 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.1933, allocations: 8 kB / 0.4904 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002981/0.1963, allocations: 0.8125 MB / 0.4912 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004728/0.1968, allocations: 119.8 kB / 0.4913 GB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002853/0.1997, allocations: 1.475 MB / 0.4927 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009434/0.2006, allocations: 87.39 kB / 0.4928 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.396e-05/0.2007, allocations: 23.98 kB / 0.4928 GB, free: 10.71 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.000919/0.2016, allocations: 453.6 kB / 0.4933 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/0.2019, allocations: 122.5 kB / 0.4934 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/0.2062, allocations: 1.764 MB / 0.4951 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.2063, allocations: 8 kB / 0.4951 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.2063, allocations: 0 / 0.4951 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.2063, allocations: 3.984 kB / 0.4951 GB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006397/0.2127, allocations: 3.381 MB / 0.4984 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.2127, allocations: 8.016 kB / 0.4984 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004228/0.2131, allocations: 103.8 kB / 0.4985 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002805/0.216, allocations: 0.781 MB / 0.4993 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.115e-05/0.216, allocations: 19.98 kB / 0.4993 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/0.2186, allocations: 1.455 MB / 0.5007 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.2187, allocations: 4 kB / 0.5007 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005066/0.2237, allocations: 2.341 MB / 0.503 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2364/0.4602, allocations: 273.3 kB / 0.5033 GB, free: 47.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003386/0.4605, allocations: 18.05 kB / 0.5033 GB, free: 47.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006972/0.4612, allocations: 45.19 kB / 0.5033 GB, free: 47.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.4614, allocations: 68.83 kB / 0.5034 GB, free: 47.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.085e-05/0.4615, allocations: 26.09 kB / 0.5034 GB, free: 47.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001787/0.4633, allocations: 1.304 MB / 0.5047 GB, free: 46.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4633, allocations: 0 / 0.5047 GB, free: 46.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007237/0.4641, allocations: 250.6 kB / 0.5049 GB, free: 46.92 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.0006724/0.4647, allocations: 284.8 kB / 0.5052 GB, free: 46.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003769/0.4685, allocations: 1.362 MB / 0.5065 GB, free: 46.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4685, allocations: 1.562 kB / 0.5065 GB, free: 46.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002736/0.4713, allocations: 0.8634 MB / 0.5074 GB, free: 46.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000723/0.472, allocations: 113.4 kB / 0.5075 GB, free: 46.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004313/0.4763, allocations: 2.559 MB / 0.51 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007086/0.4771, allocations: 1.181 MB / 0.5111 GB, free: 44.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004153/0.4775, allocations: 174.2 kB / 0.5113 GB, free: 44.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.4777, allocations: 72.59 kB / 0.5114 GB, free: 44.55 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4777, allocations: 0 / 0.5114 GB, free: 44.55 MB / 382.1 MB Notification: Performance of Templates: time 0.02472/0.5024, allocations: 16.81 MB / 0.5278 GB, free: 35.87 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)