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.0009313/0.0009313, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.00629/0.00629, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.218/1.218, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001649/0.001649, allocations: 266.4 kB / 291.7 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8991/0.8991, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004692/0.0004692, allocations: 12.56 kB / 0.5988 GB, free: 27.8 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1365, allocations: 88.54 MB / 0.6852 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.00182/0.1383, allocations: 1.642 MB / 0.6868 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1395, allocations: 0.8515 MB / 0.6877 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.377e-05/0.1395, allocations: 7.438 kB / 0.6877 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001676/0.1397, allocations: 51.84 kB / 0.6877 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.93e-05/0.1398, allocations: 43.69 kB / 0.6878 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.14, allocations: 71.86 kB / 0.6878 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.1402, allocations: 175.3 kB / 0.688 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.027e-05/0.1403, allocations: 30.67 kB / 0.688 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.1404, allocations: 68.94 kB / 0.6881 GB, free: 12.05 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001161/0.1405, allocations: 87.53 kB / 0.6882 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.1406, allocations: 5.812 kB / 0.6882 GB, free: 11.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.1407, allocations: 55.95 kB / 0.6882 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.815e-05/0.1407, allocations: 15.92 kB / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.942e-05/0.1408, allocations: 97.28 kB / 0.6883 GB, free: 11.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.141, allocations: 173.9 kB / 0.6885 GB, free: 11.62 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.141, allocations: 4 kB / 0.6885 GB, free: 11.61 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.141, allocations: 0 / 0.6885 GB, free: 11.61 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.141, allocations: 0 / 0.6885 GB, free: 11.61 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007662/0.1418, allocations: 500 kB / 0.689 GB, free: 11.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.1418, allocations: 12.59 kB / 0.689 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.1419, allocations: 38.73 kB / 0.689 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.1419, allocations: 18.47 kB / 0.6891 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.1421, allocations: 232 kB / 0.6893 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.1421, allocations: 8.375 kB / 0.6893 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.1422, allocations: 12.36 kB / 0.6893 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.1425, allocations: 132.1 kB / 0.6894 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1425, allocations: 4 kB / 0.6894 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.1426, allocations: 4 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1426, allocations: 2.844 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.1429, allocations: 111.9 kB / 0.6895 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005687/0.1435, allocations: 422.7 kB / 0.6899 GB, free: 10 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003243/0.1438, allocations: 141.1 kB / 0.6901 GB, free: 9.859 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.144, allocations: 84.81 kB / 0.6902 GB, free: 9.773 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006012/0.1446, allocations: 449.4 kB / 0.6906 GB, free: 9.242 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003016/0.1449, allocations: 141.6 kB / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.1449, allocations: 0 / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.0005982/0.1455, allocations: 245.4 kB / 0.691 GB, free: 8.848 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.1456, allocations: 51.41 kB / 0.691 GB, free: 8.785 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.1457, allocations: 184.1 kB / 0.6912 GB, free: 8.598 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.1458, allocations: 29.7 kB / 0.6912 GB, free: 8.562 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.061e-05/0.1458, allocations: 112.1 kB / 0.6913 GB, free: 8.449 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.292e-05/0.1459, allocations: 51.17 kB / 0.6914 GB, free: 8.398 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.1459, allocations: 29.7 kB / 0.6914 GB, free: 8.363 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.146, allocations: 338.8 kB / 0.6917 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.1462, allocations: 80.75 kB / 0.6918 GB, free: 7.941 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1464, allocations: 90.47 kB / 0.6919 GB, free: 7.844 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.652/2.798, allocations: 445.4 MB / 1.127 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/2.799, allocations: 0 / 1.127 GB, free: 180.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004516/2.799, allocations: 263.5 kB / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/2.799, allocations: 39.41 kB / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/2.799, allocations: 0 / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/2.799, allocations: 4 kB / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/2.799, allocations: 39.97 kB / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/2.799, allocations: 0 / 1.127 GB, free: 180.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/2.799, allocations: 28.41 kB / 1.127 GB, free: 180.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.86e-05/2.799, allocations: 17.62 kB / 1.127 GB, free: 180.2 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.6850000000000001 * 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.0001579/2.8, allocations: 152.9 kB / 1.127 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/2.8, allocations: 15.19 kB / 1.127 GB, free: 180.1 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005244/2.8, allocations: 258.7 kB / 1.128 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/2.8, allocations: 4 kB / 1.128 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/2.8, allocations: 0 / 1.128 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/2.8, allocations: 0 / 1.128 GB, free: 179.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000157/2.8, allocations: 264.5 kB / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/2.8, allocations: 1.078 kB / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/2.801, allocations: 39.97 kB / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/2.801, allocations: 4 kB / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/2.801, allocations: 4.875 kB / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/2.801, allocations: 4 kB / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/2.801, allocations: 0 / 1.128 GB, free: 179.6 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005521/2.801, allocations: 337.6 kB / 1.128 GB, free: 179.3 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/2.801, allocations: 100 kB / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/2.801, allocations: 7.438 kB / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/2.801, allocations: 19.42 kB / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/2.802, allocations: 15.42 kB / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/2.802, allocations: 7.984 kB / 1.128 GB, free: 179.2 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.737e-05/2.802, allocations: 131.9 kB / 1.129 GB, free: 179.1 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/2.802, allocations: 3.609 kB / 1.129 GB, free: 179.1 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002472/2.802, allocations: 65.12 kB / 1.129 GB, free: 179 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.0007262/2.803, allocations: 0.8779 MB / 1.129 GB, free: 178.2 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004059/2.803, allocations: 230.9 kB / 1.13 GB, free: 178 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/2.803, allocations: 0 / 1.13 GB, free: 178 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001889/2.803, allocations: 98.3 kB / 1.13 GB, free: 177.9 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/2.804, allocations: 32.36 kB / 1.13 GB, free: 177.9 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/2.806, allocations: 2.441 MB / 1.132 GB, free: 175.6 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.748e-05/2.806, allocations: 0.7245 MB / 1.133 GB, free: 174.9 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001338/2.806, allocations: 31.27 kB / 1.133 GB, free: 174.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.809e-05/2.806, allocations: 59.16 kB / 1.133 GB, free: 174.8 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.806, allocations: 0 / 1.133 GB, free: 174.8 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3723/3.179, allocations: 4.269 MB / 1.137 GB, free: 170.8 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/3.179, allocations: 233.7 kB / 1.137 GB, free: 170.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.572/4.751, allocations: 0 / 1.137 GB, free: 170.5 MB / 0.7169 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)