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.001538/0.001539, allocations: 106.7 kB / 17.13 MB, free: 5.914 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.001734/0.001734, allocations: 194.1 kB / 18.07 MB, free: 4.996 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.32/1.32, allocations: 222.9 MB / 241.8 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04648/0.04648, allocations: 8.096 MB / 300 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 59.91 kB / 415.2 MB, free: 21.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07773/0.07893, allocations: 51.52 MB / 466.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.00478/0.08374, allocations: 3.365 MB / 470.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.08594, allocations: 1.321 MB / 471.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002621/0.08623, allocations: 7.938 kB / 471.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005785/0.08683, allocations: 182.9 kB / 471.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004823/0.08733, allocations: 182.8 kB / 471.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005671/0.08791, allocations: 251.2 kB / 472 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005838/0.0885, allocations: 0.5376 MB / 472.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/0.08877, allocations: 156.8 kB / 472.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002724/0.08905, allocations: 215.2 kB / 472.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003189/0.08938, allocations: 231 kB / 473.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.025e-05/0.08947, allocations: 44 kB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.08968, allocations: 87.92 kB / 473.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.0899, allocations: 163.5 kB / 473.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.09015, allocations: 266.6 kB / 473.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.09084, allocations: 0.6497 MB / 474.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.09085, allocations: 4 kB / 474.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09086, allocations: 0 / 474.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.306e-05/0.09088, allocations: 0 / 474.4 MB, free: 10.44 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.002127/0.09301, allocations: 1.02 MB / 475.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.09306, allocations: 11.89 kB / 475.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.09318, allocations: 60.56 kB / 475.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007346/0.09392, allocations: 0.491 MB / 475.9 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.09396, allocations: 20.94 kB / 476 MB, free: 8.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.023e-05/0.09403, allocations: 32.12 kB / 476 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006419/0.09468, allocations: 389.6 kB / 476.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.0947, allocations: 4 kB / 476.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.09474, allocations: 12 kB / 476.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.09476, allocations: 4 kB / 476.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005177/0.09528, allocations: 258 kB / 476.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002118/0.09741, allocations: 1.492 MB / 478.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.09794, allocations: 283.5 kB / 478.4 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.09818, allocations: 108.9 kB / 478.5 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.09822, allocations: 3.938 kB / 478.5 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.09826, allocations: 42.56 kB / 478.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.643e-06/0.09827, allocations: 96 / 478.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007405/0.09901, allocations: 313.4 kB / 478.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.09911, allocations: 209.6 kB / 479.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006845/0.09981, allocations: 0.5837 MB / 479.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.09984, allocations: 29.7 kB / 479.7 MB, free: 4.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000174/0.1, allocations: 260.1 kB / 479.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.096e-05/0.1001, allocations: 51.58 kB / 480 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/0.1002, allocations: 49.7 kB / 480 MB, free: 4.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1003, allocations: 354.8 kB / 480.4 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.1005, allocations: 95.94 kB / 480.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002952/0.1008, allocations: 208.2 kB / 480.7 MB, free: 3.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000365/0.1012, allocations: 209.1 kB / 480.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1012, allocations: 0 / 480.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005836/0.1018, allocations: 293.1 kB / 481.2 MB, free: 3.184 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1018, allocations: 8 kB / 481.2 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1019, allocations: 4 kB / 481.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1019, allocations: 7.938 kB / 481.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1021, allocations: 47.91 kB / 481.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1021, allocations: 12.25 kB / 481.3 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005521/0.1027, allocations: 99.72 kB / 481.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.1027, allocations: 12 kB / 481.4 MB, free: 2.996 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.0001906/0.1029, allocations: 189.8 kB / 481.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-05/0.103, allocations: 43.72 kB / 481.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00061/0.1036, allocations: 253.2 kB / 481.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.1036, allocations: 7.922 kB / 481.9 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1036, allocations: 0 / 481.9 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.1038, allocations: 156.8 kB / 482 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.789e-05/0.1039, allocations: 8 kB / 482 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006006/0.1045, allocations: 95.86 kB / 482.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.1048, allocations: 115.8 kB / 482.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001112/0.1059, allocations: 416.5 kB / 482.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007939/0.1067, allocations: 0.5331 MB / 483.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002507/0.1069, allocations: 124 kB / 483.3 MB, free: 1.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004884/0.1074, allocations: 423.1 kB / 483.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of Backend: time 4.71e-07/0.1075, allocations: 0 / 483.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.1089, allocations: 0.5237 MB / 484.2 MB, free: 256 kB / 350.1 MB Notification: Performance of SimCode: time 0.001442/0.1104, allocations: 1.249 MB / 485.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of Templates: time 0.01449/0.1249, allocations: 9.015 MB / 494.5 MB, free: 5.996 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)