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.001256/0.001256, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001358/0.001358, allocations: 220.4 kB / 23.03 MB, free: 4.945 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.39/1.39, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.002552/0.002552, allocations: 294.8 kB / 313.5 MB, free: 2.625 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.197/1.197, allocations: 180.6 MB / 0.5377 GB, free: 14.49 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.002867/0.002867, allocations: 99.16 kB / 0.7402 GB, free: 28.01 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.156, allocations: 95.39 MB / 0.8334 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.00332/0.1594, allocations: 1.886 MB / 0.8352 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.1609, allocations: 0.8543 MB / 0.836 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.161, allocations: 7.875 kB / 0.8361 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.1612, allocations: 51.94 kB / 0.8361 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.1613, allocations: 55.56 kB / 0.8362 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.1616, allocations: 95.75 kB / 0.8363 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002528/0.1619, allocations: 187.2 kB / 0.8364 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 8.969e-05/0.162, allocations: 17.67 kB / 0.8364 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.1622, allocations: 95.62 kB / 0.8365 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.1623, allocations: 79.67 kB / 0.8366 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.1623, allocations: 8 kB / 0.8366 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.1625, allocations: 67.95 kB / 0.8367 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.623e-05/0.1625, allocations: 31.84 kB / 0.8367 GB, free: 4.898 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 8.099e-05/0.1626, allocations: 55.72 kB / 0.8368 GB, free: 4.844 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.1629, allocations: 195.2 kB / 0.837 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1629, allocations: 0 / 0.837 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.483e-06/0.1629, allocations: 0 / 0.837 GB, free: 4.652 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.1629, allocations: 0 / 0.837 GB, free: 4.652 MB / 0.5762 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.0009663/0.1639, allocations: 451 kB / 0.8374 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1639, allocations: 9.344 kB / 0.8374 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.592e-05/0.1639, allocations: 4.188 kB / 0.8374 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.164, allocations: 46.67 kB / 0.8374 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002998/0.1643, allocations: 32.81 kB / 0.8375 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.1646, allocations: 170.2 kB / 0.8376 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.1646, allocations: 12.36 kB / 0.8376 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.1646, allocations: 8.375 kB / 0.8377 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000332/0.165, allocations: 131.9 kB / 0.8378 GB, free: 3.734 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.165, allocations: 3.938 kB / 0.8378 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.165, allocations: 4 kB / 0.8378 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.165, allocations: 4 kB / 0.8378 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/0.1653, allocations: 95.92 kB / 0.8379 GB, free: 3.629 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006795/0.166, allocations: 363.8 kB / 0.8382 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.1664, allocations: 128.4 kB / 0.8384 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001815/0.1665, allocations: 72.75 kB / 0.8384 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004876/0.167, allocations: 59.92 kB / 0.8385 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003773/0.1674, allocations: 123.3 kB / 0.8386 GB, free: 2.832 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 1.934e-06/0.1674, allocations: 7.938 kB / 0.8386 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.000679/0.1681, allocations: 240.6 kB / 0.8388 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.1681, allocations: 59.34 kB / 0.8389 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001948/0.1683, allocations: 189.2 kB / 0.8391 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.1683, allocations: 25.7 kB / 0.8391 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.82e-05/0.1684, allocations: 108.1 kB / 0.8392 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.568e-05/0.1685, allocations: 67.47 kB / 0.8393 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.786e-05/0.1686, allocations: 41.69 kB / 0.8393 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1687, allocations: 334.8 kB / 0.8396 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.169, allocations: 98.5 kB / 0.8397 GB, free: 1.629 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.1692, allocations: 116.2 kB / 0.8398 GB, free: 1.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.339/2.508, allocations: 378.8 MB / 1.21 GB, free: 11.59 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/2.508, allocations: 0 / 1.21 GB, free: 11.59 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005911/2.509, allocations: 280 kB / 1.21 GB, free: 11.37 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/2.509, allocations: 37.69 kB / 1.21 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/2.509, allocations: 0 / 1.21 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/2.509, allocations: 0 / 1.21 GB, free: 11.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/2.509, allocations: 44.84 kB / 1.21 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/2.509, allocations: 8.062 kB / 1.21 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/2.509, allocations: 26.66 kB / 1.21 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/2.509, allocations: 4 kB / 1.21 GB, free: 11.26 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.0002277/2.509, allocations: 149.1 kB / 1.21 GB, free: 11.12 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.869e-05/2.509, allocations: 17.97 kB / 1.21 GB, free: 11.12 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006078/2.51, allocations: 241.6 kB / 1.21 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/2.51, allocations: 7.938 kB / 1.211 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/2.51, allocations: 0 / 1.211 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/2.51, allocations: 0 / 1.211 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/2.51, allocations: 209.6 kB / 1.211 GB, free: 10.73 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/2.51, allocations: 0 / 1.211 GB, free: 10.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/2.51, allocations: 46.88 kB / 1.211 GB, free: 10.69 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/2.51, allocations: 0 / 1.211 GB, free: 10.69 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/2.51, allocations: 4 kB / 1.211 GB, free: 10.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/2.51, allocations: 2.078 kB / 1.211 GB, free: 10.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/2.51, allocations: 0 / 1.211 GB, free: 10.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000696/2.511, allocations: 320.3 kB / 1.211 GB, free: 10.44 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 8.695e-05/2.511, allocations: 39.73 kB / 1.211 GB, free: 10.41 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/2.511, allocations: 5.781 kB / 1.211 GB, free: 10.41 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/2.511, allocations: 19.61 kB / 1.211 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.037e-05/2.512, allocations: 16.53 kB / 1.211 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/2.512, allocations: 4 kB / 1.211 GB, free: 10.38 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001349/2.512, allocations: 138.7 kB / 1.211 GB, free: 10.26 MB / 0.795 GB Notification: Performance of sort global known variables: time 9e-08/2.512, allocations: 0 / 1.211 GB, free: 10.26 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002921/2.512, allocations: 54.88 kB / 1.211 GB, free: 10.21 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.001105/2.513, allocations: 0.8567 MB / 1.212 GB, free: 9.41 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005447/2.514, allocations: 251.2 kB / 1.212 GB, free: 9.184 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/2.514, allocations: 0 / 1.212 GB, free: 9.184 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002033/2.514, allocations: 81.27 kB / 1.212 GB, free: 9.121 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/2.514, allocations: 37.55 kB / 1.213 GB, free: 9.102 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003209/2.517, allocations: 2.417 MB / 1.215 GB, free: 6.809 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/2.517, allocations: 116.1 kB / 1.215 GB, free: 6.672 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001211/2.518, allocations: 26.12 kB / 1.215 GB, free: 6.652 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/2.518, allocations: 55.41 kB / 1.215 GB, free: 6.598 MB / 0.795 GB Notification: Performance of SimCode: time 3.11e-07/2.518, allocations: 0 / 1.215 GB, free: 6.598 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/2.545, allocations: 5.062 MB / 1.22 GB, free: 1.762 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/13.53, allocations: 12.06 kB / 1.22 GB, free: 1.75 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: 17.585301368962973] Failed to read output from testmodel.py, exit status != 0: 13.683559488039464 13.698013175 13.532163159 Calling exit ...