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.001394/0.001394, allocations: 100.8 kB / 16.31 MB, free: 6.391 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.001557/0.001557, allocations: 190.7 kB / 17.24 MB, free: 5.922 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04808/0.04808, allocations: 8.094 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 59.91 kB / 361.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2449, allocations: 51.52 MB / 413.2 MB, free: 25.72 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004035/0.249, allocations: 3.351 MB / 416.6 MB, free: 22.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.2508, allocations: 1.317 MB / 417.9 MB, free: 21.03 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002161/0.2511, allocations: 8 kB / 417.9 MB, free: 21.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005592/0.2516, allocations: 182.9 kB / 418.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003751/0.252, allocations: 182.8 kB / 418.3 MB, free: 20.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.2526, allocations: 242.6 kB / 418.5 MB, free: 20.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.253, allocations: 0.5377 MB / 419.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.2533, allocations: 156.7 kB / 419.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.2535, allocations: 215.2 kB / 419.4 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.2537, allocations: 235 kB / 419.6 MB, free: 19.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.085e-05/0.2538, allocations: 44 kB / 419.7 MB, free: 19.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.254, allocations: 87.92 kB / 419.8 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.2542, allocations: 163.5 kB / 419.9 MB, free: 19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.2544, allocations: 258.6 kB / 420.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005128/0.2549, allocations: 0.6425 MB / 420.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2549, allocations: 0 / 420.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2549, allocations: 0 / 420.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.2549, allocations: 0 / 420.8 MB, free: 18.1 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.002041/0.257, allocations: 1.011 MB / 421.8 MB, free: 17.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.257, allocations: 8.031 kB / 421.9 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.2571, allocations: 60.28 kB / 421.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.2577, allocations: 490.4 kB / 422.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/0.2579, allocations: 53.08 kB / 422.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.258, allocations: 39.88 kB / 422.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006438/0.2586, allocations: 405.5 kB / 422.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.2587, allocations: 0 / 422.9 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.2587, allocations: 12 kB / 422.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.2587, allocations: 4 kB / 422.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004955/0.2592, allocations: 262.1 kB / 423.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.2612, allocations: 1.531 MB / 424.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006368/0.2618, allocations: 315.5 kB / 425 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/0.2621, allocations: 116.9 kB / 425.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.699e-05/0.2621, allocations: 3.938 kB / 425.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.2622, allocations: 46.5 kB / 425.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.2622, allocations: 0 / 425.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008743/0.2631, allocations: 341.2 kB / 425.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/0.2631, allocations: 205.6 kB / 425.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005517/0.2637, allocations: 0.5799 MB / 426.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.2637, allocations: 25.7 kB / 426.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.2639, allocations: 267.7 kB / 426.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.2639, allocations: 43.36 kB / 426.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.846e-05/0.264, allocations: 49.7 kB / 426.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.633e-05/0.2641, allocations: 358.8 kB / 427 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.2644, allocations: 103.8 kB / 427.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.2647, allocations: 238.3 kB / 427.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004179/0.2651, allocations: 219.6 kB / 427.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.2651, allocations: 4 kB / 427.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006134/0.2658, allocations: 316.8 kB / 427.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.2658, allocations: 6.5 kB / 427.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.2658, allocations: 7.938 kB / 427.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.2658, allocations: 4 kB / 427.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.2661, allocations: 56.22 kB / 427.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.2661, allocations: 4 kB / 427.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005752/0.2667, allocations: 111.5 kB / 428 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.2667, allocations: 8 kB / 428 MB, free: 10.45 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.0001626/0.2669, allocations: 185.8 kB / 428.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.627e-05/0.267, allocations: 43.53 kB / 428.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006573/0.2676, allocations: 289.2 kB / 428.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2676, allocations: 0 / 428.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2677, allocations: 4 kB / 428.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.2677, allocations: 0 / 428.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009967/0.2687, allocations: 0.7837 MB / 429.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2687, allocations: 0 / 429.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.2689, allocations: 35.97 kB / 429.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.2689, allocations: 0 / 429.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.2689, allocations: 4 kB / 429.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2689, allocations: 0 / 429.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2689, allocations: 0 / 429.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008283/0.2697, allocations: 0.4955 MB / 429.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.2699, allocations: 160.5 kB / 430 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.717e-05/0.27, allocations: 7.938 kB / 430 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006532/0.2706, allocations: 99.92 kB / 430.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/0.2709, allocations: 127.8 kB / 430.3 MB, free: 8.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.271, allocations: 8 kB / 430.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003927/0.2714, allocations: 427.1 kB / 430.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2714, allocations: 4 kB / 430.7 MB, free: 7.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.2718, allocations: 95.78 kB / 430.8 MB, free: 7.594 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.0008194/0.2726, allocations: 364.7 kB / 431.1 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006304/0.2732, allocations: 255.9 kB / 431.4 MB, free: 7.113 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.2732, allocations: 4 kB / 431.4 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003126/0.2736, allocations: 155.8 kB / 431.5 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.2742, allocations: 109.9 kB / 431.7 MB, free: 6.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001487/0.2757, allocations: 0.8339 MB / 432.5 MB, free: 5.988 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.2759, allocations: 0.8269 MB / 433.3 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002046/0.2761, allocations: 75.23 kB / 433.4 MB, free: 5.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.2762, allocations: 39.44 kB / 433.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2762, allocations: 0 / 433.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of Templates: time 0.01179/0.288, allocations: 8.18 MB / 441.6 MB, free: 12.92 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)