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: "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005037/0.005037, allocations: 92.41 kB / 15.91 MB, free: 6.289 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.001295/0.001295, allocations: 192 kB / 16.83 MB, free: 6.207 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.259/1.259, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1404/0.1404, allocations: 8.085 MB / 298.7 MB, free: 2.102 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 59.91 kB / 361.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08297, allocations: 51.52 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003316/0.08632, allocations: 2.426 MB / 415.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006954/0.08703, allocations: 0.4983 MB / 415.6 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.807e-05/0.08712, allocations: 4 kB / 415.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003108/0.08745, allocations: 91.56 kB / 415.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.08762, allocations: 71.59 kB / 415.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001646/0.08779, allocations: 71.94 kB / 415.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.08803, allocations: 295 kB / 416.1 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.08819, allocations: 95.53 kB / 416.2 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.0883, allocations: 99.62 kB / 416.3 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.08848, allocations: 139.4 kB / 416.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.08852, allocations: 16 kB / 416.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001301/0.08866, allocations: 67.97 kB / 416.5 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.0888, allocations: 99.69 kB / 416.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.08892, allocations: 131.2 kB / 416.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.08926, allocations: 386.8 kB / 417.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.08928, allocations: 0 / 417.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.08928, allocations: 0 / 417.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.08929, allocations: 0 / 417.1 MB, free: 5.578 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.001677/0.09097, allocations: 0.8027 MB / 417.9 MB, free: 4.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.09101, allocations: 8.031 kB / 417.9 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.141e-05/0.09107, allocations: 54.73 kB / 418 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.197e-05/0.09113, allocations: 28.56 kB / 418 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.09151, allocations: 347.5 kB / 418.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.09153, allocations: 12.7 kB / 418.4 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.678e-05/0.09158, allocations: 28.25 kB / 418.4 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/0.09204, allocations: 283 kB / 418.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.09206, allocations: 3.938 kB / 418.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.09209, allocations: 8 kB / 418.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.0921, allocations: 4 kB / 418.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003686/0.09247, allocations: 195.8 kB / 418.9 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.09364, allocations: 0.8492 MB / 419.7 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005521/0.0942, allocations: 291.7 kB / 420 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.09453, allocations: 148.8 kB / 420.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.366e-05/0.09457, allocations: 4 kB / 420.2 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.0946, allocations: 34.5 kB / 420.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.122e-06/0.0946, allocations: 0 / 420.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006762/0.09529, allocations: 285.5 kB / 420.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.162e-05/0.09538, allocations: 209.6 kB / 420.7 MB, free: 1.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.09575, allocations: 362.7 kB / 421 MB, free: 1.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.68e-05/0.09581, allocations: 29.7 kB / 421.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.948e-05/0.09592, allocations: 176 kB / 421.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.033e-05/0.09596, allocations: 47.44 kB / 421.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.931e-05/0.09604, allocations: 29.72 kB / 421.3 MB, free: 1.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.142e-05/0.09614, allocations: 342.8 kB / 421.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/0.09634, allocations: 79.94 kB / 421.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.09658, allocations: 163.6 kB / 421.9 MB, free: 492 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007341/0.09732, allocations: 238.5 kB / 422.1 MB, free: 244 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.09733, allocations: 0 / 422.1 MB, free: 244 kB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004409/0.09778, allocations: 221.1 kB / 422.3 MB, free: 20 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.0978, allocations: 5.562 kB / 422.3 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.09781, allocations: 0 / 422.3 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.09783, allocations: 4 kB / 422.3 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.098, allocations: 32.03 kB / 422.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.09801, allocations: 3.984 kB / 422.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.09848, allocations: 91.73 kB / 422.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-05/0.09851, allocations: 8 kB / 422.5 MB, free: 15.88 MB / 366.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.000229/0.09875, allocations: 157.7 kB / 422.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-05/0.09882, allocations: 31.7 kB / 422.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005495/0.09937, allocations: 227.4 kB / 422.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.09939, allocations: 3.984 kB / 422.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.0994, allocations: 0 / 422.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.09941, allocations: 7.938 kB / 422.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008985/0.1003, allocations: 0.6589 MB / 423.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1003, allocations: 0 / 423.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.1005, allocations: 35.92 kB / 423.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.1005, allocations: 8.031 kB / 423.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.1005, allocations: 3.938 kB / 423.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1005, allocations: 0 / 423.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.1005, allocations: 7.984 kB / 423.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007107/0.1012, allocations: 431.9 kB / 424 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.674e-05/0.1013, allocations: 104.8 kB / 424.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.291e-05/0.1014, allocations: 11.94 kB / 424.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005003/0.1019, allocations: 83.94 kB / 424.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.1022, allocations: 119.8 kB / 424.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.1022, allocations: 8 kB / 424.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002953/0.1025, allocations: 277.9 kB / 424.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1025, allocations: 3.938 kB / 424.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003198/0.1029, allocations: 67.84 kB / 424.7 MB, free: 13.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.001475/0.1044, allocations: 1.124 MB / 425.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004827/0.1048, allocations: 199.9 kB / 426 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1049, allocations: 0 / 426 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002977/0.1052, allocations: 135.8 kB / 426.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.1055, allocations: 24.56 kB / 426.2 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004556/0.1101, allocations: 3.175 MB / 429.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.1104, allocations: 0.7599 MB / 430.1 MB, free: 8.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.1106, allocations: 45.53 kB / 430.1 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.1108, allocations: 75.41 kB / 430.2 MB, free: 7.938 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1108, allocations: 0 / 430.2 MB, free: 7.938 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.1279, allocations: 6.802 MB / 437 MB, free: 1.238 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.1282, allocations: 249 kB / 437.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/1.957, allocations: 0 / 437.3 MB, free: 0.9844 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)