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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 104.3 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 191.7 kB / 19.41 MB, free: 3.68 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002503/0.002503, allocations: 296.8 kB / 303 MB, free: 9.512 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.214/1.214, allocations: 180.9 MB / 0.5261 GB, free: 14.78 MB / 382.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.004085/0.004085, allocations: 100.9 kB / 0.7247 GB, free: 40.02 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2333, allocations: 94.15 MB / 0.8167 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.004341/0.2376, allocations: 1.964 MB / 0.8186 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2396, allocations: 0.8776 MB / 0.8195 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2397, allocations: 4 kB / 0.8195 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.24, allocations: 51.56 kB / 0.8195 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001627/0.2402, allocations: 55.56 kB / 0.8196 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004085/0.2406, allocations: 91.77 kB / 0.8197 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003286/0.2409, allocations: 191.3 kB / 0.8198 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.241, allocations: 9.547 kB / 0.8198 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.2412, allocations: 95.62 kB / 0.8199 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.2414, allocations: 75.61 kB / 0.82 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.654e-05/0.2414, allocations: 12 kB / 0.82 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.2416, allocations: 71.95 kB / 0.8201 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.858e-05/0.2417, allocations: 23.91 kB / 0.8201 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.2418, allocations: 75.58 kB / 0.8202 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.2422, allocations: 183.5 kB / 0.8204 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.2422, allocations: 4 kB / 0.8204 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2422, allocations: 3.938 kB / 0.8204 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.583e-06/0.2422, allocations: 0 / 0.8204 GB, free: 1.691 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.001308/0.2435, allocations: 0.5079 MB / 0.8209 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/0.2436, allocations: 8.031 kB / 0.8209 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.355e-05/0.2436, allocations: 42.69 kB / 0.8209 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.682e-05/0.2437, allocations: 16.84 kB / 0.8209 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003833/0.2441, allocations: 236.6 kB / 0.8211 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.2441, allocations: 4.375 kB / 0.8212 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.864e-05/0.2441, allocations: 12.38 kB / 0.8212 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004231/0.2446, allocations: 124.1 kB / 0.8213 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.2446, allocations: 4 kB / 0.8213 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.2446, allocations: 3.938 kB / 0.8213 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.2446, allocations: 7.938 kB / 0.8213 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004372/0.2451, allocations: 103.9 kB / 0.8214 GB, free: 0.5273 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009262/0.246, allocations: 416.5 kB / 0.8218 GB, free: 72 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/0.2465, allocations: 126.5 kB / 0.8219 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/0.2467, allocations: 68.75 kB / 0.822 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008713/0.2476, allocations: 445.5 kB / 0.8224 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004706/0.2481, allocations: 127.3 kB / 0.8225 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 2.394e-06/0.2481, allocations: 0 / 0.8225 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0008799/0.2489, allocations: 233 kB / 0.8227 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.249, allocations: 63.33 kB / 0.8228 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.2493, allocations: 178.5 kB / 0.823 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.2493, allocations: 37.64 kB / 0.823 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.849e-05/0.2494, allocations: 108.1 kB / 0.8231 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.821e-05/0.2495, allocations: 59.48 kB / 0.8232 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2496, allocations: 37.7 kB / 0.8232 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001858/0.2498, allocations: 334.8 kB / 0.8235 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.25, allocations: 72.81 kB / 0.8236 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002978/0.2503, allocations: 92.14 kB / 0.8237 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.365/2.615, allocations: 378.8 MB / 1.194 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/2.615, allocations: 0 / 1.194 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004748/2.616, allocations: 258.8 kB / 1.194 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/2.616, allocations: 30.2 kB / 1.194 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/2.616, allocations: 0 / 1.194 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/2.616, allocations: 4 kB / 1.194 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/2.616, allocations: 44.66 kB / 1.194 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/2.616, allocations: 0.75 kB / 1.194 GB, free: 14.94 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/2.616, allocations: 20.78 kB / 1.194 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/2.616, allocations: 12.06 kB / 1.194 GB, free: 14.91 MB / 0.7481 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.000175/2.617, allocations: 151.5 kB / 1.194 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/2.617, allocations: 19.12 kB / 1.194 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005273/2.617, allocations: 244.8 kB / 1.194 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/2.617, allocations: 0 / 1.194 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/2.617, allocations: 0.5 kB / 1.194 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/2.617, allocations: 0.9375 kB / 1.194 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/2.617, allocations: 259.5 kB / 1.195 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/2.617, allocations: 0.5625 kB / 1.195 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/2.618, allocations: 37.97 kB / 1.195 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/2.618, allocations: 8 kB / 1.195 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/2.618, allocations: 3.938 kB / 1.195 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/2.618, allocations: 1 kB / 1.195 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/2.618, allocations: 0 / 1.195 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005902/2.618, allocations: 322.1 kB / 1.195 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/2.618, allocations: 106.4 kB / 1.195 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/2.618, allocations: 11.61 kB / 1.195 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/2.618, allocations: 11.3 kB / 1.195 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.763e-05/2.619, allocations: 23.98 kB / 1.195 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/2.619, allocations: 5 kB / 1.195 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 7.949e-05/2.619, allocations: 130.9 kB / 1.195 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of sort global known variables: time 8.1e-08/2.619, allocations: 0 / 1.195 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002691/2.619, allocations: 61.27 kB / 1.195 GB, free: 13.72 MB / 0.7481 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.0007754/2.62, allocations: 0.8662 MB / 1.196 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000406/2.62, allocations: 219.1 kB / 1.196 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/2.62, allocations: 0.9688 kB / 1.196 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001776/2.62, allocations: 85.14 kB / 1.196 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/2.621, allocations: 38.36 kB / 1.196 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/2.623, allocations: 2.307 MB / 1.199 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/2.623, allocations: 0.7208 MB / 1.199 GB, free: 9.781 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001269/2.623, allocations: 32.25 kB / 1.199 GB, free: 9.754 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.383e-05/2.623, allocations: 58.67 kB / 1.199 GB, free: 9.715 MB / 0.7481 GB Notification: Performance of SimCode: time 4.71e-07/2.623, allocations: 0 / 1.199 GB, free: 9.715 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02798/2.651, allocations: 4.717 MB / 1.204 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.235/10.89, allocations: 6.391 kB / 1.204 GB, free: 5.191 MB / 0.7481 GB " [Timeout remaining time 649] (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 --stepSize=12614.4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple.fmu > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.969257011078298] Failed to read output from testmodel.py, exit status != 0: 10.95995872002095 10.978854702 10.732628237 Calling exit ...