Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 111 kB / 17.14 MB, free: 5.938 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.001481/0.001481, allocations: 198.1 kB / 18.07 MB, free: 5.02 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.331/1.331, allocations: 222.9 MB / 241.8 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04553/0.04554, allocations: 8.095 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.91 kB / 415.2 MB, free: 21.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08376/0.08499, allocations: 51.51 MB / 466.7 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003475/0.08851, allocations: 2.398 MB / 469.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008116/0.08934, allocations: 0.5021 MB / 469.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.991e-05/0.08944, allocations: 4 kB / 469.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003388/0.08978, allocations: 91.44 kB / 469.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.08999, allocations: 87.47 kB / 469.8 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.09021, allocations: 83.77 kB / 469.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.09048, allocations: 283 kB / 470.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.09069, allocations: 103.4 kB / 470.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.09082, allocations: 119.6 kB / 470.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000204/0.09104, allocations: 143.4 kB / 470.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.09109, allocations: 28 kB / 470.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.09124, allocations: 79.92 kB / 470.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.0914, allocations: 107.7 kB / 470.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.09155, allocations: 151.2 kB / 470.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003992/0.09195, allocations: 410.7 kB / 471.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.09196, allocations: 0 / 471.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09197, allocations: 0 / 471.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.381e-06/0.09198, allocations: 3.938 kB / 471.3 MB, free: 13.52 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001767/0.09376, allocations: 0.7988 MB / 472.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.0938, allocations: 11.89 kB / 472.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.776e-05/0.09388, allocations: 32.56 kB / 472.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000407/0.09429, allocations: 347.5 kB / 472.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.09432, allocations: 16.64 kB / 472.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.09437, allocations: 16.38 kB / 472.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.09486, allocations: 287 kB / 472.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.09488, allocations: 192 / 472.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.09491, allocations: 11.94 kB / 472.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.09492, allocations: 4 kB / 472.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003752/0.0953, allocations: 188.2 kB / 473 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.09662, allocations: 0.8453 MB / 473.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005713/0.0972, allocations: 303.6 kB / 474.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003605/0.09757, allocations: 144.8 kB / 474.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.322e-05/0.09762, allocations: 4 kB / 474.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.09765, allocations: 30.56 kB / 474.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.282e-06/0.09766, allocations: 0 / 474.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006962/0.09836, allocations: 293.3 kB / 474.6 MB, free: 9.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.596e-05/0.09845, allocations: 205.6 kB / 474.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.09886, allocations: 366.7 kB / 475.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.417e-05/0.0989, allocations: 29.7 kB / 475.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.09901, allocations: 168.1 kB / 475.3 MB, free: 9.176 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.09905, allocations: 47.34 kB / 475.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.166e-05/0.09913, allocations: 33.72 kB / 475.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.09932, allocations: 342.8 kB / 475.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.09953, allocations: 79.94 kB / 475.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002997/0.09984, allocations: 159.2 kB / 476 MB, free: 8.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007387/0.1006, allocations: 238.3 kB / 476.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1006, allocations: 128 / 476.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004599/0.1011, allocations: 221.3 kB / 476.4 MB, free: 8.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.1011, allocations: 4 kB / 476.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1011, allocations: 0 / 476.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.1011, allocations: 4 kB / 476.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.1013, allocations: 31.92 kB / 476.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1013, allocations: 0 / 476.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.1018, allocations: 95.75 kB / 476.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.1018, allocations: 7.938 kB / 476.6 MB, free: 7.883 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0002208/0.102, allocations: 165.7 kB / 476.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.406e-05/0.1021, allocations: 23.72 kB / 476.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005785/0.1027, allocations: 243.1 kB / 477 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1027, allocations: 3.984 kB / 477 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1027, allocations: 0 / 477 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.316e-05/0.1028, allocations: 112.8 kB / 477.1 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.496e-05/0.1029, allocations: 4 kB / 477.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005033/0.1034, allocations: 87.81 kB / 477.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.1036, allocations: 115.8 kB / 477.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001075/0.1047, allocations: 408.7 kB / 477.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000748/0.1055, allocations: 0.4984 MB / 478.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002328/0.1057, allocations: 111.9 kB / 478.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002788/0.106, allocations: 281.9 kB / 478.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of Backend: time 3.81e-07/0.106, allocations: 0 / 478.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.1073, allocations: 467.2 kB / 479 MB, free: 5.473 MB / 350.1 MB Notification: Performance of SimCode: time 0.0009507/0.1083, allocations: 0.908 MB / 480 MB, free: 4.52 MB / 350.1 MB Notification: Performance of Templates: time 0.009841/0.1182, allocations: 6.426 MB / 486.4 MB, free: 14.09 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)