Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001172, allocations: 103.1 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.001203/0.001203, allocations: 186.4 kB / 17.38 MB, free: 5.695 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.347/1.347, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04906/0.04906, allocations: 8.1 MB / 299.3 MB, free: 6.652 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002146, allocations: 67.89 kB / 414.5 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1207, allocations: 51.52 MB / 466 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.005219/0.126, allocations: 3.134 MB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.1283, allocations: 1.168 MB / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003371/0.1287, allocations: 8 kB / 470.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009241/0.1296, allocations: 454.4 kB / 470.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000493/0.1301, allocations: 254.8 kB / 471 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.1318, allocations: 0.9997 MB / 472 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.1324, allocations: 0.5139 MB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.1326, allocations: 157.4 kB / 472.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002053/0.1328, allocations: 243.2 kB / 472.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004211/0.1333, allocations: 359 kB / 473.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.469e-05/0.1333, allocations: 48 kB / 473.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004325/0.1338, allocations: 279.7 kB / 473.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003005/0.1341, allocations: 347 kB / 473.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003779/0.1345, allocations: 453.4 kB / 474.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.1357, allocations: 1.324 MB / 475.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1357, allocations: 4 kB / 475.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1357, allocations: 0 / 475.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.1357, allocations: 0 / 475.7 MB, free: 8.441 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003038/0.1388, allocations: 1.545 MB / 477.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1388, allocations: 12.03 kB / 477.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.139, allocations: 111.5 kB / 477.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.1401, allocations: 0.8719 MB / 478.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.951e-05/0.1402, allocations: 80.53 kB / 478.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.1402, allocations: 24.38 kB / 478.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007549/0.141, allocations: 457 kB / 478.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.141, allocations: 0 / 478.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.1411, allocations: 12 kB / 478.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.1411, allocations: 8 kB / 478.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005818/0.1417, allocations: 318.1 kB / 479.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/0.1449, allocations: 2.127 MB / 481.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.146, allocations: 480.3 kB / 481.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.1465, allocations: 213.2 kB / 481.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001717/0.1467, allocations: 85.28 kB / 482 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.1467, allocations: 38.8 kB / 482 MB, free: 1.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.605e-06/0.1467, allocations: 0 / 482 MB, free: 1.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002298/0.149, allocations: 0.8324 MB / 482.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.1492, allocations: 239.3 kB / 483.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/0.1511, allocations: 1.737 MB / 484.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.1512, allocations: 29.7 kB / 484.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003571/0.1515, allocations: 448.5 kB / 485.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.786e-05/0.1516, allocations: 90.66 kB / 485.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.1518, allocations: 69.44 kB / 485.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.1519, allocations: 329.9 kB / 485.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.1522, allocations: 151.9 kB / 485.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.1526, allocations: 246 kB / 486.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003366/0.156, allocations: 0.9431 MB / 487.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.156, allocations: 0 / 487.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001339/0.1573, allocations: 0.6062 MB / 487.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1574, allocations: 4 kB / 487.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1574, allocations: 4 kB / 487.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006642/0.158, allocations: 148.7 kB / 487.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.1584, allocations: 75.89 kB / 488 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002727/0.1611, allocations: 2.031 MB / 490 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004871/0.1616, allocations: 51.92 kB / 490 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.1617, allocations: 11.98 kB / 490 MB, free: 9.441 MB / 366.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000632/0.1623, allocations: 406.5 kB / 490.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.1625, allocations: 94.78 kB / 490.5 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/0.1639, allocations: 0.5818 MB / 491.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.1639, allocations: 7.938 kB / 491.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.164, allocations: 0 / 491.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.164, allocations: 7.984 kB / 491.1 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002592/0.1666, allocations: 1.463 MB / 492.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1666, allocations: 0 / 492.6 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.1668, allocations: 59.89 kB / 492.7 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006008/0.1675, allocations: 144.7 kB / 492.8 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.1675, allocations: 8 kB / 492.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002365/0.1699, allocations: 2.024 MB / 494.8 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.1699, allocations: 3.938 kB / 494.8 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.1716, allocations: 0.8376 MB / 495.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/0.172, allocations: 235.8 kB / 495.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.1721, allocations: 8 kB / 495.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.1725, allocations: 43.89 kB / 495.9 MB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.281e-05/0.1726, allocations: 27.91 kB / 496 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.1726, allocations: 12 kB / 496 MB, free: 3.227 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001807/0.1744, allocations: 1.26 MB / 497.2 MB, free: 1.957 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1745, allocations: 4 kB / 497.3 MB, free: 1.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.1751, allocations: 155.8 kB / 497.4 MB, free: 1.801 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * 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: 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006956/0.1758, allocations: 271.8 kB / 497.7 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.1771, allocations: 0.5181 MB / 498.2 MB, free: 1.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.1771, allocations: 4 kB / 498.2 MB, free: 1.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006637/0.1778, allocations: 346.7 kB / 498.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005703/0.1784, allocations: 78.98 kB / 498.6 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003327/0.1817, allocations: 1.888 MB / 0.4888 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008152/0.1826, allocations: 1.076 MB / 0.4898 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003031/0.1829, allocations: 133.1 kB / 0.4899 GB, free: 13.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.183, allocations: 55.42 kB / 0.49 GB, free: 13.43 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1831, allocations: 0 / 0.49 GB, free: 13.43 MB / 382.1 MB Notification: Performance of Templates: time 0.0202/0.2033, allocations: 11.21 MB / 0.5009 GB, free: 2.25 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)