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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 208.7 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.404/1.404, allocations: 230.6 MB / 256.8 MB, free: 8.047 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.0024/0.0024, allocations: 283.2 kB / 313.5 MB, free: 2.844 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.211/1.211, allocations: 180.6 MB / 0.5377 GB, free: 13 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_ElectricalStorages_Examples_BatterySimple",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00278/0.00278, allocations: 102.8 kB / 0.7403 GB, free: 28.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1672, allocations: 95.39 MB / 0.8335 GB, free: 8.727 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003041/0.1703, allocations: 1.985 MB / 0.8354 GB, free: 6.727 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1717, allocations: 0.9282 MB / 0.8363 GB, free: 5.789 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.012e-05/0.1718, allocations: 7.938 kB / 0.8363 GB, free: 5.781 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.172, allocations: 63.83 kB / 0.8364 GB, free: 5.719 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.1721, allocations: 51.56 kB / 0.8364 GB, free: 5.668 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.1723, allocations: 91.77 kB / 0.8365 GB, free: 5.578 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.1726, allocations: 187.3 kB / 0.8367 GB, free: 5.395 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 8.541e-05/0.1726, allocations: 25.67 kB / 0.8367 GB, free: 5.363 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.1728, allocations: 91.58 kB / 0.8368 GB, free: 5.273 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1729, allocations: 79.67 kB / 0.8369 GB, free: 5.195 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.173, allocations: 8 kB / 0.8369 GB, free: 5.188 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.1731, allocations: 63.95 kB / 0.8369 GB, free: 5.125 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 3.808e-05/0.1731, allocations: 31.89 kB / 0.837 GB, free: 5.094 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 8.393e-05/0.1732, allocations: 71.59 kB / 0.837 GB, free: 5.023 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0002617/0.1735, allocations: 195.1 kB / 0.8372 GB, free: 4.832 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1735, allocations: 0 / 0.8372 GB, free: 4.832 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.482e-06/0.1735, allocations: 4 kB / 0.8372 GB, free: 4.828 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.1735, allocations: 0 / 0.8372 GB, free: 4.828 MB / 0.5763 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.0008703/0.1744, allocations: 443 kB / 0.8377 GB, free: 4.359 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1744, allocations: 9.938 kB / 0.8377 GB, free: 4.352 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.813e-05/0.1744, allocations: 8.188 kB / 0.8377 GB, free: 4.344 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.762e-05/0.1744, allocations: 38.75 kB / 0.8377 GB, free: 4.297 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.1747, allocations: 32.83 kB / 0.8377 GB, free: 4.266 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.1749, allocations: 178.2 kB / 0.8379 GB, free: 4.066 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.175, allocations: 8.375 kB / 0.8379 GB, free: 4.059 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.175, allocations: 8.312 kB / 0.8379 GB, free: 4.051 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.1753, allocations: 130.2 kB / 0.8381 GB, free: 3.918 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1753, allocations: 3.984 kB / 0.8381 GB, free: 3.914 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.1753, allocations: 8 kB / 0.8381 GB, free: 3.906 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1753, allocations: 0 / 0.8381 GB, free: 3.906 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003075/0.1756, allocations: 99.92 kB / 0.8382 GB, free: 3.809 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006297/0.1763, allocations: 375.7 kB / 0.8385 GB, free: 3.398 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003479/0.1766, allocations: 142.3 kB / 0.8387 GB, free: 3.25 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/0.1768, allocations: 68.81 kB / 0.8387 GB, free: 3.18 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004488/0.1772, allocations: 59.92 kB / 0.8388 GB, free: 3.121 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.1776, allocations: 131.3 kB / 0.8389 GB, free: 2.98 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.1776, allocations: 0 / 0.8389 GB, free: 2.98 MB / 0.5763 GB Notification: Performance of matching and sorting (n=16): time 0.0006541/0.1782, allocations: 244.7 kB / 0.8391 GB, free: 2.738 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.1783, allocations: 51.41 kB / 0.8392 GB, free: 2.676 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.1784, allocations: 188.6 kB / 0.8394 GB, free: 2.484 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1785, allocations: 29.7 kB / 0.8394 GB, free: 2.449 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 7.356e-05/0.1785, allocations: 108.1 kB / 0.8395 GB, free: 2.34 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 5.561e-05/0.1786, allocations: 67.41 kB / 0.8396 GB, free: 2.273 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.843e-05/0.1787, allocations: 41.7 kB / 0.8396 GB, free: 2.227 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1788, allocations: 334.8 kB / 0.8399 GB, free: 1.891 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.179, allocations: 68.81 kB / 0.84 GB, free: 1.82 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.1792, allocations: 91.53 kB / 0.8401 GB, free: 1.723 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.551/2.73, allocations: 378.8 MB / 1.21 GB, free: 12.16 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/2.73, allocations: 4 kB / 1.21 GB, free: 12.16 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005784/2.731, allocations: 252.9 kB / 1.21 GB, free: 11.96 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/2.731, allocations: 33.7 kB / 1.21 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/2.731, allocations: 0 / 1.21 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/2.731, allocations: 4.062 kB / 1.21 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/2.731, allocations: 46.28 kB / 1.21 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/2.731, allocations: 4 kB / 1.21 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/2.731, allocations: 23.83 kB / 1.21 GB, free: 11.87 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/2.732, allocations: 7.984 kB / 1.21 GB, free: 11.86 MB / 0.795 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.0002394/2.732, allocations: 157.2 kB / 1.21 GB, free: 11.72 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/2.732, allocations: 17.62 kB / 1.21 GB, free: 11.71 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005901/2.732, allocations: 234.2 kB / 1.211 GB, free: 11.54 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/2.732, allocations: 4 kB / 1.211 GB, free: 11.54 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/2.732, allocations: 4 kB / 1.211 GB, free: 11.54 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/2.732, allocations: 3.984 kB / 1.211 GB, free: 11.53 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/2.733, allocations: 223.5 kB / 1.211 GB, free: 11.31 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/2.733, allocations: 2.953 kB / 1.211 GB, free: 11.31 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/2.733, allocations: 41.38 kB / 1.211 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/2.733, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/2.733, allocations: 11.05 kB / 1.211 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/2.733, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/2.733, allocations: 0 / 1.211 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006961/2.734, allocations: 318.2 kB / 1.211 GB, free: 11.02 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.393e-05/2.734, allocations: 33.97 kB / 1.211 GB, free: 11 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/2.734, allocations: 2.938 kB / 1.211 GB, free: 11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/2.734, allocations: 17.7 kB / 1.211 GB, free: 10.98 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/2.734, allocations: 23.45 kB / 1.211 GB, free: 10.96 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/2.734, allocations: 7.438 kB / 1.211 GB, free: 10.96 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001173/2.734, allocations: 135.4 kB / 1.211 GB, free: 10.84 MB / 0.795 GB Notification: Performance of sort global known variables: time 6e-08/2.734, allocations: 0 / 1.211 GB, free: 10.84 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000287/2.734, allocations: 57.55 kB / 1.212 GB, free: 10.8 MB / 0.795 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.001049/2.735, allocations: 0.865 MB / 1.212 GB, free: 9.992 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004783/2.736, allocations: 211.5 kB / 1.213 GB, free: 9.812 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/2.736, allocations: 5.219 kB / 1.213 GB, free: 9.809 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001995/2.736, allocations: 79.62 kB / 1.213 GB, free: 9.75 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/2.736, allocations: 35.97 kB / 1.213 GB, free: 9.73 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003153/2.74, allocations: 2.305 MB / 1.215 GB, free: 7.582 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/2.74, allocations: 0.7281 MB / 1.216 GB, free: 6.824 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001252/2.74, allocations: 29.62 kB / 1.216 GB, free: 6.801 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/2.74, allocations: 55.41 kB / 1.216 GB, free: 6.746 MB / 0.795 GB Notification: Performance of SimCode: time 5.91e-07/2.74, allocations: 0 / 1.216 GB, free: 6.746 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02846/2.769, allocations: 4.97 MB / 1.221 GB, free: 1.961 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/13.92, allocations: 18.61 kB / 1.221 GB, free: 1.957 MB / 0.795 GB " [Timeout remaining time 646] (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: 18.026759592990857] Failed to read output from testmodel.py, exit status != 0: 14.08245889499085 14.103773581 13.925631197 Calling exit ...