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.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.0008241/0.0008241, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.000836/0.000836, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.929/0.929, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.79/1.79, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(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 2.124e-06/2.124e-06, allocations: 0 / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.383e-05/1.595e-05, allocations: 6.281 kB / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002495/0.002511, allocations: 1.536 MB / 1.001 GB, free: 11.97 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0003209/0.002832, allocations: 115.5 kB / 1.001 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.213e-05/0.002884, allocations: 3.938 kB / 1.001 GB, free: 11.85 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001222/0.003006, allocations: 11.92 kB / 1.001 GB, free: 11.84 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.711e-05/0.003033, allocations: 23.8 kB / 1.001 GB, free: 11.82 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.003344, allocations: 23.97 kB / 1.001 GB, free: 11.79 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001195/0.003463, allocations: 55.83 kB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.003607, allocations: 15.92 kB / 1.001 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.14e-05/0.003699, allocations: 39.89 kB / 1.001 GB, free: 11.68 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.826e-05/0.003777, allocations: 23.97 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.003798, allocations: 4 kB / 1.001 GB, free: 11.66 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 7.367e-05/0.003871, allocations: 15.92 kB / 1.001 GB, free: 11.64 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.003929, allocations: 15.98 kB / 1.002 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 3.725e-05/0.003966, allocations: 19.92 kB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.004139, allocations: 63.8 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004141, allocations: 3.938 kB / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.583e-06/0.004142, allocations: 0 / 1.002 GB, free: 11.54 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.004148, allocations: 0 / 1.002 GB, free: 11.54 MB / 0.9636 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.000472/0.00462, allocations: 298.1 kB / 1.002 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.004672, allocations: 12.75 kB / 1.002 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.004717, allocations: 34.75 kB / 1.002 GB, free: 11.16 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.004751, allocations: 8.891 kB / 1.002 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.004953, allocations: 133.7 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.004966, allocations: 384 / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.004979, allocations: 4.375 kB / 1.002 GB, free: 10.99 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.00526, allocations: 94.12 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.005271, allocations: 4.125 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.005283, allocations: 384 / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.005292, allocations: 4.125 kB / 1.002 GB, free: 10.89 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.005531, allocations: 83.92 kB / 1.002 GB, free: 10.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004006/0.005931, allocations: 287.8 kB / 1.003 GB, free: 10.48 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.006088, allocations: 51.33 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.006215, allocations: 44.91 kB / 1.003 GB, free: 10.38 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 4.141e-05/0.006256, allocations: 4 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.006288, allocations: 34.56 kB / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 1.462e-06/0.00629, allocations: 0 / 1.003 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0004849/0.006775, allocations: 141.7 kB / 1.003 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.006823, allocations: 55.39 kB / 1.003 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.528e-05/0.006918, allocations: 121.8 kB / 1.003 GB, free: 9.988 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.006933, allocations: 29.7 kB / 1.003 GB, free: 9.953 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/0.00698, allocations: 88.08 kB / 1.003 GB, free: 9.863 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.007004, allocations: 23.83 kB / 1.003 GB, free: 9.84 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.989e-05/0.007044, allocations: 13.72 kB / 1.003 GB, free: 9.82 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.007155, allocations: 314.8 kB / 1.003 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.007287, allocations: 35.95 kB / 1.003 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001069/0.007394, allocations: 31.97 kB / 1.003 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002277/0.007622, allocations: 84.7 kB / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.007625, allocations: 0 / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002734/0.007898, allocations: 105.6 kB / 1.004 GB, free: 9.242 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.007916, allocations: 9.719 kB / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.007921, allocations: 0 / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.007936, allocations: 0 / 1.004 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.008044, allocations: 19.97 kB / 1.004 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.008049, allocations: 0 / 1.004 GB, free: 9.215 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.655e-05/0.008106, allocations: 15.94 kB / 1.004 GB, free: 9.199 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.008126, allocations: 0 / 1.004 GB, free: 9.199 MB / 0.9636 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.824e-05/0.008204, allocations: 117.8 kB / 1.004 GB, free: 9.074 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.008231, allocations: 4 kB / 1.004 GB, free: 9.07 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002996/0.008531, allocations: 121.5 kB / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.008533, allocations: 0 / 1.004 GB, free: 8.938 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.008539, allocations: 4 kB / 1.004 GB, free: 8.934 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.008543, allocations: 0 / 1.004 GB, free: 8.934 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.008727, allocations: 144.7 kB / 1.004 GB, free: 8.75 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.008729, allocations: 0 / 1.004 GB, free: 8.75 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.298e-05/0.008802, allocations: 15.98 kB / 1.004 GB, free: 8.734 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.008805, allocations: 4 kB / 1.004 GB, free: 8.73 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.008812, allocations: 0 / 1.004 GB, free: 8.73 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.008816, allocations: 3.984 kB / 1.004 GB, free: 8.727 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.008817, allocations: 0 / 1.004 GB, free: 8.727 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.009112, allocations: 199.4 kB / 1.004 GB, free: 8.516 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.306e-05/0.009125, allocations: 11.94 kB / 1.004 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.009138, allocations: 0 / 1.004 GB, free: 8.504 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.794e-05/0.009226, allocations: 15.98 kB / 1.004 GB, free: 8.488 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.009269, allocations: 7.938 kB / 1.004 GB, free: 8.48 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.00928, allocations: 7.984 kB / 1.004 GB, free: 8.473 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 4.932e-05/0.009329, allocations: 87.28 kB / 1.004 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of sort global known variables: time 1.01e-07/0.009329, allocations: 0 / 1.004 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002698/0.009599, allocations: 11.94 kB / 1.004 GB, free: 8.375 MB / 0.9636 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.0005786/0.01018, allocations: 0.7361 MB / 1.005 GB, free: 7.613 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002751/0.01045, allocations: 79.89 kB / 1.005 GB, free: 7.535 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01045, allocations: 0 / 1.005 GB, free: 7.535 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.01057, allocations: 43.95 kB / 1.005 GB, free: 7.492 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.01089, allocations: 7.938 kB / 1.005 GB, free: 7.484 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.01243, allocations: 1.431 MB / 1.007 GB, free: 5.973 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.161e-05/0.0125, allocations: 75.33 kB / 1.007 GB, free: 5.879 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.682e-05/0.01254, allocations: 15.92 kB / 1.007 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.106e-05/0.0126, allocations: 20.5 kB / 1.007 GB, free: 5.844 MB / 0.9636 GB Notification: Performance of SimCode: time 6.11e-07/0.01261, allocations: 0 / 1.007 GB, free: 5.844 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0155/0.02811, allocations: 2.514 MB / 1.009 GB, free: 3.461 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.862/6.89, allocations: 16 kB / 1.009 GB, free: 3.449 MB / 0.9636 GB " [Timeout remaining time 293] (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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 10.96274961810559]