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.001479/0.001479, allocations: 108.8 kB / 16.68 MB, free: 6.348 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.001688/0.001688, allocations: 193.9 kB / 17.61 MB, free: 5.758 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.391/1.391, allocations: 222.9 MB / 241.3 MB, free: 13.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0473/0.0473, allocations: 8.088 MB / 299.5 MB, free: 6.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 59.91 kB / 361.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2014, allocations: 51.51 MB / 413.4 MB, free: 25.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003972/0.2055, allocations: 3.397 MB / 416.8 MB, free: 22.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.2073, allocations: 1.294 MB / 418.1 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.2076, allocations: 4 kB / 418.1 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005193/0.2082, allocations: 171.2 kB / 418.3 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004193/0.2086, allocations: 155 kB / 418.4 MB, free: 20.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005081/0.2091, allocations: 223.7 kB / 418.6 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005008/0.2096, allocations: 0.5401 MB / 419.2 MB, free: 20 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.2099, allocations: 156.8 kB / 419.3 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.2101, allocations: 211.2 kB / 419.5 MB, free: 19.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.2103, allocations: 235 kB / 419.8 MB, free: 19.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.002e-05/0.2104, allocations: 44 kB / 419.8 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.2105, allocations: 87.92 kB / 419.9 MB, free: 19.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.2107, allocations: 155.5 kB / 420 MB, free: 19.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.2109, allocations: 262.6 kB / 420.3 MB, free: 18.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003894/0.2113, allocations: 0.5145 MB / 420.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2113, allocations: 0 / 420.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2113, allocations: 3.938 kB / 420.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.2113, allocations: 0 / 420.8 MB, free: 18.34 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.00179/0.2131, allocations: 1.001 MB / 421.8 MB, free: 17.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2131, allocations: 15.89 kB / 421.8 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.587e-05/0.2132, allocations: 64.22 kB / 421.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/0.2137, allocations: 486.4 kB / 422.4 MB, free: 16.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000215/0.214, allocations: 57.08 kB / 422.4 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.928e-05/0.214, allocations: 31.94 kB / 422.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.2147, allocations: 405.5 kB / 422.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2147, allocations: 3.938 kB / 422.9 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.2147, allocations: 16 kB / 422.9 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.2147, allocations: 12 kB / 422.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.2152, allocations: 262.1 kB / 423.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.217, allocations: 1.523 MB / 424.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006212/0.2177, allocations: 319.5 kB / 425 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.2179, allocations: 116.8 kB / 425.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.218, allocations: 4 kB / 425.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.647e-05/0.218, allocations: 34.55 kB / 425.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.218, allocations: 96 / 425.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008551/0.2189, allocations: 349.1 kB / 425.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.2189, allocations: 209.6 kB / 425.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005376/0.2195, allocations: 0.576 MB / 426.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.2195, allocations: 29.7 kB / 426.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.2196, allocations: 267.7 kB / 426.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.2197, allocations: 39.36 kB / 426.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.331e-05/0.2198, allocations: 53.69 kB / 426.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.309e-05/0.2198, allocations: 350.8 kB / 427 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.2201, allocations: 111.8 kB / 427.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002935/0.2204, allocations: 232 kB / 427.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004054/0.2208, allocations: 224.6 kB / 427.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2208, allocations: 0 / 427.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006152/0.2215, allocations: 321 kB / 427.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2215, allocations: 4 kB / 427.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.2215, allocations: 7.938 kB / 427.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.2215, allocations: 4 kB / 427.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.2217, allocations: 47.91 kB / 427.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2218, allocations: 7.984 kB / 427.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005326/0.2223, allocations: 115.6 kB / 428 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.2223, allocations: 12 kB / 428 MB, free: 10.68 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.0001864/0.2225, allocations: 177.8 kB / 428.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.417e-05/0.2226, allocations: 51.52 kB / 428.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000657/0.2233, allocations: 277.2 kB / 428.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2233, allocations: 4 kB / 428.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2233, allocations: 0 / 428.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2233, allocations: 0 / 428.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009847/0.2243, allocations: 0.7837 MB / 429.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.2243, allocations: 128 / 429.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.2245, allocations: 40 kB / 429.4 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.2245, allocations: 4 kB / 429.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.2245, allocations: 0 / 429.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.2245, allocations: 0 / 429.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2245, allocations: 4 kB / 429.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007643/0.2253, allocations: 0.4917 MB / 429.9 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.2255, allocations: 156.5 kB / 430 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.464e-05/0.2255, allocations: 8 kB / 430 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005675/0.2261, allocations: 103.9 kB / 430.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/0.2264, allocations: 123.8 kB / 430.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.2264, allocations: 11.94 kB / 430.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003731/0.2268, allocations: 431.1 kB / 430.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2268, allocations: 0 / 430.7 MB, free: 7.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004381/0.2273, allocations: 99.78 kB / 430.8 MB, free: 7.828 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.000739/0.228, allocations: 359.4 kB / 431.1 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006028/0.2286, allocations: 268 kB / 431.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2286, allocations: 4.188 kB / 431.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002994/0.2289, allocations: 147.8 kB / 431.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.2295, allocations: 120.4 kB / 431.6 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.2309, allocations: 1.011 MB / 432.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001917/0.2311, allocations: 0.827 MB / 433.5 MB, free: 5.184 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.2313, allocations: 47.42 kB / 433.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2313, allocations: 0 / 433.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of Templates: time 0.007983/0.2393, allocations: 6.849 MB / 440.4 MB, free: 14.33 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)