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.004049/0.004049, allocations: 102.5 kB / 15.73 MB, free: 6.047 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.001039/0.001039, allocations: 196.8 kB / 16.68 MB, free: 5.961 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002051/0.002051, allocations: 286.9 kB / 290.8 MB, free: 1.746 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9125/0.9125, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 95.84 kB / 0.6809 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1703, allocations: 86.98 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003934/0.1743, allocations: 1.938 MB / 0.7678 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001612/0.176, allocations: 0.8587 MB / 0.7686 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.1761, allocations: 11.94 kB / 0.7686 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002862/0.1765, allocations: 51.89 kB / 0.7687 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.1766, allocations: 51.52 kB / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.1771, allocations: 91.69 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.1774, allocations: 191.4 kB / 0.769 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.1775, allocations: 25.53 kB / 0.769 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.1778, allocations: 91.62 kB / 0.7691 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.1779, allocations: 79.61 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.178, allocations: 12 kB / 0.7692 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.1781, allocations: 63.94 kB / 0.7692 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.216e-05/0.1782, allocations: 19.92 kB / 0.7693 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.023e-05/0.1783, allocations: 75.53 kB / 0.7693 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.1786, allocations: 187.4 kB / 0.7695 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1786, allocations: 7.938 kB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1786, allocations: 0 / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.505e-06/0.1786, allocations: 0 / 0.7695 GB, free: 5.195 MB / 0.5606 GB 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.001007/0.1796, allocations: 0.508 MB / 0.77 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1797, allocations: 8.031 kB / 0.77 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.865e-05/0.1798, allocations: 50.73 kB / 0.7701 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.209e-05/0.1798, allocations: 16.75 kB / 0.7701 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.1801, allocations: 227.9 kB / 0.7703 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.1801, allocations: 8.359 kB / 0.7703 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.1802, allocations: 12.38 kB / 0.7703 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002991/0.1805, allocations: 127.9 kB / 0.7704 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.1805, allocations: 3.984 kB / 0.7705 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.1805, allocations: 4 kB / 0.7705 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.1805, allocations: 4 kB / 0.7705 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002987/0.1808, allocations: 95.92 kB / 0.7706 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006815/0.1815, allocations: 420.4 kB / 0.771 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.1819, allocations: 130.5 kB / 0.7711 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.182, allocations: 76.81 kB / 0.7711 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006367/0.1827, allocations: 445.5 kB / 0.7716 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003724/0.1831, allocations: 137.4 kB / 0.7717 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 1.884e-06/0.1831, allocations: 0 / 0.7717 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.0006113/0.1837, allocations: 233.3 kB / 0.7719 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.1838, allocations: 55.41 kB / 0.772 GB, free: 2.387 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.1839, allocations: 180.1 kB / 0.7722 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.184, allocations: 33.7 kB / 0.7722 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.184, allocations: 108.1 kB / 0.7723 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.1841, allocations: 55.27 kB / 0.7723 GB, free: 2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.232e-05/0.1842, allocations: 37.7 kB / 0.7724 GB, free: 1.957 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.1843, allocations: 338.7 kB / 0.7727 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.1845, allocations: 76.72 kB / 0.7728 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1847, allocations: 91.67 kB / 0.7729 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.635/2.819, allocations: 378.8 MB / 1.143 GB, free: 284.9 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/2.819, allocations: 0.75 kB / 1.143 GB, free: 284.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004418/2.82, allocations: 257.9 kB / 1.143 GB, free: 284.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/2.82, allocations: 37.08 kB / 1.143 GB, free: 284.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/2.82, allocations: 1.562 kB / 1.143 GB, free: 284.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/2.82, allocations: 0 / 1.143 GB, free: 284.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/2.82, allocations: 43.72 kB / 1.143 GB, free: 284.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/2.82, allocations: 0 / 1.143 GB, free: 284.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001727/2.82, allocations: 27.14 kB / 1.143 GB, free: 284.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/2.82, allocations: 5.406 kB / 1.143 GB, free: 284.6 MB / 0.8419 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.685 * 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.0001586/2.82, allocations: 150.5 kB / 1.143 GB, free: 284.5 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/2.82, allocations: 14.78 kB / 1.143 GB, free: 284.5 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004837/2.821, allocations: 246.7 kB / 1.144 GB, free: 284.3 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/2.821, allocations: 7 kB / 1.144 GB, free: 284.3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/2.821, allocations: 2.125 kB / 1.144 GB, free: 284.3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/2.821, allocations: 0 / 1.144 GB, free: 284.3 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001559/2.821, allocations: 263.2 kB / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/2.821, allocations: 0 / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/2.821, allocations: 42.31 kB / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/2.821, allocations: 0 / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/2.821, allocations: 3.312 kB / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/2.821, allocations: 4 kB / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/2.821, allocations: 4.703 kB / 1.144 GB, free: 284 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005088/2.822, allocations: 311.8 kB / 1.144 GB, free: 283.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.222e-05/2.822, allocations: 110.8 kB / 1.144 GB, free: 283.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/2.822, allocations: 3.438 kB / 1.144 GB, free: 283.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/2.822, allocations: 11.98 kB / 1.144 GB, free: 283.6 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.777e-05/2.822, allocations: 23.41 kB / 1.144 GB, free: 283.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/2.822, allocations: 7.188 kB / 1.144 GB, free: 283.6 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.535e-05/2.822, allocations: 129.2 kB / 1.144 GB, free: 283.5 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/2.822, allocations: 0 / 1.144 GB, free: 283.5 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002425/2.823, allocations: 58.67 kB / 1.144 GB, free: 283.4 MB / 0.8419 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.0006963/2.823, allocations: 0.8622 MB / 1.145 GB, free: 282.6 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003693/2.824, allocations: 228.6 kB / 1.146 GB, free: 282.5 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/2.824, allocations: 1.422 kB / 1.146 GB, free: 282.5 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/2.824, allocations: 87.05 kB / 1.146 GB, free: 282.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/2.824, allocations: 40.48 kB / 1.146 GB, free: 282.4 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/2.826, allocations: 2.306 MB / 1.148 GB, free: 280.1 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/2.826, allocations: 0.7235 MB / 1.149 GB, free: 279.4 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001088/2.827, allocations: 35.62 kB / 1.149 GB, free: 279.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.746e-05/2.827, allocations: 59.42 kB / 1.149 GB, free: 279.3 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/2.827, allocations: 0 / 1.149 GB, free: 279.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/2.847, allocations: 4.77 MB / 1.153 GB, free: 274.7 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.264/10.11, allocations: 17.5 kB / 1.153 GB, free: 274.7 MB / 0.8419 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)