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.001048/0.001048, allocations: 108 kB / 15.6 MB, free: 132 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.001181/0.001181, allocations: 198 kB / 16.54 MB, free: 6.672 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.262/1.262, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002173/0.002172, allocations: 275 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9054/0.9054, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 95.92 kB / 0.5953 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1471, allocations: 86.98 MB / 0.6803 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003507/0.1507, allocations: 2.633 MB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.1523, allocations: 1.077 MB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.1525, allocations: 7.938 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002346/0.1528, allocations: 83.56 kB / 0.684 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002399/0.153, allocations: 123 kB / 0.6841 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.1534, allocations: 175.6 kB / 0.6843 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004641/0.1539, allocations: 0.5139 MB / 0.6848 GB, free: 11.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.154, allocations: 40.72 kB / 0.6848 GB, free: 11.94 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003018/0.1544, allocations: 227.1 kB / 0.685 GB, free: 11.72 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.1547, allocations: 227.1 kB / 0.6852 GB, free: 11.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/0.1547, allocations: 28 kB / 0.6853 GB, free: 11.47 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001643/0.1549, allocations: 83.94 kB / 0.6854 GB, free: 11.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.874e-05/0.155, allocations: 71.73 kB / 0.6854 GB, free: 11.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.1552, allocations: 187 kB / 0.6856 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003868/0.1556, allocations: 414.6 kB / 0.686 GB, free: 10.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1556, allocations: 0 / 0.686 GB, free: 10.73 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1556, allocations: 0 / 0.686 GB, free: 10.73 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1556, allocations: 0 / 0.686 GB, free: 10.73 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.00168/0.1573, allocations: 0.8055 MB / 0.6868 GB, free: 9.855 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1573, allocations: 16.03 kB / 0.6868 GB, free: 9.84 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.049e-05/0.1574, allocations: 50.73 kB / 0.6868 GB, free: 9.781 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/0.1575, allocations: 40.47 kB / 0.6869 GB, free: 9.742 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003657/0.1578, allocations: 343.9 kB / 0.6872 GB, free: 9.367 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.1579, allocations: 12.81 kB / 0.6872 GB, free: 9.355 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.1579, allocations: 24.38 kB / 0.6872 GB, free: 9.332 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007095/0.1586, allocations: 340.8 kB / 0.6876 GB, free: 8.988 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1587, allocations: 3.906 kB / 0.6876 GB, free: 8.984 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.1587, allocations: 8 kB / 0.6876 GB, free: 8.977 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.1587, allocations: 8 kB / 0.6876 GB, free: 8.969 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008036/0.1595, allocations: 294 kB / 0.6879 GB, free: 8.684 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.1606, allocations: 0.7773 MB / 0.6886 GB, free: 7.852 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.1616, allocations: 392 kB / 0.689 GB, free: 7.453 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004646/0.1621, allocations: 209.6 kB / 0.6892 GB, free: 7.242 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000656/0.1627, allocations: 457.4 kB / 0.6896 GB, free: 6.703 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006757/0.1634, allocations: 320.9 kB / 0.6899 GB, free: 6.371 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.713e-06/0.1634, allocations: 0 / 0.6899 GB, free: 6.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.001551/0.165, allocations: 0.6088 MB / 0.6905 GB, free: 5.758 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.1651, allocations: 85.05 kB / 0.6906 GB, free: 5.656 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1654, allocations: 308.5 kB / 0.6909 GB, free: 5.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.1654, allocations: 41.64 kB / 0.691 GB, free: 5.293 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.1655, allocations: 156.9 kB / 0.6911 GB, free: 5.137 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.1657, allocations: 150 kB / 0.6912 GB, free: 4.988 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.1658, allocations: 94 kB / 0.6913 GB, free: 4.891 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1659, allocations: 346.8 kB / 0.6917 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/0.1665, allocations: 211.4 kB / 0.6919 GB, free: 4.332 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.167, allocations: 246.4 kB / 0.6921 GB, free: 4.074 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.083/6.25, allocations: 0.866 GB / 1.558 GB, free: 31.42 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/6.25, allocations: 8 kB / 1.558 GB, free: 31.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001183/6.251, allocations: 0.6318 MB / 1.559 GB, free: 30.93 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/6.251, allocations: 92.22 kB / 1.559 GB, free: 30.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/6.251, allocations: 4.125 kB / 1.559 GB, free: 30.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/6.251, allocations: 4 kB / 1.559 GB, free: 30.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000487/6.252, allocations: 118.4 kB / 1.559 GB, free: 30.71 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/6.252, allocations: 0 / 1.559 GB, free: 30.71 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/6.252, allocations: 71.17 kB / 1.559 GB, free: 30.67 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/6.252, allocations: 18.8 kB / 1.559 GB, free: 30.66 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.0002343/6.253, allocations: 195.4 kB / 1.559 GB, free: 30.49 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/6.253, allocations: 42.53 kB / 1.559 GB, free: 30.47 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/6.254, allocations: 0.6342 MB / 1.56 GB, free: 30.01 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/6.254, allocations: 8 kB / 1.56 GB, free: 30 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/6.254, allocations: 7.938 kB / 1.56 GB, free: 29.99 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/6.254, allocations: 3.984 kB / 1.56 GB, free: 29.99 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000339/6.254, allocations: 435.1 kB / 1.56 GB, free: 29.63 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/6.254, allocations: 5.438 kB / 1.56 GB, free: 29.62 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005189/6.255, allocations: 103.5 kB / 1.56 GB, free: 29.53 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/6.255, allocations: 4.562 kB / 1.56 GB, free: 29.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/6.255, allocations: 14.14 kB / 1.56 GB, free: 29.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/6.255, allocations: 4 kB / 1.56 GB, free: 29.51 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/6.255, allocations: 7.938 kB / 1.56 GB, free: 29.5 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/6.256, allocations: 0.7816 MB / 1.561 GB, free: 28.8 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/6.257, allocations: 161.9 kB / 1.561 GB, free: 28.64 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.374e-05/6.257, allocations: 14.16 kB / 1.561 GB, free: 28.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003838/6.257, allocations: 39.89 kB / 1.561 GB, free: 28.59 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/6.257, allocations: 65.61 kB / 1.562 GB, free: 28.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/6.257, allocations: 19.98 kB / 1.562 GB, free: 28.5 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001472/6.257, allocations: 211.1 kB / 1.562 GB, free: 28.3 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/6.257, allocations: 4 kB / 1.562 GB, free: 28.3 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003398/6.258, allocations: 113 kB / 1.562 GB, free: 28.19 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.00162/6.259, allocations: 1.365 MB / 1.563 GB, free: 26.8 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001066/6.26, allocations: 0.656 MB / 1.564 GB, free: 26.12 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/6.26, allocations: 1.094 kB / 1.564 GB, free: 26.12 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004899/6.261, allocations: 263.7 kB / 1.564 GB, free: 25.86 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/6.261, allocations: 83.7 kB / 1.564 GB, free: 25.79 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004958/6.266, allocations: 4.276 MB / 1.568 GB, free: 21.45 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001908/6.266, allocations: 0.8051 MB / 1.569 GB, free: 20.62 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000374/6.267, allocations: 80.84 kB / 1.569 GB, free: 20.54 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/6.267, allocations: 151.4 kB / 1.569 GB, free: 20.39 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/6.267, allocations: 0 / 1.569 GB, free: 20.39 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/6.292, allocations: 9.809 MB / 1.579 GB, free: 10.8 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.204/13.5, allocations: 3 kB / 1.579 GB, free: 10.8 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)