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.007605/0.007605, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.002007/0.002007, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.649/1.649, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002542/0.002542, allocations: 281 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.031/1.031, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002755/0.002755, allocations: 95.84 kB / 0.6809 GB, free: 7.488 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4797/0.4824, allocations: 86.97 MB / 0.7659 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003033/0.4855, allocations: 1.945 MB / 0.7678 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001369/0.4869, allocations: 0.8582 MB / 0.7686 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.592e-05/0.487, allocations: 7.938 kB / 0.7686 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.4872, allocations: 51.69 kB / 0.7687 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.4873, allocations: 51.55 kB / 0.7687 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.4876, allocations: 87.77 kB / 0.7688 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000233/0.4878, allocations: 195.2 kB / 0.769 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.369e-05/0.4879, allocations: 21.36 kB / 0.769 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.4881, allocations: 91.61 kB / 0.7691 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.4882, allocations: 75.69 kB / 0.7692 GB, free: 484 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.4882, allocations: 8 kB / 0.7692 GB, free: 476 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.4884, allocations: 67.88 kB / 0.7692 GB, free: 408 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.031e-05/0.4884, allocations: 27.84 kB / 0.7693 GB, free: 380 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.416e-05/0.4885, allocations: 79.53 kB / 0.7693 GB, free: 300 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.4888, allocations: 188.6 kB / 0.7695 GB, free: 116 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.4888, allocations: 4 kB / 0.7695 GB, free: 112 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.242e-06/0.4888, allocations: 0 / 0.7695 GB, free: 112 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.4888, allocations: 0 / 0.7695 GB, free: 112 kB / 0.5294 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.0009562/0.4898, allocations: 0.504 MB / 0.77 GB, free: 15.55 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.4898, allocations: 12.03 kB / 0.77 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.4899, allocations: 38.75 kB / 0.7701 GB, free: 15.49 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.86e-05/0.4899, allocations: 24.78 kB / 0.7701 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.4902, allocations: 244 kB / 0.7703 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.4902, allocations: 4.375 kB / 0.7703 GB, free: 15.19 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.4903, allocations: 12.36 kB / 0.7703 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.4906, allocations: 121.7 kB / 0.7705 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4906, allocations: 0 / 0.7705 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.4906, allocations: 8 kB / 0.7705 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.4906, allocations: 0 / 0.7705 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003108/0.4909, allocations: 107.9 kB / 0.7706 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006557/0.4916, allocations: 420.5 kB / 0.771 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.4919, allocations: 130.5 kB / 0.7711 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.4921, allocations: 76.81 kB / 0.7712 GB, free: 14.26 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006646/0.4928, allocations: 445.5 kB / 0.7716 GB, free: 13.73 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003357/0.4932, allocations: 126.7 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.4932, allocations: 4 kB / 0.7717 GB, free: 13.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.0006438/0.4938, allocations: 233.8 kB / 0.7719 GB, free: 13.36 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.4939, allocations: 55.41 kB / 0.772 GB, free: 13.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.4941, allocations: 174.5 kB / 0.7722 GB, free: 13.12 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.4941, allocations: 33.69 kB / 0.7722 GB, free: 13.08 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.896e-05/0.4942, allocations: 112.1 kB / 0.7723 GB, free: 12.96 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.792e-05/0.4943, allocations: 63.47 kB / 0.7724 GB, free: 12.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.605e-05/0.4943, allocations: 41.7 kB / 0.7724 GB, free: 12.86 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4945, allocations: 334.8 kB / 0.7727 GB, free: 12.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.4947, allocations: 72.81 kB / 0.7728 GB, free: 12.45 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.4949, allocations: 86.53 kB / 0.7729 GB, free: 12.35 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.296/2.791, allocations: 378.8 MB / 1.143 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/2.791, allocations: 4 kB / 1.143 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004415/2.792, allocations: 249.5 kB / 1.143 GB, free: 9.047 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/2.792, allocations: 36.77 kB / 1.143 GB, free: 9.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/2.792, allocations: 7.453 kB / 1.143 GB, free: 9.004 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/2.792, allocations: 0 / 1.143 GB, free: 9.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/2.792, allocations: 41.75 kB / 1.143 GB, free: 8.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/2.792, allocations: 8.062 kB / 1.143 GB, free: 8.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/2.792, allocations: 23.47 kB / 1.143 GB, free: 8.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/2.792, allocations: 7.812 kB / 1.143 GB, free: 8.941 MB / 0.7169 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.0001463/2.792, allocations: 151 kB / 1.143 GB, free: 8.805 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/2.792, allocations: 20.42 kB / 1.143 GB, free: 8.793 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000474/2.793, allocations: 239.4 kB / 1.144 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/2.793, allocations: 4 kB / 1.144 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/2.793, allocations: 3.984 kB / 1.144 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/2.793, allocations: 0 / 1.144 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001562/2.793, allocations: 254.2 kB / 1.144 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/2.793, allocations: 0.6562 kB / 1.144 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/2.793, allocations: 39.98 kB / 1.144 GB, free: 8.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/2.793, allocations: 3.984 kB / 1.144 GB, free: 8.309 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/2.793, allocations: 11.81 kB / 1.144 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/2.793, allocations: 0 / 1.144 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/2.793, allocations: 0 / 1.144 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005226/2.794, allocations: 320.8 kB / 1.144 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.185e-05/2.794, allocations: 104.7 kB / 1.144 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.032e-05/2.794, allocations: 11.92 kB / 1.144 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/2.794, allocations: 8 kB / 1.144 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.725e-05/2.794, allocations: 20.84 kB / 1.144 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/2.794, allocations: 4 kB / 1.144 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.622e-05/2.794, allocations: 140.6 kB / 1.144 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/2.794, allocations: 3.094 kB / 1.144 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000315/2.795, allocations: 54.47 kB / 1.144 GB, free: 7.656 MB / 0.7169 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.0006721/2.795, allocations: 0.8705 MB / 1.145 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003759/2.796, allocations: 229.3 kB / 1.146 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/2.796, allocations: 0 / 1.146 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000165/2.796, allocations: 91.83 kB / 1.146 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/2.796, allocations: 39.77 kB / 1.146 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/2.798, allocations: 2.294 MB / 1.148 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/2.798, allocations: 0.7314 MB / 1.149 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001027/2.799, allocations: 29.52 kB / 1.149 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.409e-05/2.799, allocations: 59.41 kB / 1.149 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/2.799, allocations: 8 kB / 1.149 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4322/3.231, allocations: 4.672 MB / 1.153 GB, free: 14.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/14.41, allocations: 8.547 kB / 1.153 GB, free: 14.69 MB / 0.7325 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)