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) 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.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009505/0.0009505, allocations: 96.86 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 176.6 kB / 16.62 MB, free: 6.43 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.586/1.586, allocations: 223.3 MB / 240.7 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2107/0.2107, allocations: 8.077 MB / 299.8 MB, free: 2.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003051/0.0003051, allocations: 12 kB / 362.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1149, allocations: 52.51 MB / 415.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005068/0.12, allocations: 2.893 MB / 418.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002176/0.1223, allocations: 1.221 MB / 419.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.1225, allocations: 8 kB / 419.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004479/0.1229, allocations: 159.2 kB / 419.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.1233, allocations: 151 kB / 419.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.1237, allocations: 175.7 kB / 420 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005107/0.1243, allocations: 498.6 kB / 420.5 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002994/0.1246, allocations: 127.1 kB / 420.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.1248, allocations: 171.3 kB / 420.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.125, allocations: 199.1 kB / 420.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.304e-05/0.1251, allocations: 20 kB / 421 MB, free: 3.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.1252, allocations: 59.92 kB / 421 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.1254, allocations: 127.6 kB / 421.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.505e-05/0.1255, allocations: 113.4 kB / 421.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004547/0.126, allocations: 0.4948 MB / 421.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.126, allocations: 0 / 421.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.126, allocations: 3.938 kB / 421.8 MB, free: 2.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.126, allocations: 4 kB / 421.8 MB, free: 2.297 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.00214/0.1282, allocations: 0.9932 MB / 422.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.1282, allocations: 8.031 kB / 422.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1283, allocations: 55.34 kB / 422.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006693/0.129, allocations: 473.5 kB / 423.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.1292, allocations: 64.52 kB / 423.3 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.532e-05/0.1293, allocations: 24 kB / 423.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007091/0.13, allocations: 409.5 kB / 423.8 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.13, allocations: 0 / 423.8 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.261e-05/0.1301, allocations: 15.95 kB / 423.8 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.1301, allocations: 8 kB / 423.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2104/0.3406, allocations: 269.9 kB / 424.1 MB, free: 41.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002891/0.3435, allocations: 1.541 MB / 425.6 MB, free: 40.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/0.3442, allocations: 334 kB / 425.9 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002547/0.3444, allocations: 121.8 kB / 426 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.438e-05/0.3445, allocations: 7.453 kB / 426 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.3445, allocations: 38.28 kB / 426.1 MB, free: 40.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.264e-06/0.3445, allocations: 0 / 426.1 MB, free: 40.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008572/0.3454, allocations: 354.7 kB / 426.4 MB, free: 40.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.3455, allocations: 213.6 kB / 426.6 MB, free: 40.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006678/0.3462, allocations: 0.567 MB / 427.2 MB, free: 40.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.3462, allocations: 29.39 kB / 427.2 MB, free: 40.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.3464, allocations: 263.2 kB / 427.5 MB, free: 40.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.3464, allocations: 45.2 kB / 427.5 MB, free: 40.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.3464, allocations: 3.5 kB / 427.5 MB, free: 40.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3466, allocations: 355.2 kB / 427.9 MB, free: 39.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.3468, allocations: 108.9 kB / 428 MB, free: 39.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.3471, allocations: 233.9 kB / 428.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002115/0.3473, allocations: 102.2 kB / 428.3 MB, free: 39.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3473, allocations: 0 / 428.3 MB, free: 39.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006037/0.348, allocations: 323.5 kB / 428.6 MB, free: 39.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.348, allocations: 6.25 kB / 428.6 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.348, allocations: 320 / 428.6 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.348, allocations: 10.88 kB / 428.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002257/0.3483, allocations: 57.41 kB / 428.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/0.3483, allocations: 3.938 kB / 428.7 MB, free: 39.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005199/0.3488, allocations: 147.3 kB / 428.9 MB, free: 39.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.3488, allocations: 13.34 kB / 428.9 MB, free: 39.52 MB / 350.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.on1,pulseSeries.on2,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.349, allocations: 176.3 kB / 429 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.969e-05/0.3491, allocations: 46.17 kB / 429.1 MB, free: 39.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006444/0.3498, allocations: 295.5 kB / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3498, allocations: 3.766 kB / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3498, allocations: 0 / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3498, allocations: 3.375 kB / 429.4 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.3509, allocations: 0.777 MB / 430.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3509, allocations: 4.031 kB / 430.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.3511, allocations: 37.94 kB / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3511, allocations: 8.141 kB / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.3511, allocations: 1.938 kB / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3511, allocations: 3.219 kB / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3511, allocations: 0 / 430.2 MB, free: 39.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009082/0.352, allocations: 0.5032 MB / 430.7 MB, free: 38.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.3522, allocations: 161.1 kB / 430.9 MB, free: 38.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.86e-05/0.3523, allocations: 6.906 kB / 430.9 MB, free: 38.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005971/0.3529, allocations: 146.3 kB / 431 MB, free: 38.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000319/0.3533, allocations: 129.5 kB / 431.1 MB, free: 38.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.3533, allocations: 7.156 kB / 431.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004963/0.3538, allocations: 423.1 kB / 431.6 MB, free: 38.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3538, allocations: 3.938 kB / 431.6 MB, free: 38.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004722/0.3543, allocations: 103.1 kB / 431.7 MB, free: 38.62 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008625/0.3551, allocations: 354.3 kB / 432 MB, free: 38.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005888/0.3557, allocations: 262.4 kB / 432.3 MB, free: 38.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3558, allocations: 4.891 kB / 432.3 MB, free: 38.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.3561, allocations: 156.5 kB / 432.4 MB, free: 38.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.3566, allocations: 103.8 kB / 432.5 MB, free: 38.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.3583, allocations: 0.9793 MB / 433.5 MB, free: 38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.3586, allocations: 0.8286 MB / 434.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002745/0.3588, allocations: 67.77 kB / 434.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.359, allocations: 37.41 kB / 434.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.359, allocations: 0 / 434.4 MB, free: 37.28 MB / 350.1 MB Notification: Performance of Templates: time 0.009539/0.3685, allocations: 6.664 MB / 441.1 MB, free: 36.84 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: