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.0008855/0.0008855, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001109/0.001109, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8819/0.8819, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.001429/0.001429, allocations: 222.9 kB / 259.4 MB, free: 13.02 MB / 250.7 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 0.6665/0.6665, allocations: 138.4 MB / 454.3 MB, free: 29.98 MB / 410.7 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="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 1.553e-06/1.553e-06, allocations: 0 / 0.6462 GB, free: 1.922 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.255e-05/1.411e-05, allocations: 8.891 kB / 0.6462 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.2252/0.2252, allocations: 1.901 MB / 0.6481 GB, free: 56.06 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.2263, allocations: 0.8476 MB / 0.6489 GB, free: 56 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.238e-05/0.2264, allocations: 7.594 kB / 0.6489 GB, free: 56 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.2265, allocations: 45.12 kB / 0.649 GB, free: 55.98 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 7.174e-05/0.2266, allocations: 52.5 kB / 0.649 GB, free: 55.98 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.2268, allocations: 98.86 kB / 0.6491 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.227, allocations: 198.1 kB / 0.6493 GB, free: 55.92 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 8.007e-05/0.2271, allocations: 14.94 kB / 0.6493 GB, free: 55.91 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.2272, allocations: 120.1 kB / 0.6494 GB, free: 55.9 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 8.535e-05/0.2273, allocations: 65.8 kB / 0.6495 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.2273, allocations: 9.375 kB / 0.6495 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 9.509e-05/0.2274, allocations: 66.25 kB / 0.6496 GB, free: 55.89 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.772e-05/0.2274, allocations: 30.2 kB / 0.6496 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 5.031e-05/0.2275, allocations: 45.97 kB / 0.6496 GB, free: 55.88 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.2277, allocations: 205.6 kB / 0.6498 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2277, allocations: 0.6562 kB / 0.6498 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of FrontEnd: time 9.22e-07/0.2277, allocations: 0.9375 kB / 0.6498 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2277, allocations: 3.938 kB / 0.6498 GB, free: 55.85 MB / 0.5573 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.0005426/0.2283, allocations: 441.9 kB / 0.6503 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2283, allocations: 13.28 kB / 0.6503 GB, free: 55.5 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.599e-05/0.2283, allocations: 39.78 kB / 0.6503 GB, free: 55.46 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.2285, allocations: 31.69 kB / 0.6504 GB, free: 55.46 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.2286, allocations: 175.6 kB / 0.6505 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.2286, allocations: 8.781 kB / 0.6505 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.2287, allocations: 11.19 kB / 0.6505 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.2289, allocations: 125.7 kB / 0.6507 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.2289, allocations: 8.438 kB / 0.6507 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.2289, allocations: 9.297 kB / 0.6507 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.2289, allocations: 1.844 kB / 0.6507 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.2291, allocations: 99.84 kB / 0.6508 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003912/0.2294, allocations: 357.4 kB / 0.6511 GB, free: 55.03 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.2296, allocations: 125.2 kB / 0.6512 GB, free: 55 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.71e-05/0.2297, allocations: 67.39 kB / 0.6513 GB, free: 54.99 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002253/0.2299, allocations: 62.53 kB / 0.6514 GB, free: 54.99 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.2302, allocations: 126.8 kB / 0.6515 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=16): time 1.753e-06/0.2302, allocations: 0.5 kB / 0.6515 GB, free: 54.95 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16): time 0.0003639/0.2305, allocations: 243.6 kB / 0.6517 GB, free: 54.89 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.279e-05/0.2306, allocations: 56.25 kB / 0.6518 GB, free: 54.83 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.2307, allocations: 182.7 kB / 0.6519 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.2307, allocations: 28.92 kB / 0.652 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.036e-05/0.2307, allocations: 112.8 kB / 0.6521 GB, free: 54.61 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.2307, allocations: 61.14 kB / 0.6521 GB, free: 54.56 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.727e-05/0.2308, allocations: 41.5 kB / 0.6522 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.688e-05/0.2308, allocations: 332.5 kB / 0.6525 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.2309, allocations: 99.06 kB / 0.6526 GB, free: 54.15 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.231, allocations: 117.6 kB / 0.6527 GB, free: 54.07 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.214/1.445, allocations: 378.8 MB / 1.023 GB, free: 210.1 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/1.445, allocations: 0 / 1.023 GB, free: 210.1 MB / 0.7605 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003403/1.446, allocations: 282.9 kB / 1.023 GB, free: 209.9 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.539e-05/1.446, allocations: 29.7 kB / 1.023 GB, free: 209.9 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/1.446, allocations: 4 kB / 1.023 GB, free: 209.9 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/1.446, allocations: 0 / 1.023 GB, free: 209.9 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/1.446, allocations: 49.19 kB / 1.023 GB, free: 209.8 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/1.446, allocations: 0 / 1.023 GB, free: 209.8 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/1.446, allocations: 21.83 kB / 1.023 GB, free: 209.8 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/1.446, allocations: 14.48 kB / 1.023 GB, free: 209.8 MB / 0.7605 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.0001624/1.446, allocations: 145.4 kB / 1.023 GB, free: 209.7 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/1.446, allocations: 19.91 kB / 1.023 GB, free: 209.7 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/1.447, allocations: 245 kB / 1.023 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/1.447, allocations: 6.5 kB / 1.023 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.447, allocations: 0 / 1.023 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/1.447, allocations: 3.984 kB / 1.023 GB, free: 209.5 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/1.447, allocations: 203.4 kB / 1.024 GB, free: 209.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.447, allocations: 0 / 1.024 GB, free: 209.3 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/1.447, allocations: 48.47 kB / 1.024 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/1.447, allocations: 0 / 1.024 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/1.447, allocations: 2.125 kB / 1.024 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/1.447, allocations: 4 kB / 1.024 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/1.447, allocations: 6.719 kB / 1.024 GB, free: 209.2 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/1.447, allocations: 312.7 kB / 1.024 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/1.447, allocations: 32.14 kB / 1.024 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/1.447, allocations: 3.625 kB / 1.024 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.156e-05/1.447, allocations: 15.98 kB / 1.024 GB, free: 209 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.825e-05/1.447, allocations: 23.61 kB / 1.024 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/1.447, allocations: 7.984 kB / 1.024 GB, free: 208.9 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 4.881e-05/1.447, allocations: 132.3 kB / 1.024 GB, free: 208.8 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5e-08/1.447, allocations: 0 / 1.024 GB, free: 208.8 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0001846/1.448, allocations: 54.73 kB / 1.024 GB, free: 208.8 MB / 0.7605 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.0004611/1.448, allocations: 0.8768 MB / 1.025 GB, free: 208 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0002526/1.448, allocations: 243.6 kB / 1.025 GB, free: 207.7 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/1.448, allocations: 0 / 1.025 GB, free: 207.7 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 9.585e-05/1.448, allocations: 73.77 kB / 1.025 GB, free: 207.7 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/1.449, allocations: 32.36 kB / 1.025 GB, free: 207.6 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/1.45, allocations: 2.364 MB / 1.028 GB, free: 205.2 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.186e-05/1.45, allocations: 116.2 kB / 1.028 GB, free: 205.1 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 7.443e-05/1.45, allocations: 38.69 kB / 1.028 GB, free: 205.1 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/1.45, allocations: 53.7 kB / 1.028 GB, free: 205 MB / 0.7605 GB Notification: Performance of SimCode: time 4.7e-07/1.45, allocations: 0 / 1.028 GB, free: 205 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01578/1.466, allocations: 5.553 MB / 1.033 GB, free: 199.7 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.403/7.869, allocations: 4 kB / 1.033 GB, free: 199.7 MB / 0.7605 GB " [Timeout remaining time 652] (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: 11.573270552791655] Failed to read output from testmodel.py, exit status != 0: 7.94633493386209 7.951984787 7.722834892 Calling exit ...