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.001894/0.001894, allocations: 108.1 kB / 16.45 MB, free: 6.441 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.002389/0.002389, allocations: 186.4 kB / 17.39 MB, free: 5.688 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.405/1.405, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05141/0.05141, allocations: 8.105 MB / 299.3 MB, free: 6.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 64.14 kB / 414.5 MB, free: 21.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1155, allocations: 51.53 MB / 466.1 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004601/0.1201, allocations: 3.358 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1221, allocations: 1.325 MB / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.1223, allocations: 12 kB / 470.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005174/0.1228, allocations: 175 kB / 470.9 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003528/0.1232, allocations: 182.8 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004981/0.1237, allocations: 247.3 kB / 471.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005148/0.1242, allocations: 0.5338 MB / 471.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.1245, allocations: 164.7 kB / 472 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.1247, allocations: 215.2 kB / 472.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.125, allocations: 227 kB / 472.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.207e-05/0.1251, allocations: 44 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.1252, allocations: 87.92 kB / 472.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.1254, allocations: 163.5 kB / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.1257, allocations: 258.6 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006232/0.1263, allocations: 0.6542 MB / 473.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1263, allocations: 3.938 kB / 473.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1263, allocations: 0 / 473.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.1263, allocations: 0 / 473.7 MB, free: 10.46 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.002065/0.1284, allocations: 1.004 MB / 474.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1285, allocations: 12.03 kB / 474.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.1286, allocations: 60.28 kB / 474.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/0.1293, allocations: 498.4 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.1294, allocations: 20.94 kB / 475.2 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.155e-05/0.1294, allocations: 32.12 kB / 475.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006175/0.1301, allocations: 385.6 kB / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1301, allocations: 0 / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.34e-05/0.1301, allocations: 12 kB / 475.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.1301, allocations: 8 kB / 475.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000559/0.1307, allocations: 262 kB / 475.9 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002198/0.1329, allocations: 1.492 MB / 477.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.1335, allocations: 283.5 kB / 477.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.1337, allocations: 104.8 kB / 477.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.725e-05/0.1338, allocations: 11.94 kB / 477.8 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1338, allocations: 42.61 kB / 477.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.333e-06/0.1338, allocations: 0 / 477.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007591/0.1346, allocations: 301.3 kB / 478.2 MB, free: 5.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/0.1348, allocations: 217.6 kB / 478.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000712/0.1355, allocations: 0.5721 MB / 478.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1355, allocations: 29.7 kB / 479 MB, free: 4.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.1357, allocations: 259.7 kB / 479.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.26e-05/0.1358, allocations: 47.36 kB / 479.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.798e-05/0.1359, allocations: 41.72 kB / 479.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.136, allocations: 358.7 kB / 479.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.1362, allocations: 99.94 kB / 479.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.1365, allocations: 214.5 kB / 480 MB, free: 3.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.1369, allocations: 200.9 kB / 480.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.1369, allocations: 0 / 480.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005818/0.1375, allocations: 297 kB / 480.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.1375, allocations: 8 kB / 480.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1375, allocations: 3.984 kB / 480.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1375, allocations: 11.92 kB / 480.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.1377, allocations: 43.92 kB / 480.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.1378, allocations: 4 kB / 480.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005278/0.1383, allocations: 103.8 kB / 480.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.1383, allocations: 8 kB / 480.6 MB, free: 3.059 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.0001889/0.1385, allocations: 185.7 kB / 480.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.283e-05/0.1386, allocations: 47.44 kB / 480.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005975/0.1392, allocations: 265.2 kB / 481.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1392, allocations: 0 / 481.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1392, allocations: 0 / 481.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1392, allocations: 0 / 481.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.1403, allocations: 0.7603 MB / 481.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1403, allocations: 0 / 481.9 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001443/0.1405, allocations: 27.98 kB / 481.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1405, allocations: 4.094 kB / 481.9 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1405, allocations: 7.922 kB / 481.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.1405, allocations: 3.938 kB / 481.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1405, allocations: 0 / 481.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008084/0.1413, allocations: 459.7 kB / 482.4 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.1415, allocations: 160.7 kB / 482.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.1416, allocations: 12.06 kB / 482.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005544/0.1422, allocations: 91.86 kB / 482.6 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/0.1424, allocations: 127.8 kB / 482.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.1425, allocations: 8 kB / 482.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004805/0.1429, allocations: 427.1 kB / 483.2 MB, free: 408 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.143, allocations: 0 / 483.2 MB, free: 408 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004091/0.1434, allocations: 99.75 kB / 483.3 MB, free: 308 kB / 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.0008162/0.1442, allocations: 369.7 kB / 483.6 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005567/0.1448, allocations: 228.2 kB / 483.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.1448, allocations: 4 kB / 483.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003112/0.1451, allocations: 135.8 kB / 484 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000574/0.1457, allocations: 114.8 kB / 484.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.1474, allocations: 0.8223 MB / 484.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/0.1479, allocations: 0.8267 MB / 485.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002924/0.1482, allocations: 71.23 kB / 485.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.1484, allocations: 35.44 kB / 485.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1484, allocations: 8 kB / 485.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Templates: time 0.01417/0.1625, allocations: 8.132 MB / 494 MB, free: 5.711 MB / 366.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)