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-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.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.00109/0.00109, allocations: 104.2 kB / 16.57 MB, free: 6.262 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.001184/0.001184, allocations: 194.7 kB / 17.49 MB, free: 5.875 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.359/1.359, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04555/0.04555, allocations: 8.1 MB / 299.4 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.89 kB / 361.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1976, allocations: 51.51 MB / 413.2 MB, free: 25.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.00386/0.2015, allocations: 3.392 MB / 416.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.2034, allocations: 1.302 MB / 417.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003534/0.2038, allocations: 4 kB / 417.9 MB, free: 21.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006035/0.2045, allocations: 167.2 kB / 418.1 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005258/0.205, allocations: 151.1 kB / 418.2 MB, free: 20.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.2056, allocations: 227.2 kB / 418.4 MB, free: 20.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005239/0.2061, allocations: 0.5336 MB / 419 MB, free: 20.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.2063, allocations: 148.7 kB / 419.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002642/0.2066, allocations: 183.3 kB / 419.3 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.2069, allocations: 214.9 kB / 419.5 MB, free: 19.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.149e-05/0.2069, allocations: 28 kB / 419.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001797/0.2071, allocations: 75.91 kB / 419.6 MB, free: 19.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.2073, allocations: 135.6 kB / 419.7 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2075, allocations: 234.6 kB / 420 MB, free: 19.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003708/0.2079, allocations: 0.5067 MB / 420.5 MB, free: 18.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.2079, allocations: 0 / 420.5 MB, free: 18.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2079, allocations: 0 / 420.5 MB, free: 18.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.2079, allocations: 0 / 420.5 MB, free: 18.66 MB / 302.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.002/0.2099, allocations: 1.005 MB / 421.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.21, allocations: 12.03 kB / 421.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2101, allocations: 60.27 kB / 421.5 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005617/0.2107, allocations: 490.4 kB / 422 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002304/0.2109, allocations: 57.06 kB / 422.1 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.2109, allocations: 27.94 kB / 422.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006166/0.2116, allocations: 409.5 kB / 422.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.2116, allocations: 0 / 422.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.2116, allocations: 16 kB / 422.5 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.2116, allocations: 4 kB / 422.5 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000505/0.2122, allocations: 270 kB / 422.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.2142, allocations: 1.531 MB / 424.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.2148, allocations: 311.5 kB / 424.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.2151, allocations: 120.8 kB / 424.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2152, allocations: 0 / 424.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.2152, allocations: 38.56 kB / 424.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.2152, allocations: 7.938 kB / 424.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008749/0.2161, allocations: 333.2 kB / 425.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.2161, allocations: 213.6 kB / 425.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006186/0.2168, allocations: 0.576 MB / 425.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.2168, allocations: 29.7 kB / 425.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.2169, allocations: 259.7 kB / 426.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.217, allocations: 47.36 kB / 426.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.788e-05/0.2171, allocations: 45.7 kB / 426.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.062e-05/0.2172, allocations: 354.8 kB / 426.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.2174, allocations: 111.8 kB / 426.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000319/0.2178, allocations: 231 kB / 426.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.2182, allocations: 220.4 kB / 427.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2182, allocations: 4 kB / 427.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006829/0.2189, allocations: 317 kB / 427.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2189, allocations: 6.5 kB / 427.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.219, allocations: 7.938 kB / 427.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.219, allocations: 4 kB / 427.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.2192, allocations: 52.02 kB / 427.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.2192, allocations: 4 kB / 427.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005663/0.2198, allocations: 119.7 kB / 427.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.2199, allocations: 8 kB / 427.7 MB, free: 11.01 MB / 302.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.0001761/0.22, allocations: 189.8 kB / 427.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.2201, allocations: 43.53 kB / 427.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007278/0.2209, allocations: 285 kB / 428.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2209, allocations: 0 / 428.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2209, allocations: 0 / 428.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2209, allocations: 11.98 kB / 428.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.222, allocations: 0.7721 MB / 429 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.222, allocations: 32 / 429 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.2222, allocations: 35.97 kB / 429 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.2222, allocations: 0 / 429 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.2222, allocations: 8 kB / 429 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.2222, allocations: 96 / 429 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.2222, allocations: 3.938 kB / 429 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00088/0.2231, allocations: 0.4981 MB / 429.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.2233, allocations: 156.5 kB / 429.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.449e-05/0.2234, allocations: 8 kB / 429.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005967/0.224, allocations: 103.9 kB / 429.8 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.2243, allocations: 123.8 kB / 429.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.2243, allocations: 12 kB / 429.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004554/0.2248, allocations: 423.1 kB / 430.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2248, allocations: 0 / 430.3 MB, free: 8.254 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004304/0.2252, allocations: 103.8 kB / 430.4 MB, free: 8.152 MB / 302.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.0007554/0.226, allocations: 355.8 kB / 430.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006493/0.2267, allocations: 252.2 kB / 431 MB, free: 7.684 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2267, allocations: 3.938 kB / 431 MB, free: 7.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.227, allocations: 155.8 kB / 431.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006427/0.2277, allocations: 108.7 kB / 431.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.2295, allocations: 1.005 MB / 432.3 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002469/0.2297, allocations: 0.8233 MB / 433.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.2299, allocations: 35.44 kB / 433.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of SimCode: time 1.773e-06/0.2299, allocations: 3.938 kB / 433.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of Templates: time 0.009923/0.2399, allocations: 6.858 MB / 440 MB, free: 14.68 MB / 318.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.makefile (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)