Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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.BatteryComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatteryComplex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatteryComplex",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.0008984/0.0008983, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005324/0.005324, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.247/1.247, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001648/0.001648, allocations: 275.1 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8661/0.8661, allocations: 169.5 MB / 0.5004 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000592/0.000592, allocations: 18.64 kB / 0.5988 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1359, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.002267/0.1382, allocations: 2.324 MB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.1396, allocations: 1.061 MB / 0.6885 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.705e-05/0.1397, allocations: 15.88 kB / 0.6885 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.1399, allocations: 68.34 kB / 0.6886 GB, free: 11.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001944/0.1402, allocations: 105.1 kB / 0.6887 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.1404, allocations: 156.4 kB / 0.6889 GB, free: 11.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000366/0.1408, allocations: 485.8 kB / 0.6893 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.96e-05/0.1409, allocations: 44.7 kB / 0.6894 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.1412, allocations: 207.8 kB / 0.6896 GB, free: 10.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.1414, allocations: 215.7 kB / 0.6898 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.189e-05/0.1415, allocations: 16.69 kB / 0.6898 GB, free: 10.28 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.1416, allocations: 67.95 kB / 0.6899 GB, free: 10.21 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.761e-05/0.1417, allocations: 56.36 kB / 0.6899 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.1419, allocations: 200.7 kB / 0.6901 GB, free: 9.953 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003393/0.1422, allocations: 396.5 kB / 0.6905 GB, free: 9.566 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1422, allocations: 0 / 0.6905 GB, free: 9.566 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1422, allocations: 0 / 0.6905 GB, free: 9.566 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1422, allocations: 0 / 0.6905 GB, free: 9.566 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001515/0.1438, allocations: 0.7629 MB / 0.6912 GB, free: 8.738 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.1438, allocations: 8.031 kB / 0.6912 GB, free: 8.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.271e-05/0.1439, allocations: 54.73 kB / 0.6913 GB, free: 8.668 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/0.1439, allocations: 36.47 kB / 0.6913 GB, free: 8.633 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.1443, allocations: 335.9 kB / 0.6916 GB, free: 8.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.1443, allocations: 24.8 kB / 0.6917 GB, free: 8.246 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.217e-05/0.1444, allocations: 24.38 kB / 0.6917 GB, free: 8.223 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006932/0.1451, allocations: 348.8 kB / 0.692 GB, free: 7.871 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.1451, allocations: 7.906 kB / 0.692 GB, free: 7.863 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.1451, allocations: 12 kB / 0.692 GB, free: 7.852 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1451, allocations: 4 kB / 0.692 GB, free: 7.848 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008624/0.146, allocations: 324.4 kB / 0.6923 GB, free: 7.531 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009614/0.147, allocations: 0.7773 MB / 0.6931 GB, free: 6.699 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.148, allocations: 417.5 kB / 0.6935 GB, free: 6.273 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.1485, allocations: 226.3 kB / 0.6937 GB, free: 6.047 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000588/0.1491, allocations: 461.3 kB / 0.6942 GB, free: 5.504 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006819/0.1498, allocations: 348.6 kB / 0.6945 GB, free: 5.145 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.1498, allocations: 0 / 0.6945 GB, free: 5.145 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.00156/0.1514, allocations: 0.6509 MB / 0.6951 GB, free: 4.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/0.1515, allocations: 89.11 kB / 0.6952 GB, free: 4.383 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1517, allocations: 304.5 kB / 0.6955 GB, free: 4.066 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.627e-05/0.1518, allocations: 37.7 kB / 0.6955 GB, free: 4.023 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.1519, allocations: 164.9 kB / 0.6957 GB, free: 3.859 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.152, allocations: 138 kB / 0.6958 GB, free: 3.723 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/0.1521, allocations: 49.69 kB / 0.6959 GB, free: 3.668 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1522, allocations: 346.8 kB / 0.6962 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005173/0.1527, allocations: 233.6 kB / 0.6964 GB, free: 3.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005249/0.1533, allocations: 258.4 kB / 0.6967 GB, free: 2.824 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.576/6.729, allocations: 1 GB / 1.697 GB, free: 147.8 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/6.73, allocations: 0 / 1.697 GB, free: 147.8 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0012/6.731, allocations: 0.6735 MB / 1.698 GB, free: 147.2 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/6.731, allocations: 91.28 kB / 1.698 GB, free: 147.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/6.731, allocations: 0 / 1.698 GB, free: 147.1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/6.731, allocations: 4.656 kB / 1.698 GB, free: 147.1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004943/6.731, allocations: 122.5 kB / 1.698 GB, free: 147 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/6.731, allocations: 11.56 kB / 1.698 GB, free: 147 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004545/6.732, allocations: 76.47 kB / 1.698 GB, free: 147 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.731e-05/6.732, allocations: 22.86 kB / 1.698 GB, free: 147 MB / 0.7169 GB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_1C.EBou:VARIABLE(start = 0.6850000000000001 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = 0.6850000000000001 * battery_C20.SOC_start * battery_C20.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: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0002348/6.732, allocations: 201.2 kB / 1.698 GB, free: 146.8 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.099e-05/6.732, allocations: 37.09 kB / 1.698 GB, free: 146.8 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/6.734, allocations: 0.6618 MB / 1.699 GB, free: 146.3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/6.734, allocations: 8 kB / 1.699 GB, free: 146.3 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/6.734, allocations: 4.5 kB / 1.699 GB, free: 146.3 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/6.734, allocations: 3.984 kB / 1.699 GB, free: 146.3 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004/6.734, allocations: 437.5 kB / 1.699 GB, free: 145.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/6.734, allocations: 4 kB / 1.699 GB, free: 145.9 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005103/6.735, allocations: 115.3 kB / 1.699 GB, free: 145.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/6.735, allocations: 0 / 1.699 GB, free: 145.8 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/6.735, allocations: 20.58 kB / 1.699 GB, free: 145.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/6.735, allocations: 0 / 1.699 GB, free: 145.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/6.735, allocations: 3.938 kB / 1.699 GB, free: 145.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/6.736, allocations: 0.8428 MB / 1.7 GB, free: 145.2 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/6.736, allocations: 158.6 kB / 1.7 GB, free: 145 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.084e-05/6.736, allocations: 11.94 kB / 1.7 GB, free: 145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003902/6.737, allocations: 54.27 kB / 1.7 GB, free: 145 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/6.737, allocations: 59.47 kB / 1.701 GB, free: 144.9 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/6.737, allocations: 15.5 kB / 1.701 GB, free: 144.9 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001473/6.737, allocations: 217.2 kB / 1.701 GB, free: 144.7 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.91e-07/6.737, allocations: 0 / 1.701 GB, free: 144.7 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003441/6.737, allocations: 118.1 kB / 1.701 GB, free: 144.6 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (battery_1C.EAva,battery_1C.EBou,battery_1C.E_charged,battery_1C.E_discharged,battery_C20.EAva,battery_C20.EBou,battery_C20.E_charged,battery_C20.E_discharged) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,gain.T_start,gain.count,load_1C.T_start,load_1C.count,$whenCondition1,load_C20.T_start,load_C20.count) * Number of discrete states: 3 (load_C20.count,gain.count,load_1C.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001658/6.739, allocations: 1.413 MB / 1.702 GB, free: 143.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009924/6.74, allocations: 0.6732 MB / 1.703 GB, free: 142.6 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/6.74, allocations: 0 / 1.703 GB, free: 142.6 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004827/6.741, allocations: 272.2 kB / 1.703 GB, free: 142.3 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004036/6.741, allocations: 74.66 kB / 1.703 GB, free: 142.3 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005127/6.746, allocations: 4.61 MB / 1.708 GB, free: 137.6 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001445/6.746, allocations: 0.7981 MB / 1.709 GB, free: 136.7 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0003616/6.747, allocations: 87.61 kB / 1.709 GB, free: 136.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/6.747, allocations: 139.4 kB / 1.709 GB, free: 136.5 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/6.747, allocations: 3.938 kB / 1.709 GB, free: 136.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5358/7.283, allocations: 9.175 MB / 1.718 GB, free: 127.6 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001446/7.283, allocations: 224.6 kB / 1.718 GB, free: 127.3 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.935/9.218, allocations: 64 / 1.718 GB, free: 127.3 MB / 0.7169 GB (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatteryComplex_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatteryComplex.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1)