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-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.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.001495/0.001495, allocations: 114 kB / 17.13 MB, free: 5.965 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.001756/0.001756, allocations: 193.2 kB / 18.06 MB, free: 5.043 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.332/1.332, allocations: 222.9 MB / 241.8 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04954/0.04954, allocations: 8.091 MB / 300 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 63.91 kB / 415.2 MB, free: 21.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1053, allocations: 51.52 MB / 466.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004806/0.1101, allocations: 3.135 MB / 469.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.1121, allocations: 1.168 MB / 471 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002505/0.1124, allocations: 8 kB / 471 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009749/0.1134, allocations: 442.5 kB / 471.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006419/0.1141, allocations: 262.8 kB / 471.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1159, allocations: 0.9997 MB / 472.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000719/0.1167, allocations: 0.51 MB / 473.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003612/0.117, allocations: 161.4 kB / 473.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003208/0.1174, allocations: 239.2 kB / 473.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005491/0.1179, allocations: 359 kB / 473.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.118, allocations: 48 kB / 474 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005806/0.1186, allocations: 275.8 kB / 474.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003073/0.119, allocations: 351 kB / 474.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004612/0.1194, allocations: 457.3 kB / 475 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.121, allocations: 1.32 MB / 476.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.121, allocations: 0 / 476.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.121, allocations: 4 kB / 476.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.124e-05/0.121, allocations: 0 / 476.4 MB, free: 8.434 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.003921/0.125, allocations: 1.545 MB / 477.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.125, allocations: 15.89 kB / 477.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.1253, allocations: 115.5 kB / 478 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.1266, allocations: 0.8758 MB / 478.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.393e-05/0.1267, allocations: 76.53 kB / 479 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-05/0.1268, allocations: 32.38 kB / 479 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008451/0.1277, allocations: 453 kB / 479.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.1277, allocations: 0 / 479.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.1277, allocations: 12 kB / 479.5 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.1277, allocations: 8 kB / 479.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006269/0.1284, allocations: 314.1 kB / 479.8 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.1317, allocations: 2.127 MB / 481.9 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.1328, allocations: 487.7 kB / 482.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.1332, allocations: 209.2 kB / 482.6 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.1334, allocations: 93.28 kB / 482.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.1334, allocations: 38.78 kB / 482.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.435e-06/0.1335, allocations: 3.938 kB / 482.7 MB, free: 1.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002314/0.1358, allocations: 0.8286 MB / 483.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.1359, allocations: 235.3 kB / 483.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/0.1383, allocations: 1.737 MB / 485.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.1383, allocations: 29.7 kB / 485.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004013/0.1387, allocations: 448.6 kB / 486 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.118e-05/0.1388, allocations: 94.66 kB / 486.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.139, allocations: 65.44 kB / 486.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1391, allocations: 318 kB / 486.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.1394, allocations: 159.9 kB / 486.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003955/0.1398, allocations: 254 kB / 486.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003573/0.1434, allocations: 0.9345 MB / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1434, allocations: 4 kB / 487.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001531/0.145, allocations: 0.6061 MB / 488.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.145, allocations: 8 kB / 488.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.145, allocations: 0 / 488.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006754/0.1457, allocations: 148.7 kB / 488.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.146, allocations: 67.89 kB / 488.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002533/0.1486, allocations: 2.04 MB / 490.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.1491, allocations: 51.66 kB / 490.7 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.1492, allocations: 12.06 kB / 490.7 MB, free: 9.418 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.0005824/0.1498, allocations: 413.6 kB / 491.1 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.15, allocations: 94.78 kB / 491.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.1515, allocations: 0.5818 MB / 491.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1515, allocations: 7.938 kB / 491.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1515, allocations: 3.984 kB / 491.8 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.1515, allocations: 4 kB / 491.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.1542, allocations: 1.467 MB / 493.3 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1542, allocations: 0 / 493.3 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002687/0.1545, allocations: 59.89 kB / 493.3 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006334/0.1552, allocations: 144.7 kB / 493.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.16e-05/0.1552, allocations: 8 kB / 493.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002302/0.1575, allocations: 2.02 MB / 495.5 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1575, allocations: 7.969 kB / 495.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.1593, allocations: 0.8337 MB / 496.4 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000402/0.1597, allocations: 235.8 kB / 496.6 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.1599, allocations: 11.94 kB / 496.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004052/0.1603, allocations: 43.89 kB / 496.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.1604, allocations: 27.97 kB / 496.7 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/0.1604, allocations: 11.98 kB / 496.7 MB, free: 3.195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001746/0.1622, allocations: 1.256 MB / 497.9 MB, free: 1.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1622, allocations: 4.062 kB / 497.9 MB, free: 1.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006157/0.1628, allocations: 155.8 kB / 498.1 MB, free: 1.773 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.0006623/0.1635, allocations: 263.3 kB / 498.3 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.1648, allocations: 0.5179 MB / 498.9 MB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.1648, allocations: 0 / 498.9 MB, free: 1.055 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007228/0.1655, allocations: 350.7 kB / 499.2 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006799/0.1662, allocations: 83.69 kB / 499.3 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003574/0.1698, allocations: 1.965 MB / 0.4895 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007762/0.1706, allocations: 1.076 MB / 0.4906 GB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.1708, allocations: 63.36 kB / 0.4906 GB, free: 13.45 MB / 382.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1708, allocations: 0 / 0.4906 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Templates: time 0.21/0.3808, allocations: 15.04 MB / 0.5053 GB, free: 46.11 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)