Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006365/0.006365, allocations: 101.6 kB / 15.73 MB, free: 5.586 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.001419/0.001419, allocations: 189.1 kB / 16.67 MB, free: 5.523 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 293 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9214/0.9214, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001829/0.001829, allocations: 95.8 kB / 0.6814 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.409, allocations: 86.99 MB / 0.7664 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002648/0.4117, allocations: 1.945 MB / 0.7683 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001188/0.4129, allocations: 0.8582 MB / 0.7691 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.4129, allocations: 7.938 kB / 0.7691 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.4131, allocations: 47.67 kB / 0.7691 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.549e-05/0.4132, allocations: 55.56 kB / 0.7692 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.4135, allocations: 87.77 kB / 0.7693 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.4137, allocations: 195.2 kB / 0.7695 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.249e-05/0.4138, allocations: 25.2 kB / 0.7695 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.414, allocations: 87.64 kB / 0.7696 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.4141, allocations: 83.66 kB / 0.7697 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.4141, allocations: 11.94 kB / 0.7697 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.4143, allocations: 59.95 kB / 0.7697 GB, free: 464 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.171e-05/0.4143, allocations: 27.86 kB / 0.7698 GB, free: 436 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.789e-05/0.4144, allocations: 71.64 kB / 0.7698 GB, free: 364 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.4146, allocations: 193.9 kB / 0.77 GB, free: 172 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4146, allocations: 0 / 0.77 GB, free: 172 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4146, allocations: 0 / 0.77 GB, free: 172 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.4146, allocations: 0 / 0.77 GB, free: 172 kB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008649/0.4155, allocations: 0.5004 MB / 0.7705 GB, free: 15.61 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.4155, allocations: 8.031 kB / 0.7705 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.723e-05/0.4156, allocations: 16.75 kB / 0.7705 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.4158, allocations: 243.9 kB / 0.7708 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.4159, allocations: 384 / 0.7708 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.4159, allocations: 16.31 kB / 0.7708 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.4162, allocations: 133.8 kB / 0.7709 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.4162, allocations: 0 / 0.7709 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.4162, allocations: 8 kB / 0.7709 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4162, allocations: 0 / 0.7709 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.4165, allocations: 103.9 kB / 0.771 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005913/0.4171, allocations: 416.5 kB / 0.7714 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.4175, allocations: 134.4 kB / 0.7715 GB, free: 14.45 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.4177, allocations: 72.81 kB / 0.7716 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005889/0.4183, allocations: 449.5 kB / 0.772 GB, free: 13.85 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.4186, allocations: 123.3 kB / 0.7721 GB, free: 13.71 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.512e-06/0.4186, allocations: 0 / 0.7721 GB, free: 13.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.0005997/0.4192, allocations: 236.9 kB / 0.7724 GB, free: 13.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.4192, allocations: 55.41 kB / 0.7724 GB, free: 13.41 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.4194, allocations: 178.5 kB / 0.7726 GB, free: 13.23 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.4194, allocations: 29.7 kB / 0.7726 GB, free: 13.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.199e-05/0.4195, allocations: 112 kB / 0.7727 GB, free: 13.08 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.188e-05/0.4195, allocations: 55.19 kB / 0.7728 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.4196, allocations: 41.7 kB / 0.7728 GB, free: 12.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.4197, allocations: 330.8 kB / 0.7731 GB, free: 12.65 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.4199, allocations: 76.8 kB / 0.7732 GB, free: 12.57 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.4201, allocations: 86.53 kB / 0.7733 GB, free: 12.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.599/3.019, allocations: 378.8 MB / 1.143 GB, free: 9.469 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/3.019, allocations: 0 / 1.143 GB, free: 9.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004803/3.019, allocations: 255.6 kB / 1.143 GB, free: 9.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.867e-05/3.019, allocations: 29.7 kB / 1.143 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/3.019, allocations: 7.562 kB / 1.143 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/3.019, allocations: 4.062 kB / 1.143 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/3.02, allocations: 48.53 kB / 1.144 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/3.02, allocations: 2.953 kB / 1.144 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/3.02, allocations: 22.34 kB / 1.144 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/3.02, allocations: 8 kB / 1.144 GB, free: 9.168 MB / 0.7169 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" 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: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * 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.0001744/3.02, allocations: 155.9 kB / 1.144 GB, free: 9.031 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.186e-05/3.02, allocations: 14.56 kB / 1.144 GB, free: 9.023 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005304/3.021, allocations: 241.5 kB / 1.144 GB, free: 8.828 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/3.021, allocations: 0 / 1.144 GB, free: 8.828 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/3.021, allocations: 0 / 1.144 GB, free: 8.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/3.021, allocations: 8 kB / 1.144 GB, free: 8.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001671/3.021, allocations: 260 kB / 1.144 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/3.021, allocations: 0 / 1.144 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/3.021, allocations: 35.97 kB / 1.144 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/3.021, allocations: 4 kB / 1.144 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/3.021, allocations: 7.938 kB / 1.144 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/3.021, allocations: 0 / 1.144 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/3.021, allocations: 0 / 1.144 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005688/3.022, allocations: 316.3 kB / 1.145 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.608e-05/3.022, allocations: 102.4 kB / 1.145 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/3.022, allocations: 8 kB / 1.145 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/3.022, allocations: 7.984 kB / 1.145 GB, free: 8.035 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/3.022, allocations: 23.97 kB / 1.145 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/3.022, allocations: 4 kB / 1.145 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.666e-05/3.022, allocations: 138.2 kB / 1.145 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/3.022, allocations: 0 / 1.145 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002624/3.022, allocations: 63.31 kB / 1.145 GB, free: 7.82 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001373/3.022, allocations: 131.2 kB / 1.145 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004144/3.023, allocations: 221.1 kB / 1.145 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/3.023, allocations: 0 / 1.145 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/3.023, allocations: 92.02 kB / 1.145 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/3.023, allocations: 28.86 kB / 1.145 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007491/3.024, allocations: 0.5343 MB / 1.146 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/3.024, allocations: 0.7242 MB / 1.147 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001179/3.024, allocations: 27.48 kB / 1.147 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/3.024, allocations: 27.44 kB / 1.147 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/3.024, allocations: 0 / 1.147 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of Templates: time 0.004811/3.029, allocations: 2.547 MB / 1.149 GB, free: 3.5 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)