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.001098/0.001098, allocations: 119.3 kB / 17.13 MB, free: 5.895 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.001067/0.001067, allocations: 196.1 kB / 18.06 MB, free: 4.977 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.328/1.328, allocations: 222.9 MB / 241.8 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05304/0.05304, allocations: 8.099 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 63.89 kB / 415.2 MB, free: 21.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08425/0.08546, allocations: 51.5 MB / 466.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004917/0.09042, allocations: 3.362 MB / 470.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002426/0.09288, allocations: 1.333 MB / 471.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.09325, allocations: 11.94 kB / 471.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006854/0.09399, allocations: 178.9 kB / 471.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005612/0.09457, allocations: 174.8 kB / 471.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006668/0.09525, allocations: 251.2 kB / 472 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007274/0.09599, allocations: 0.5338 MB / 472.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003003/0.0963, allocations: 164.7 kB / 472.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.09665, allocations: 215.1 kB / 472.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.09701, allocations: 227 kB / 473.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.105e-05/0.09711, allocations: 44 kB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002248/0.09734, allocations: 91.91 kB / 473.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002293/0.09758, allocations: 163.5 kB / 473.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.09785, allocations: 262.7 kB / 473.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007157/0.09857, allocations: 0.6541 MB / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.09859, allocations: 0 / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.0986, allocations: 0 / 474.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.09862, allocations: 0 / 474.3 MB, free: 10.45 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.002618/0.1012, allocations: 0.9931 MB / 475.3 MB, free: 9.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.1013, allocations: 15.89 kB / 475.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.1015, allocations: 60.28 kB / 475.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009595/0.1025, allocations: 0.4945 MB / 475.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.852e-05/0.1025, allocations: 20.94 kB / 475.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.1026, allocations: 28.12 kB / 476 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007286/0.1033, allocations: 389.6 kB / 476.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.1033, allocations: 0 / 476.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.113e-05/0.1034, allocations: 16 kB / 476.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.1034, allocations: 12 kB / 476.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000505/0.1039, allocations: 250 kB / 476.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.1062, allocations: 1.484 MB / 478.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.1068, allocations: 287.5 kB / 478.4 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.1071, allocations: 108.8 kB / 478.5 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.1071, allocations: 7.938 kB / 478.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.1072, allocations: 34.56 kB / 478.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 3.206e-06/0.1072, allocations: 3.984 kB / 478.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008048/0.108, allocations: 317.1 kB / 478.8 MB, free: 5.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1081, allocations: 209.6 kB / 479 MB, free: 5.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007225/0.1088, allocations: 0.5721 MB / 479.6 MB, free: 4.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.1089, allocations: 29.7 kB / 479.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.1091, allocations: 267.7 kB / 479.9 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.136e-05/0.1091, allocations: 39.36 kB / 479.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.88e-05/0.1092, allocations: 49.8 kB / 480 MB, free: 4.461 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1094, allocations: 366.7 kB / 480.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002275/0.1096, allocations: 91.94 kB / 480.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003227/0.1099, allocations: 214.5 kB / 480.6 MB, free: 3.742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003897/0.1103, allocations: 197.2 kB / 480.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.1104, allocations: 0 / 480.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006301/0.111, allocations: 297.1 kB / 481.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.887e-05/0.111, allocations: 4 kB / 481.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.111, allocations: 7.938 kB / 481.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.1111, allocations: 7.938 kB / 481.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.1113, allocations: 47.97 kB / 481.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.1113, allocations: 7.938 kB / 481.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006177/0.1119, allocations: 95.81 kB / 481.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.112, allocations: 12 kB / 481.3 MB, free: 3.039 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.0002262/0.1122, allocations: 193.7 kB / 481.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.22e-05/0.1123, allocations: 43.44 kB / 481.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006337/0.113, allocations: 253.2 kB / 481.8 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.113, allocations: 4.125 kB / 481.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/0.113, allocations: 7.984 kB / 481.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.113, allocations: 0 / 481.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.1142, allocations: 0.7603 MB / 482.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.1142, allocations: 0 / 482.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.1143, allocations: 31.92 kB / 482.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1143, allocations: 0 / 482.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.1144, allocations: 4 kB / 482.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.1144, allocations: 3.984 kB / 482.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1144, allocations: 4.031 kB / 482.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.1152, allocations: 471.3 kB / 483.1 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.1154, allocations: 156.6 kB / 483.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.1155, allocations: 0 / 483.2 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006685/0.1162, allocations: 99.92 kB / 483.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.1164, allocations: 127.7 kB / 483.4 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.1165, allocations: 4 kB / 483.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005242/0.117, allocations: 427.1 kB / 483.9 MB, free: 388 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.117, allocations: 0 / 483.9 MB, free: 388 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004499/0.1175, allocations: 103.8 kB / 484 MB, free: 284 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.0008277/0.1183, allocations: 362.8 kB / 484.3 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006343/0.1189, allocations: 232 kB / 484.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.119, allocations: 0 / 484.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003165/0.1193, allocations: 139.8 kB / 484.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.12, allocations: 114.8 kB / 484.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.1219, allocations: 0.8513 MB / 485.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.1223, allocations: 0.8345 MB / 486.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.1225, allocations: 47.36 kB / 486.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1225, allocations: 0 / 486.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Templates: time 0.01153/0.1341, allocations: 6.856 MB / 493.4 MB, free: 6.953 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)