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.001643/0.001643, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002021/0.002021, allocations: 215.1 kB / 22.25 MB, free: 5.117 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.49/1.49, allocations: 230.6 MB / 256 MB, free: 8.004 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.002784/0.002784, allocations: 276.2 kB / 312.7 MB, free: 2.809 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.283/1.283, allocations: 180.6 MB / 0.5369 GB, free: 13.01 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="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: 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.002874/0.002874, allocations: 107.7 kB / 0.7396 GB, free: 28.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2177, allocations: 95.38 MB / 0.8327 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003777/0.2215, allocations: 1.979 MB / 0.8346 GB, free: 6.68 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001876/0.2234, allocations: 0.9399 MB / 0.8355 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.2235, allocations: 7.938 kB / 0.8356 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.2238, allocations: 55.91 kB / 0.8356 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.2239, allocations: 43.64 kB / 0.8357 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.2243, allocations: 99.69 kB / 0.8357 GB, free: 5.527 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003035/0.2246, allocations: 187.3 kB / 0.8359 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.2247, allocations: 21.67 kB / 0.8359 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.2249, allocations: 91.62 kB / 0.836 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.2251, allocations: 83.61 kB / 0.8361 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.766e-05/0.2251, allocations: 12 kB / 0.8361 GB, free: 5.133 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001586/0.2253, allocations: 63.94 kB / 0.8362 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.2253, allocations: 23.92 kB / 0.8362 GB, free: 5.047 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.801e-05/0.2254, allocations: 75.58 kB / 0.8363 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.2258, allocations: 191.2 kB / 0.8365 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2258, allocations: 4 kB / 0.8365 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2258, allocations: 0 / 0.8365 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.2258, allocations: 0 / 0.8365 GB, free: 4.781 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.001025/0.2268, allocations: 439 kB / 0.8369 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2269, allocations: 9.344 kB / 0.8369 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.227, allocations: 46.73 kB / 0.8369 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002904/0.2273, allocations: 32.83 kB / 0.837 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.2275, allocations: 182.1 kB / 0.8371 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.2276, allocations: 8.375 kB / 0.8372 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.771e-05/0.2276, allocations: 8.375 kB / 0.8372 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003149/0.2279, allocations: 126.2 kB / 0.8373 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.2279, allocations: 0 / 0.8373 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.2279, allocations: 4 kB / 0.8373 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.2279, allocations: 8 kB / 0.8373 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003139/0.2283, allocations: 99.86 kB / 0.8374 GB, free: 3.766 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007349/0.229, allocations: 379.7 kB / 0.8377 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.2294, allocations: 130.4 kB / 0.8379 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.2295, allocations: 76.81 kB / 0.8379 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005541/0.2301, allocations: 59.92 kB / 0.838 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003679/0.2305, allocations: 135.2 kB / 0.8381 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=16): time 2.124e-06/0.2305, allocations: 0 / 0.8381 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16): time 0.0007418/0.2312, allocations: 240.9 kB / 0.8384 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.2313, allocations: 55.41 kB / 0.8384 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.2315, allocations: 181.2 kB / 0.8386 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.2315, allocations: 33.64 kB / 0.8386 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.284e-05/0.2316, allocations: 112.1 kB / 0.8387 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.37e-05/0.2317, allocations: 59.48 kB / 0.8388 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.893e-05/0.2317, allocations: 45.62 kB / 0.8388 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.2319, allocations: 326.8 kB / 0.8391 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002127/0.2321, allocations: 72.81 kB / 0.8392 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.2323, allocations: 92.75 kB / 0.8393 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.554/2.786, allocations: 378.8 MB / 1.209 GB, free: 12.08 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/2.786, allocations: 3.984 kB / 1.209 GB, free: 12.08 MB / 0.795 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005435/2.787, allocations: 247.2 kB / 1.209 GB, free: 11.89 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.189e-05/2.787, allocations: 32.95 kB / 1.209 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/2.787, allocations: 0 / 1.209 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/2.787, allocations: 4 kB / 1.209 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/2.787, allocations: 44.47 kB / 1.21 GB, free: 11.81 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/2.787, allocations: 4.062 kB / 1.21 GB, free: 11.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/2.787, allocations: 19.88 kB / 1.21 GB, free: 11.79 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/2.787, allocations: 12.92 kB / 1.21 GB, free: 11.78 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.0002299/2.788, allocations: 149.9 kB / 1.21 GB, free: 11.65 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/2.788, allocations: 20.77 kB / 1.21 GB, free: 11.64 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005918/2.788, allocations: 240.2 kB / 1.21 GB, free: 11.46 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/2.788, allocations: 0 / 1.21 GB, free: 11.46 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/2.788, allocations: 0 / 1.21 GB, free: 11.46 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/2.788, allocations: 3.984 kB / 1.21 GB, free: 11.46 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/2.789, allocations: 235.5 kB / 1.21 GB, free: 11.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/2.789, allocations: 4 kB / 1.21 GB, free: 11.23 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/2.789, allocations: 35.64 kB / 1.21 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/2.789, allocations: 0 / 1.21 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/2.789, allocations: 11.3 kB / 1.21 GB, free: 11.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/2.789, allocations: 0 / 1.21 GB, free: 11.19 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/2.789, allocations: 0 / 1.21 GB, free: 11.19 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006569/2.789, allocations: 318.5 kB / 1.211 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-05/2.79, allocations: 34.78 kB / 1.211 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.874e-05/2.79, allocations: 15.42 kB / 1.211 GB, free: 10.92 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/2.79, allocations: 15.42 kB / 1.211 GB, free: 10.91 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/2.79, allocations: 15.59 kB / 1.211 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/2.79, allocations: 4 kB / 1.211 GB, free: 10.89 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001118/2.79, allocations: 138.7 kB / 1.211 GB, free: 10.77 MB / 0.795 GB Notification: Performance of sort global known variables: time 9e-08/2.79, allocations: 0 / 1.211 GB, free: 10.77 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002844/2.79, allocations: 56.58 kB / 1.211 GB, free: 10.73 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.001021/2.791, allocations: 0.8651 MB / 1.212 GB, free: 9.918 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004909/2.792, allocations: 218 kB / 1.212 GB, free: 9.73 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/2.792, allocations: 0 / 1.212 GB, free: 9.73 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002046/2.792, allocations: 81.84 kB / 1.212 GB, free: 9.668 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/2.792, allocations: 34.55 kB / 1.212 GB, free: 9.648 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/2.795, allocations: 2.299 MB / 1.214 GB, free: 7.492 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/2.796, allocations: 0.7281 MB / 1.215 GB, free: 6.734 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000126/2.796, allocations: 26.88 kB / 1.215 GB, free: 6.715 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/2.796, allocations: 59.41 kB / 1.215 GB, free: 6.656 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/2.796, allocations: 7.938 kB / 1.215 GB, free: 6.648 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03319/2.829, allocations: 4.94 MB / 1.22 GB, free: 1.883 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/14.07, allocations: 12.81 kB / 1.22 GB, free: 1.875 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: 20.351312909042463] Failed to read output from testmodel.py, exit status != 0: 14.178809156874195 14.210158423 13.978904844 Calling exit ...