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.001195/0.001195, allocations: 112.4 kB / 17.09 MB, free: 6.008 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.001209/0.001209, allocations: 195 kB / 18.02 MB, free: 5.082 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.343/1.343, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04756/0.04756, allocations: 8.086 MB / 300 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.83 kB / 363.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.1998, allocations: 51.52 MB / 414.7 MB, free: 25.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003793/0.2037, allocations: 3.356 MB / 418.1 MB, free: 22.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.2054, allocations: 1.317 MB / 419.4 MB, free: 20.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.2056, allocations: 11.94 kB / 419.4 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005188/0.2061, allocations: 182.8 kB / 419.6 MB, free: 20.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000331/0.2065, allocations: 174.8 kB / 419.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004482/0.2069, allocations: 247.5 kB / 420 MB, free: 20.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000443/0.2074, allocations: 0.5376 MB / 420.5 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002429/0.2076, allocations: 164.7 kB / 420.7 MB, free: 19.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.2078, allocations: 215.2 kB / 420.9 MB, free: 19.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002245/0.208, allocations: 226.9 kB / 421.1 MB, free: 19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.003e-05/0.2081, allocations: 44 kB / 421.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.2083, allocations: 91.97 kB / 421.2 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.2084, allocations: 159.5 kB / 421.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2086, allocations: 254.7 kB / 421.6 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004458/0.2091, allocations: 0.6541 MB / 422.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2091, allocations: 0 / 422.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2091, allocations: 0 / 422.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2091, allocations: 4 kB / 422.3 MB, free: 17.8 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.001769/0.2109, allocations: 0.9969 MB / 423.3 MB, free: 16.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2109, allocations: 15.89 kB / 423.3 MB, free: 16.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.908e-05/0.211, allocations: 60.28 kB / 423.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006752/0.2117, allocations: 0.4905 MB / 423.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.2117, allocations: 20.94 kB / 423.9 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.406e-05/0.2118, allocations: 28.12 kB / 423.9 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/0.2123, allocations: 397.5 kB / 424.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2123, allocations: 0 / 424.3 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.2124, allocations: 12 kB / 424.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.2124, allocations: 4 kB / 424.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004018/0.2128, allocations: 258 kB / 424.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.2145, allocations: 1.484 MB / 426 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004363/0.215, allocations: 287.5 kB / 426.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.2152, allocations: 112.2 kB / 426.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.2152, allocations: 0 / 426.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.2152, allocations: 42.55 kB / 426.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.2153, allocations: 0 / 426.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006275/0.2159, allocations: 309.2 kB / 426.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.961e-05/0.216, allocations: 209.6 kB / 427 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005199/0.2165, allocations: 0.5721 MB / 427.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.2165, allocations: 33.69 kB / 427.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.2166, allocations: 263.7 kB / 427.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.2167, allocations: 47.36 kB / 427.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.87e-05/0.2168, allocations: 41.72 kB / 427.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.821e-05/0.2168, allocations: 362.8 kB / 428.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.217, allocations: 95.8 kB / 428.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.2173, allocations: 220.9 kB / 428.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.2176, allocations: 201.2 kB / 428.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2176, allocations: 0 / 428.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004729/0.2181, allocations: 301 kB / 429.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2181, allocations: 8 kB / 429.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2181, allocations: 4 kB / 429.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2181, allocations: 11.92 kB / 429.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.2183, allocations: 43.92 kB / 429.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.2183, allocations: 0 / 429.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.2188, allocations: 107.8 kB / 429.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/0.2188, allocations: 20 kB / 429.3 MB, free: 10.38 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.0001541/0.219, allocations: 185.7 kB / 429.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/0.2191, allocations: 39.53 kB / 429.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005347/0.2196, allocations: 263.8 kB / 429.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.2196, allocations: 0 / 429.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.2197, allocations: 0 / 429.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2197, allocations: 4.094 kB / 429.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008792/0.2205, allocations: 0.7564 MB / 430.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2206, allocations: 0 / 430.5 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.2207, allocations: 31.92 kB / 430.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2207, allocations: 3.938 kB / 430.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.2207, allocations: 7.984 kB / 430.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.2208, allocations: 4 kB / 430.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2208, allocations: 0 / 430.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006285/0.2214, allocations: 463.6 kB / 431 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.2216, allocations: 160.6 kB / 431.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.101e-05/0.2218, allocations: 8 kB / 431.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005847/0.2223, allocations: 95.86 kB / 431.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002198/0.2226, allocations: 123.8 kB / 431.4 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.2226, allocations: 8 kB / 431.4 MB, free: 8.141 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003646/0.223, allocations: 427.1 kB / 431.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.223, allocations: 0 / 431.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.2234, allocations: 99.78 kB / 431.9 MB, free: 7.625 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.0007317/0.2241, allocations: 360.1 kB / 432.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004676/0.2246, allocations: 240 kB / 432.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2246, allocations: 0 / 432.5 MB, free: 7.168 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.2248, allocations: 139.8 kB / 432.6 MB, free: 7.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006325/0.2255, allocations: 108.9 kB / 432.7 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.2268, allocations: 0.826 MB / 433.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.227, allocations: 0.823 MB / 434.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.2272, allocations: 71.25 kB / 434.5 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2273, allocations: 35.44 kB / 434.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2273, allocations: 4 kB / 434.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of Templates: time 0.01148/0.2388, allocations: 8.085 MB / 442.6 MB, free: 13.11 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 -s gbode -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)