Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Average.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.001801/0.001801, allocations: 103.2 kB / 16.45 MB, free: 6.445 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.001907/0.001907, allocations: 188.6 kB / 19.4 MB, free: 3.66 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.507/1.507, allocations: 225.6 MB / 247.8 MB, free: 3.742 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.885/2.885, allocations: 497.2 MB / 0.7812 GB, free: 11.96 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.84 kB / 1.134 GB, free: 13.18 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9581/0.96, allocations: 173.9 MB / 1.304 GB, free: 32.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002902/0.9629, allocations: 1.542 MB / 1.305 GB, free: 31.02 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003104/0.9632, allocations: 117.5 kB / 1.306 GB, free: 30.94 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.519e-05/0.9632, allocations: 0 / 1.306 GB, free: 30.94 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.9634, allocations: 11.41 kB / 1.306 GB, free: 30.93 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.29e-05/0.9634, allocations: 10.5 kB / 1.306 GB, free: 30.92 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.9636, allocations: 23.16 kB / 1.306 GB, free: 30.91 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.799e-05/0.9637, allocations: 59.77 kB / 1.306 GB, free: 30.89 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.9638, allocations: 22.67 kB / 1.306 GB, free: 30.88 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.638e-05/0.9639, allocations: 23.97 kB / 1.306 GB, free: 30.87 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.709e-05/0.9639, allocations: 36.52 kB / 1.306 GB, free: 30.85 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.9639, allocations: 2.75 kB / 1.306 GB, free: 30.85 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.589e-05/0.964, allocations: 8.375 kB / 1.306 GB, free: 30.85 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.686e-05/0.964, allocations: 20.89 kB / 1.306 GB, free: 30.84 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.9641, allocations: 28.62 kB / 1.306 GB, free: 30.82 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.9642, allocations: 59.23 kB / 1.306 GB, free: 30.8 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.9642, allocations: 0 / 1.306 GB, free: 30.8 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9642, allocations: 0 / 1.306 GB, free: 30.8 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.9642, allocations: 0 / 1.306 GB, free: 30.8 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004722/0.9647, allocations: 385.8 kB / 1.306 GB, free: 30.41 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.9647, allocations: 8.094 kB / 1.306 GB, free: 30.41 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.718e-05/0.9647, allocations: 33.5 kB / 1.306 GB, free: 30.38 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.708e-05/0.9648, allocations: 11.58 kB / 1.306 GB, free: 30.37 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.9649, allocations: 187.1 kB / 1.306 GB, free: 30.16 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.9649, allocations: 7.156 kB / 1.306 GB, free: 30.16 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.9649, allocations: 3.125 kB / 1.306 GB, free: 30.16 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.9652, allocations: 92.62 kB / 1.307 GB, free: 30.11 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.9652, allocations: 3.938 kB / 1.307 GB, free: 30.1 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.9652, allocations: 0 / 1.307 GB, free: 30.1 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.214e-05/0.9652, allocations: 2.25 kB / 1.307 GB, free: 30.1 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004461/0.9657, allocations: 79.45 kB / 1.307 GB, free: 30.09 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006511/0.9663, allocations: 332.6 kB / 1.307 GB, free: 29.79 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.9666, allocations: 54.34 kB / 1.307 GB, free: 29.76 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.9669, allocations: 38.8 kB / 1.307 GB, free: 29.75 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.366e-05/0.9669, allocations: 10.2 kB / 1.307 GB, free: 29.74 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.9669, allocations: 30.56 kB / 1.307 GB, free: 29.7 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.9669, allocations: 0 / 1.307 GB, free: 29.7 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0007544/0.9677, allocations: 146.6 kB / 1.307 GB, free: 29.64 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.9677, allocations: 58.97 kB / 1.307 GB, free: 29.58 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.181e-05/0.9678, allocations: 108.9 kB / 1.307 GB, free: 29.48 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.9678, allocations: 25.7 kB / 1.307 GB, free: 29.45 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.717e-05/0.9678, allocations: 98.38 kB / 1.308 GB, free: 29.35 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.105e-05/0.9679, allocations: 10.69 kB / 1.308 GB, free: 29.34 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.9679, allocations: 20.88 kB / 1.308 GB, free: 29.32 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.968, allocations: 321.1 kB / 1.308 GB, free: 29 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.9682, allocations: 35.53 kB / 1.308 GB, free: 29 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.9684, allocations: 31.95 kB / 1.308 GB, free: 28.99 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.9687, allocations: 76.69 kB / 1.308 GB, free: 28.97 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.9687, allocations: 0 / 1.308 GB, free: 28.97 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004367/0.9692, allocations: 106.2 kB / 1.308 GB, free: 28.93 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.9692, allocations: 5.531 kB / 1.308 GB, free: 28.93 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.9692, allocations: 3.938 kB / 1.308 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.9692, allocations: 2.875 kB / 1.308 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.9694, allocations: 17.97 kB / 1.308 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.9694, allocations: 0 / 1.308 GB, free: 28.92 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.9695, allocations: 19.73 kB / 1.308 GB, free: 28.91 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.799e-05/0.9695, allocations: 2.938 kB / 1.308 GB, free: 28.91 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 7.584e-05/0.9696, allocations: 120.7 kB / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.9697, allocations: 2.688 kB / 1.308 GB, free: 28.79 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004867/0.9701, allocations: 112.6 kB / 1.308 GB, free: 28.73 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.9702, allocations: 7 kB / 1.308 GB, free: 28.73 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.9702, allocations: 0 / 1.308 GB, free: 28.73 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.9702, allocations: 0 / 1.308 GB, free: 28.73 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.9704, allocations: 182.4 kB / 1.309 GB, free: 28.53 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.9704, allocations: 4 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001385/0.9705, allocations: 17.44 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.9705, allocations: 3.031 kB / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.9705, allocations: 0 / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.9705, allocations: 0 / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.9705, allocations: 0 / 1.309 GB, free: 28.52 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004465/0.971, allocations: 205.4 kB / 1.309 GB, free: 28.37 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.971, allocations: 87.69 kB / 1.309 GB, free: 28.27 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.971, allocations: 3.938 kB / 1.309 GB, free: 28.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.9712, allocations: 14.33 kB / 1.309 GB, free: 28.27 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.9712, allocations: 8 kB / 1.309 GB, free: 28.26 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.9713, allocations: 5.828 kB / 1.309 GB, free: 28.26 MB / 1.061 GB Notification: Performance of sorting global known variables: time 4.776e-05/0.9713, allocations: 87.69 kB / 1.309 GB, free: 28.18 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.9713, allocations: 0 / 1.309 GB, free: 28.18 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002387/0.9715, allocations: 17.45 kB / 1.309 GB, free: 28.18 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005444/0.9721, allocations: 0.7282 MB / 1.31 GB, free: 27.51 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003159/0.9724, allocations: 79.55 kB / 1.31 GB, free: 27.49 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.9724, allocations: 2.875 kB / 1.31 GB, free: 27.49 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.9725, allocations: 42.22 kB / 1.31 GB, free: 27.48 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.9729, allocations: 14.25 kB / 1.31 GB, free: 27.47 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.9744, allocations: 1.425 MB / 1.311 GB, free: 26.24 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.9745, allocations: 0.6869 MB / 1.312 GB, free: 25.54 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.599e-05/0.9745, allocations: 10.83 kB / 1.312 GB, free: 25.54 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.718e-05/0.9746, allocations: 18.25 kB / 1.312 GB, free: 25.53 MB / 1.061 GB Notification: Performance of SimCode: time 2.8e-07/0.9746, allocations: 0 / 1.312 GB, free: 25.53 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.998, allocations: 1.837 MB / 1.314 GB, free: 25.11 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/9.204, allocations: 18.88 kB / 1.314 GB, free: 25.09 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.641200696118176]