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.001004/0.001004, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001047/0.001047, allocations: 195.7 kB / 16.26 MB, free: 6.621 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.227/1.227, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001977/0.001976, allocations: 275 kB / 290.3 MB, free: 2.09 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8505/0.8505, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 97.05 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1408, allocations: 86.98 MB / 0.6797 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003091/0.144, allocations: 2.679 MB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.1453, allocations: 1.055 MB / 0.6834 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1454, allocations: 11.94 kB / 0.6834 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.1456, allocations: 67.69 kB / 0.6834 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001822/0.1458, allocations: 111.2 kB / 0.6836 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003196/0.1461, allocations: 155.7 kB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.1465, allocations: 0.5099 MB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.1466, allocations: 40.72 kB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002339/0.1469, allocations: 239 kB / 0.6845 GB, free: 12.1 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.1471, allocations: 223.1 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.607e-05/0.1472, allocations: 32 kB / 0.6847 GB, free: 11.85 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.1473, allocations: 79.95 kB / 0.6848 GB, free: 11.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.1474, allocations: 79.66 kB / 0.6849 GB, free: 11.69 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001386/0.1475, allocations: 187 kB / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.1478, allocations: 410.6 kB / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1479, allocations: 0 / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1479, allocations: 0 / 0.6854 GB, free: 11.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.1479, allocations: 0 / 0.6854 GB, free: 11.11 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.001548/0.1494, allocations: 0.8094 MB / 0.6862 GB, free: 10.23 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.1495, allocations: 12.03 kB / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.893e-05/0.1495, allocations: 54.73 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.634e-05/0.1496, allocations: 44.45 kB / 0.6863 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.1499, allocations: 343.9 kB / 0.6867 GB, free: 9.742 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.15, allocations: 20.81 kB / 0.6867 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.15, allocations: 20.38 kB / 0.6867 GB, free: 9.703 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00064/0.1507, allocations: 328.8 kB / 0.687 GB, free: 9.371 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1507, allocations: 3.906 kB / 0.687 GB, free: 9.367 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/0.1507, allocations: 8 kB / 0.687 GB, free: 9.359 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1507, allocations: 11.98 kB / 0.687 GB, free: 9.348 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007481/0.1515, allocations: 292.4 kB / 0.6873 GB, free: 9.062 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009172/0.1524, allocations: 0.7851 MB / 0.6881 GB, free: 8.223 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009274/0.1534, allocations: 385.5 kB / 0.6884 GB, free: 7.828 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004225/0.1538, allocations: 205.6 kB / 0.6886 GB, free: 7.621 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005542/0.1544, allocations: 453.4 kB / 0.6891 GB, free: 7.086 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006122/0.155, allocations: 336.6 kB / 0.6894 GB, free: 6.738 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.743e-06/0.155, allocations: 0 / 0.6894 GB, free: 6.738 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.001395/0.1564, allocations: 0.606 MB / 0.69 GB, free: 6.129 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.1564, allocations: 89.11 kB / 0.6901 GB, free: 6.023 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.1567, allocations: 304.5 kB / 0.6904 GB, free: 5.707 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.1568, allocations: 37.7 kB / 0.6904 GB, free: 5.664 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.984e-05/0.1569, allocations: 156.9 kB / 0.6905 GB, free: 5.508 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.905e-05/0.157, allocations: 142 kB / 0.6907 GB, free: 5.367 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1571, allocations: 98 kB / 0.6908 GB, free: 5.266 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1572, allocations: 354.7 kB / 0.6911 GB, free: 4.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004445/0.1577, allocations: 211.4 kB / 0.6913 GB, free: 4.699 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/0.1581, allocations: 246.4 kB / 0.6915 GB, free: 4.441 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.396/5.554, allocations: 0.866 GB / 1.558 GB, free: 32.05 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/5.554, allocations: 0 / 1.558 GB, free: 32.05 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001174/5.556, allocations: 0.6322 MB / 1.558 GB, free: 31.57 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/5.556, allocations: 91.53 kB / 1.558 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/5.556, allocations: 4 kB / 1.558 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/5.556, allocations: 4 kB / 1.558 GB, free: 31.46 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/5.556, allocations: 118.9 kB / 1.558 GB, free: 31.36 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/5.556, allocations: 4 kB / 1.558 GB, free: 31.35 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004408/5.557, allocations: 67.95 kB / 1.558 GB, free: 31.31 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/5.557, allocations: 23.42 kB / 1.559 GB, free: 31.29 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.0002542/5.557, allocations: 192.4 kB / 1.559 GB, free: 31.13 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.802e-05/5.557, allocations: 37.19 kB / 1.559 GB, free: 31.11 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/5.558, allocations: 0.6327 MB / 1.559 GB, free: 30.65 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/5.558, allocations: 11.83 kB / 1.559 GB, free: 30.64 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/5.558, allocations: 3.938 kB / 1.559 GB, free: 30.64 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/5.558, allocations: 3.984 kB / 1.559 GB, free: 30.63 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003393/5.559, allocations: 438 kB / 1.56 GB, free: 30.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/5.559, allocations: 0 / 1.56 GB, free: 30.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005296/5.559, allocations: 115.4 kB / 1.56 GB, free: 30.16 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/5.559, allocations: 0 / 1.56 GB, free: 30.16 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/5.559, allocations: 19.42 kB / 1.56 GB, free: 30.15 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/5.559, allocations: 0 / 1.56 GB, free: 30.15 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/5.559, allocations: 7.938 kB / 1.56 GB, free: 30.14 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/5.561, allocations: 0.7745 MB / 1.561 GB, free: 29.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001358/5.561, allocations: 163.8 kB / 1.561 GB, free: 29.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/5.561, allocations: 12 kB / 1.561 GB, free: 29.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/5.561, allocations: 50.14 kB / 1.561 GB, free: 29.21 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/5.562, allocations: 63.86 kB / 1.561 GB, free: 29.14 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/5.562, allocations: 15.98 kB / 1.561 GB, free: 29.13 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001394/5.562, allocations: 217.8 kB / 1.561 GB, free: 28.92 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/5.562, allocations: 0 / 1.561 GB, free: 28.92 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003425/5.562, allocations: 114 kB / 1.561 GB, free: 28.81 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.001631/5.564, allocations: 1.365 MB / 1.563 GB, free: 27.43 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001082/5.565, allocations: 0.6621 MB / 1.563 GB, free: 26.74 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/5.565, allocations: 0 / 1.563 GB, free: 26.74 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004972/5.565, allocations: 263.9 kB / 1.564 GB, free: 26.48 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/5.566, allocations: 75.45 kB / 1.564 GB, free: 26.42 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005254/5.571, allocations: 4.402 MB / 1.568 GB, free: 21.95 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/5.571, allocations: 0.8012 MB / 1.569 GB, free: 21.12 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.00039/5.572, allocations: 84.8 kB / 1.569 GB, free: 21.04 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/5.572, allocations: 144.8 kB / 1.569 GB, free: 20.9 MB / 0.7169 GB Notification: Performance of SimCode: time 7.72e-07/5.572, allocations: 0 / 1.569 GB, free: 20.9 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/5.59, allocations: 9.63 MB / 1.578 GB, free: 11.53 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/5.59, allocations: 233 kB / 1.579 GB, free: 11.28 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/7.443, allocations: 1.875 kB / 1.579 GB, free: 11.28 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)