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.00116/0.00116, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001163/0.001163, allocations: 201.5 kB / 16.14 MB, free: 6.805 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.186/1.186, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001916/0.001916, allocations: 290.5 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8337/0.8337, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 91.98 kB / 0.5946 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1257, allocations: 86.99 MB / 0.6795 GB, free: 1.117 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003191/0.129, allocations: 2.671 MB / 0.6821 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.1304, allocations: 1.082 MB / 0.6832 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001004/0.1305, allocations: 11.94 kB / 0.6832 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002018/0.1307, allocations: 71.69 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.1309, allocations: 107.2 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.1312, allocations: 147.8 kB / 0.6835 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003347/0.1315, allocations: 490.2 kB / 0.684 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1317, allocations: 48.72 kB / 0.684 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002246/0.1319, allocations: 211 kB / 0.6842 GB, free: 12.28 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.1322, allocations: 211.1 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.1322, allocations: 16 kB / 0.6845 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.1324, allocations: 75.94 kB / 0.6845 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.396e-05/0.1324, allocations: 67.66 kB / 0.6846 GB, free: 11.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.1326, allocations: 167 kB / 0.6848 GB, free: 11.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.1329, allocations: 398.6 kB / 0.6851 GB, free: 11.36 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1329, allocations: 0 / 0.6851 GB, free: 11.36 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1329, allocations: 0 / 0.6851 GB, free: 11.36 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.133, allocations: 0 / 0.6851 GB, free: 11.36 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.001665/0.1346, allocations: 0.8094 MB / 0.6859 GB, free: 10.49 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1347, allocations: 8.031 kB / 0.6859 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.783e-05/0.1347, allocations: 58.73 kB / 0.686 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.073e-05/0.1348, allocations: 40.47 kB / 0.686 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.1351, allocations: 351.8 kB / 0.6864 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.1352, allocations: 12.81 kB / 0.6864 GB, free: 9.984 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.1352, allocations: 24.38 kB / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000659/0.1359, allocations: 328.8 kB / 0.6867 GB, free: 9.629 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1359, allocations: 7.906 kB / 0.6867 GB, free: 9.621 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.974e-05/0.1359, allocations: 4 kB / 0.6867 GB, free: 9.617 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.136, allocations: 4 kB / 0.6867 GB, free: 9.613 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007827/0.1367, allocations: 304.3 kB / 0.687 GB, free: 9.316 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009486/0.1377, allocations: 0.7695 MB / 0.6878 GB, free: 8.492 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009531/0.1387, allocations: 391 kB / 0.6881 GB, free: 8.094 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.1391, allocations: 201.6 kB / 0.6883 GB, free: 7.891 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005969/0.1397, allocations: 461.4 kB / 0.6888 GB, free: 7.348 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006544/0.1404, allocations: 328.6 kB / 0.6891 GB, free: 7.008 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.613e-06/0.1404, allocations: 0 / 0.6891 GB, free: 7.008 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.001496/0.1419, allocations: 0.6082 MB / 0.6897 GB, free: 6.395 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.266e-05/0.142, allocations: 85.11 kB / 0.6898 GB, free: 6.293 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.1422, allocations: 308.5 kB / 0.6901 GB, free: 5.973 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.1423, allocations: 33.7 kB / 0.6901 GB, free: 5.934 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.1424, allocations: 160.9 kB / 0.6902 GB, free: 5.773 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.1425, allocations: 142 kB / 0.6904 GB, free: 5.633 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.1426, allocations: 97.94 kB / 0.6905 GB, free: 5.531 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1428, allocations: 354.8 kB / 0.6908 GB, free: 5.176 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004795/0.1433, allocations: 207.4 kB / 0.691 GB, free: 4.969 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004802/0.1437, allocations: 246.4 kB / 0.6912 GB, free: 4.711 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.69/5.834, allocations: 0.866 GB / 1.557 GB, free: 32.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/5.834, allocations: 0 / 1.557 GB, free: 32.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001136/5.835, allocations: 0.6386 MB / 1.558 GB, free: 32.18 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/5.835, allocations: 92.03 kB / 1.558 GB, free: 32.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/5.835, allocations: 4 kB / 1.558 GB, free: 32.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/5.835, allocations: 4 kB / 1.558 GB, free: 32.06 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/5.836, allocations: 115 kB / 1.558 GB, free: 31.96 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/5.836, allocations: 4 kB / 1.558 GB, free: 31.96 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/5.836, allocations: 71.3 kB / 1.558 GB, free: 31.92 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.899e-05/5.836, allocations: 19.17 kB / 1.558 GB, free: 31.9 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.0002389/5.836, allocations: 196.7 kB / 1.558 GB, free: 31.74 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.598e-05/5.836, allocations: 41.25 kB / 1.558 GB, free: 31.72 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/5.838, allocations: 0.6264 MB / 1.559 GB, free: 31.25 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/5.838, allocations: 8 kB / 1.559 GB, free: 31.25 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/5.838, allocations: 3.938 kB / 1.559 GB, free: 31.24 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/5.838, allocations: 3.984 kB / 1.559 GB, free: 31.24 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000317/5.838, allocations: 443.3 kB / 1.559 GB, free: 30.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/5.838, allocations: 0 / 1.559 GB, free: 30.88 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000531/5.839, allocations: 115.6 kB / 1.56 GB, free: 30.77 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/5.839, allocations: 0 / 1.56 GB, free: 30.77 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/5.839, allocations: 20.92 kB / 1.56 GB, free: 30.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/5.839, allocations: 0 / 1.56 GB, free: 30.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/5.839, allocations: 4.5 kB / 1.56 GB, free: 30.75 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/5.84, allocations: 0.7824 MB / 1.56 GB, free: 30.05 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/5.84, allocations: 159.8 kB / 1.561 GB, free: 29.88 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.513e-05/5.84, allocations: 12 kB / 1.561 GB, free: 29.87 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/5.841, allocations: 43.89 kB / 1.561 GB, free: 29.83 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/5.841, allocations: 63.86 kB / 1.561 GB, free: 29.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/5.841, allocations: 22.61 kB / 1.561 GB, free: 29.75 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001368/5.841, allocations: 211.1 kB / 1.561 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/5.841, allocations: 0 / 1.561 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003282/5.841, allocations: 116 kB / 1.561 GB, free: 29.43 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.00163/5.843, allocations: 1.363 MB / 1.562 GB, free: 28.05 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009544/5.844, allocations: 0.6302 MB / 1.563 GB, free: 27.38 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/5.844, allocations: 1.094 kB / 1.563 GB, free: 27.38 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004751/5.844, allocations: 272.4 kB / 1.563 GB, free: 27.12 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/5.845, allocations: 63.83 kB / 1.563 GB, free: 27.06 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004863/5.85, allocations: 4.413 MB / 1.568 GB, free: 22.59 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001472/5.85, allocations: 0.8059 MB / 1.568 GB, free: 21.75 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0003612/5.85, allocations: 84.05 kB / 1.568 GB, free: 21.67 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/5.85, allocations: 143.4 kB / 1.569 GB, free: 21.53 MB / 0.7169 GB Notification: Performance of SimCode: time 4.4e-07/5.85, allocations: 0 / 1.569 GB, free: 21.53 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.87/7.721, allocations: 9.305 MB / 1.578 GB, free: 12.47 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/7.721, allocations: 241.8 kB / 1.578 GB, free: 12.21 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.887/10.61, allocations: 0 / 1.578 GB, free: 12.21 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)