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.0008937/0.0008937, allocations: 96.94 kB / 16.06 MB, free: 40 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.001322/0.001322, allocations: 181.6 kB / 16.96 MB, free: 6.895 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.378/1.378, allocations: 223.3 MB / 241 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1886/0.1886, allocations: 8.087 MB / 300.2 MB, free: 2.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 8 kB / 363.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1252, allocations: 52.51 MB / 416 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003688/0.1289, allocations: 3.008 MB / 419 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.1311, allocations: 1.275 MB / 420.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/0.1313, allocations: 11.94 kB / 420.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004923/0.1318, allocations: 159.3 kB / 420.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003702/0.1322, allocations: 163 kB / 420.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005331/0.1327, allocations: 227.5 kB / 420.8 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005323/0.1333, allocations: 0.5259 MB / 421.4 MB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.1335, allocations: 144.7 kB / 421.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.1337, allocations: 175.3 kB / 421.7 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.134, allocations: 203 kB / 421.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.771e-05/0.134, allocations: 20 kB / 421.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1342, allocations: 67.86 kB / 422 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001813/0.1344, allocations: 127.6 kB / 422.1 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.1346, allocations: 256.3 kB / 422.3 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005506/0.1352, allocations: 0.5993 MB / 422.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1352, allocations: 4 kB / 422.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1352, allocations: 0 / 422.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1352, allocations: 0 / 422.9 MB, free: 1.41 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.002077/0.1373, allocations: 0.9895 MB / 423.9 MB, free: 380 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1374, allocations: 12.03 kB / 423.9 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.1375, allocations: 56.28 kB / 424 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2099/0.3474, allocations: 480.4 kB / 424.5 MB, free: 41.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002454/0.3477, allocations: 71.59 kB / 424.5 MB, free: 41.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.134e-05/0.3477, allocations: 27.12 kB / 424.6 MB, free: 41.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.3485, allocations: 410.4 kB / 425 MB, free: 41.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3485, allocations: 3 kB / 425 MB, free: 41.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.643e-05/0.3485, allocations: 10 kB / 425 MB, free: 41.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.3486, allocations: 10.47 kB / 425 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.3491, allocations: 267.1 kB / 425.2 MB, free: 41.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.3513, allocations: 1.552 MB / 426.8 MB, free: 40.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.3519, allocations: 332.9 kB / 427.1 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/0.3522, allocations: 124.3 kB / 427.2 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.405e-05/0.3523, allocations: 6.719 kB / 427.2 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.3523, allocations: 30.56 kB / 427.3 MB, free: 40.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.3523, allocations: 3.125 kB / 427.3 MB, free: 40.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008741/0.3532, allocations: 349.4 kB / 427.6 MB, free: 40.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.3532, allocations: 208.8 kB / 427.8 MB, free: 40.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006344/0.3539, allocations: 0.582 MB / 428.4 MB, free: 40.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.3539, allocations: 28.89 kB / 428.4 MB, free: 40.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.3541, allocations: 258.4 kB / 428.7 MB, free: 40.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.76e-05/0.3541, allocations: 44.7 kB / 428.7 MB, free: 40.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.3542, allocations: 26.64 kB / 428.8 MB, free: 40.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.3543, allocations: 362.3 kB / 429.1 MB, free: 39.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.3545, allocations: 110.5 kB / 429.2 MB, free: 39.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003101/0.3549, allocations: 229 kB / 429.4 MB, free: 39.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004187/0.3553, allocations: 229.5 kB / 429.7 MB, free: 39.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.3553, allocations: 7.094 kB / 429.7 MB, free: 39.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006304/0.3559, allocations: 323 kB / 430 MB, free: 39.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.356, allocations: 6.594 kB / 430 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.356, allocations: 6.703 kB / 430 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.356, allocations: 3.344 kB / 430 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.3562, allocations: 56.14 kB / 430.1 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.3563, allocations: 3.344 kB / 430.1 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006235/0.3569, allocations: 141.2 kB / 430.2 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.3569, allocations: 12.59 kB / 430.2 MB, free: 39.38 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.on2,pulseSeries.on1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.3571, allocations: 189.3 kB / 430.4 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.014e-05/0.3572, allocations: 48 kB / 430.4 MB, free: 39.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007085/0.3579, allocations: 294.4 kB / 430.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.358, allocations: 0 / 430.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.358, allocations: 4.188 kB / 430.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.358, allocations: 0 / 430.7 MB, free: 39.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.359, allocations: 0.7932 MB / 431.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.3591, allocations: 3.312 kB / 431.5 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.3592, allocations: 32.67 kB / 431.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.3592, allocations: 32 / 431.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.3593, allocations: 16.16 kB / 431.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3593, allocations: 0 / 431.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3593, allocations: 0 / 431.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008372/0.3601, allocations: 0.4999 MB / 432.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001602/0.3603, allocations: 164.5 kB / 432.2 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.3604, allocations: 8 kB / 432.2 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006741/0.361, allocations: 139.1 kB / 432.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.3613, allocations: 127 kB / 432.5 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.3613, allocations: 12.73 kB / 432.5 MB, free: 38.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004163/0.3618, allocations: 424.2 kB / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3618, allocations: 0 / 432.9 MB, free: 38.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004095/0.3622, allocations: 104.2 kB / 433 MB, free: 38.47 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007591/0.363, allocations: 351.5 kB / 433.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006144/0.3636, allocations: 266.7 kB / 433.6 MB, free: 38.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3636, allocations: 3.938 kB / 433.6 MB, free: 38.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.3639, allocations: 154.7 kB / 433.8 MB, free: 38.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.3646, allocations: 96.16 kB / 433.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.3662, allocations: 1.026 MB / 434.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.3665, allocations: 0.8239 MB / 435.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002499/0.3667, allocations: 76.47 kB / 435.8 MB, free: 37.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.3669, allocations: 34.42 kB / 435.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3669, allocations: 3.25 kB / 435.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01199/0.3789, allocations: 6.865 MB / 442.7 MB, free: 36.66 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: