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: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",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.001116/0.001116, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.255/1.255, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00211/0.00211, allocations: 287 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8986/0.8986, allocations: 169.2 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 95.08 kB / 0.5953 GB, free: 27.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1384, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002895/0.1413, allocations: 1.928 MB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1425, allocations: 0.866 MB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.708e-05/0.1426, allocations: 7.938 kB / 0.683 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.1429, allocations: 51.84 kB / 0.6831 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.143, allocations: 48.16 kB / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.1432, allocations: 88.48 kB / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.1434, allocations: 196.2 kB / 0.6834 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.513e-05/0.1435, allocations: 27.56 kB / 0.6834 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1437, allocations: 80.31 kB / 0.6835 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.1438, allocations: 87.59 kB / 0.6836 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.1438, allocations: 8 kB / 0.6836 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.144, allocations: 59.95 kB / 0.6836 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.606e-05/0.144, allocations: 27.91 kB / 0.6837 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.26e-05/0.1441, allocations: 71.59 kB / 0.6837 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002143/0.1443, allocations: 179.5 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1443, allocations: 0 / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1443, allocations: 0 / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.1443, allocations: 4 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB 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.0008246/0.1451, allocations: 0.508 MB / 0.6844 GB, free: 12.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.1452, allocations: 8.031 kB / 0.6844 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.866e-05/0.1452, allocations: 46.73 kB / 0.6845 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.518e-05/0.1453, allocations: 16.75 kB / 0.6845 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.1455, allocations: 228 kB / 0.6847 GB, free: 11.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.1455, allocations: 12.36 kB / 0.6847 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.1456, allocations: 16.27 kB / 0.6847 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.1458, allocations: 135.6 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1459, allocations: 0 / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1459, allocations: 0 / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1459, allocations: 4 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/0.1462, allocations: 95.92 kB / 0.6849 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005741/0.1468, allocations: 424.4 kB / 0.6853 GB, free: 11.24 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.1471, allocations: 126.5 kB / 0.6855 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.1473, allocations: 76.81 kB / 0.6855 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005752/0.1479, allocations: 441.5 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00029/0.1482, allocations: 131.5 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.422e-06/0.1482, allocations: 0 / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005866/0.1488, allocations: 231.2 kB / 0.6863 GB, free: 10.13 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.1488, allocations: 63.41 kB / 0.6864 GB, free: 10.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.149, allocations: 180.1 kB / 0.6865 GB, free: 9.875 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.149, allocations: 29.7 kB / 0.6866 GB, free: 9.84 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.837e-05/0.1491, allocations: 116 kB / 0.6867 GB, free: 9.723 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.283e-05/0.1491, allocations: 59.19 kB / 0.6867 GB, free: 9.664 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.14e-05/0.1492, allocations: 37.64 kB / 0.6868 GB, free: 9.621 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1493, allocations: 334.8 kB / 0.6871 GB, free: 9.285 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.1495, allocations: 80.75 kB / 0.6872 GB, free: 9.203 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.1497, allocations: 92.34 kB / 0.6873 GB, free: 9.105 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.822/2.972, allocations: 378.8 MB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/2.972, allocations: 6.062 kB / 1.057 GB, free: 257.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004602/2.972, allocations: 255.4 kB / 1.057 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/2.972, allocations: 29.7 kB / 1.057 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/2.972, allocations: 3.188 kB / 1.057 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/2.972, allocations: 0 / 1.057 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/2.973, allocations: 42.42 kB / 1.057 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/2.973, allocations: 3.594 kB / 1.057 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001756/2.973, allocations: 27.39 kB / 1.058 GB, free: 257.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/2.973, allocations: 8.188 kB / 1.058 GB, free: 257.2 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.6850000000000001 * 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.0001535/2.973, allocations: 149.5 kB / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/2.973, allocations: 18.56 kB / 1.058 GB, free: 257.1 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005432/2.974, allocations: 237.7 kB / 1.058 GB, free: 257 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/2.974, allocations: 4.312 kB / 1.058 GB, free: 257 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/2.974, allocations: 0.8125 kB / 1.058 GB, free: 257 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/2.974, allocations: 4.688 kB / 1.058 GB, free: 257 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001594/2.974, allocations: 253 kB / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/2.974, allocations: 1.094 kB / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002174/2.974, allocations: 45.75 kB / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/2.974, allocations: 0 / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/2.974, allocations: 7.062 kB / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/2.974, allocations: 0 / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/2.974, allocations: 0 / 1.058 GB, free: 256.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000571/2.975, allocations: 315 kB / 1.058 GB, free: 256.7 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.415e-05/2.975, allocations: 113.6 kB / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/2.975, allocations: 6.156 kB / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/2.975, allocations: 13.08 kB / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.969e-05/2.975, allocations: 20.78 kB / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/2.975, allocations: 12.03 kB / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.293e-05/2.975, allocations: 130.6 kB / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/2.975, allocations: 0 / 1.059 GB, free: 256.6 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002516/2.975, allocations: 56.75 kB / 1.059 GB, free: 256.6 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.0007546/2.976, allocations: 0.8686 MB / 1.06 GB, free: 256 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004465/2.977, allocations: 235.4 kB / 1.06 GB, free: 255.9 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/2.977, allocations: 0 / 1.06 GB, free: 255.9 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001879/2.977, allocations: 85.75 kB / 1.06 GB, free: 255.9 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/2.977, allocations: 33.34 kB / 1.06 GB, free: 255.9 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/2.979, allocations: 2.297 MB / 1.062 GB, free: 254.3 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/2.979, allocations: 0.7267 MB / 1.063 GB, free: 253.6 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001357/2.98, allocations: 31 kB / 1.063 GB, free: 253.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.976e-05/2.98, allocations: 61.25 kB / 1.063 GB, free: 253.5 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/2.98, allocations: 0 / 1.063 GB, free: 253.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02347/3.003, allocations: 4.612 MB / 1.068 GB, free: 252.1 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.043/10.05, allocations: 24.59 kB / 1.068 GB, free: 252.1 MB / 0.7169 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)