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.001511/0.001511, allocations: 114.7 kB / 17.14 MB, free: 5.918 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.001762/0.001762, allocations: 197.9 kB / 18.07 MB, free: 4.992 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.344/1.344, allocations: 222.9 MB / 241.8 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04661/0.04661, allocations: 8.099 MB / 300 MB, free: 6.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.89 kB / 415.2 MB, free: 21.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.08544, allocations: 51.51 MB / 466.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.004411/0.08989, allocations: 3.369 MB / 470.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001917/0.09182, allocations: 1.333 MB / 471.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000179/0.09202, allocations: 7.938 kB / 471.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005187/0.09256, allocations: 171 kB / 471.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003742/0.09294, allocations: 178.8 kB / 471.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005233/0.09348, allocations: 243.2 kB / 472 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005274/0.09401, allocations: 0.5455 MB / 472.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002794/0.0943, allocations: 160.7 kB / 472.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.09454, allocations: 215.1 kB / 472.9 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002726/0.09482, allocations: 223 kB / 473.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.789e-05/0.0949, allocations: 47.94 kB / 473.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.09508, allocations: 91.97 kB / 473.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002096/0.0953, allocations: 163.5 kB / 473.4 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.09553, allocations: 258.7 kB / 473.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006118/0.09615, allocations: 0.6541 MB / 474.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.09617, allocations: 0 / 474.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09617, allocations: 0 / 474.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.09619, allocations: 0 / 474.3 MB, free: 10.43 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.002092/0.09828, allocations: 0.9931 MB / 475.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.09833, allocations: 15.89 kB / 475.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.09845, allocations: 60.28 kB / 475.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/0.0992, allocations: 0.4906 MB / 475.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.09924, allocations: 20.94 kB / 475.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.09929, allocations: 28.12 kB / 476 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000616/0.09992, allocations: 393.6 kB / 476.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.09994, allocations: 0 / 476.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.09998, allocations: 12 kB / 476.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1, allocations: 12 kB / 476.4 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004829/0.1005, allocations: 254 kB / 476.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1026, allocations: 1.488 MB / 478.1 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005135/0.1031, allocations: 283.5 kB / 478.4 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.1033, allocations: 112.7 kB / 478.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/0.1034, allocations: 4.094 kB / 478.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.1034, allocations: 42.48 kB / 478.5 MB, free: 5.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.1034, allocations: 4 kB / 478.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007282/0.1041, allocations: 309.1 kB / 478.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/0.1042, allocations: 213.6 kB / 479 MB, free: 5.422 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006464/0.1049, allocations: 0.5682 MB / 479.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.1049, allocations: 33.7 kB / 479.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.1051, allocations: 263.7 kB / 479.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.162e-05/0.1051, allocations: 47.34 kB / 479.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.404e-05/0.1052, allocations: 41.72 kB / 480 MB, free: 4.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1054, allocations: 362.8 kB / 480.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.1056, allocations: 91.94 kB / 480.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.1059, allocations: 216.1 kB / 480.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003566/0.1063, allocations: 197.2 kB / 480.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1063, allocations: 4 kB / 480.8 MB, free: 3.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005725/0.1069, allocations: 297.1 kB / 481.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.1069, allocations: 7.938 kB / 481.1 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1069, allocations: 4 kB / 481.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1069, allocations: 7.938 kB / 481.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001971/0.1071, allocations: 44.09 kB / 481.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.1072, allocations: 11.94 kB / 481.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/0.1077, allocations: 99.81 kB / 481.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.1077, allocations: 12 kB / 481.3 MB, free: 3.02 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.0001852/0.1079, allocations: 189.7 kB / 481.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.877e-05/0.108, allocations: 43.44 kB / 481.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005866/0.1086, allocations: 253.3 kB / 481.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1086, allocations: 7.922 kB / 481.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1086, allocations: 0 / 481.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001881/0.1088, allocations: 156.5 kB / 482 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.1089, allocations: 4 kB / 482 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006111/0.1095, allocations: 95.86 kB / 482 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.1098, allocations: 123.7 kB / 482.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001097/0.1109, allocations: 408.6 kB / 482.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007872/0.1117, allocations: 0.5213 MB / 483.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002485/0.1119, allocations: 119.9 kB / 483.2 MB, free: 1.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004693/0.1124, allocations: 427.1 kB / 483.6 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of Backend: time 1.713e-06/0.1124, allocations: 4.062 kB / 483.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.1139, allocations: 0.5403 MB / 484.2 MB, free: 276 kB / 350.1 MB Notification: Performance of SimCode: time 0.001534/0.1155, allocations: 1.23 MB / 485.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Templates: time 0.01343/0.1289, allocations: 9.005 MB / 494.4 MB, free: 6.051 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)