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.001317/0.001317, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.001536/0.001536, allocations: 215.3 kB / 23.04 MB, free: 5.074 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.527/1.527, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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 3.244/3.244, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Average",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.001996/0.001996, allocations: 69.53 kB / 1.171 GB, free: 19.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.317, allocations: 179 MB / 1.345 GB, free: 432 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003292/0.3203, allocations: 1.56 MB / 1.347 GB, free: 14.85 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003922/0.3207, allocations: 107.7 kB / 1.347 GB, free: 14.74 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.42e-05/0.3208, allocations: 7.938 kB / 1.347 GB, free: 14.73 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.3209, allocations: 7.922 kB / 1.347 GB, free: 14.73 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 3.515e-05/0.3209, allocations: 7.922 kB / 1.347 GB, free: 14.72 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.3212, allocations: 35.91 kB / 1.347 GB, free: 14.68 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.3214, allocations: 55.84 kB / 1.347 GB, free: 14.63 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.3215, allocations: 20.27 kB / 1.347 GB, free: 14.61 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 7.332e-05/0.3216, allocations: 23.91 kB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 8.225e-05/0.3216, allocations: 39.78 kB / 1.347 GB, free: 14.55 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.996e-05/0.3217, allocations: 4 kB / 1.347 GB, free: 14.54 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.3217, allocations: 15.98 kB / 1.347 GB, free: 14.53 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.606e-05/0.3218, allocations: 11.98 kB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.271e-05/0.3218, allocations: 23.81 kB / 1.347 GB, free: 14.49 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001723/0.322, allocations: 67.72 kB / 1.347 GB, free: 14.43 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.322, allocations: 0 / 1.347 GB, free: 14.43 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.713e-06/0.322, allocations: 4 kB / 1.347 GB, free: 14.42 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.628e-06/0.322, allocations: 4 kB / 1.347 GB, free: 14.42 MB / 1.045 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.0005617/0.3226, allocations: 311.6 kB / 1.348 GB, free: 14.08 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3226, allocations: 8.031 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.552e-05/0.3226, allocations: 4.188 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.286e-05/0.3227, allocations: 30.75 kB / 1.348 GB, free: 14.03 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.3e-05/0.3227, allocations: 8.891 kB / 1.348 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.3229, allocations: 130.4 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.3229, allocations: 4.375 kB / 1.348 GB, free: 13.87 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.3229, allocations: 8.375 kB / 1.348 GB, free: 13.86 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.3232, allocations: 89.89 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.3232, allocations: 0 / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.3232, allocations: 7.984 kB / 1.348 GB, free: 13.76 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.3232, allocations: 0 / 1.348 GB, free: 13.76 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003156/0.3235, allocations: 91.78 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005454/0.3241, allocations: 287.9 kB / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.3243, allocations: 66.56 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.3245, allocations: 36.92 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.294e-05/0.3245, allocations: 3.984 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.3245, allocations: 30.56 kB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.3245, allocations: 0 / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0006377/0.3252, allocations: 145.5 kB / 1.348 GB, free: 13.04 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.3252, allocations: 51.41 kB / 1.349 GB, free: 12.98 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.3253, allocations: 109.8 kB / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.3254, allocations: 25.7 kB / 1.349 GB, free: 12.83 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/0.3255, allocations: 100.1 kB / 1.349 GB, free: 12.73 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.729e-05/0.3255, allocations: 11.83 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.3255, allocations: 17.72 kB / 1.349 GB, free: 12.69 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3257, allocations: 322.8 kB / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.3258, allocations: 31.97 kB / 1.349 GB, free: 12.34 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001484/0.326, allocations: 39.95 kB / 1.349 GB, free: 12.3 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.3263, allocations: 72.78 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3263, allocations: 0 / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003437/0.3266, allocations: 109.6 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3266, allocations: 4 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3266, allocations: 0 / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3267, allocations: 0 / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.3268, allocations: 23.92 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.3268, allocations: 0 / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.808e-05/0.3269, allocations: 11.98 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.3269, allocations: 3.938 kB / 1.349 GB, free: 12.07 MB / 1.045 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 9.683e-05/0.327, allocations: 117.8 kB / 1.349 GB, free: 11.94 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.094e-05/0.327, allocations: 7.953 kB / 1.349 GB, free: 11.93 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003985/0.3274, allocations: 113.6 kB / 1.35 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3274, allocations: 0 / 1.35 GB, free: 11.81 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3274, allocations: 3.984 kB / 1.35 GB, free: 11.8 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3274, allocations: 3.938 kB / 1.35 GB, free: 11.8 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.3276, allocations: 152.7 kB / 1.35 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3276, allocations: 7.984 kB / 1.35 GB, free: 11.6 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.638e-05/0.3277, allocations: 16.36 kB / 1.35 GB, free: 11.59 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3277, allocations: 11.88 kB / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.3277, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3277, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3277, allocations: 0 / 1.35 GB, free: 11.57 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003938/0.3281, allocations: 203.4 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.445e-05/0.3281, allocations: 11.95 kB / 1.35 GB, free: 11.35 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.3282, allocations: 0 / 1.35 GB, free: 11.35 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.3283, allocations: 11.98 kB / 1.35 GB, free: 11.34 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.3283, allocations: 7.984 kB / 1.35 GB, free: 11.33 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.3283, allocations: 4 kB / 1.35 GB, free: 11.32 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.703e-05/0.3284, allocations: 99.58 kB / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3284, allocations: 0 / 1.35 GB, free: 11.23 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002401/0.3286, allocations: 8 kB / 1.35 GB, free: 11.22 MB / 1.045 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.0008013/0.3294, allocations: 0.7319 MB / 1.351 GB, free: 10.46 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003674/0.3298, allocations: 79.91 kB / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3298, allocations: 0 / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001605/0.33, allocations: 43.91 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.3303, allocations: 6.031 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.3323, allocations: 1.438 MB / 1.352 GB, free: 8.82 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.3326, allocations: 0.6846 MB / 1.353 GB, free: 8.109 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.594e-05/0.3327, allocations: 11.98 kB / 1.353 GB, free: 8.098 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.754e-05/0.3327, allocations: 19.42 kB / 1.353 GB, free: 8.078 MB / 1.045 GB Notification: Performance of SimCode: time 5.81e-07/0.3327, allocations: 0 / 1.353 GB, free: 8.078 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.3549, allocations: 1.979 MB / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.92, allocations: 6.688 kB / 1.355 GB, free: 6.238 MB / 1.045 GB " [Timeout remaining time 288] (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/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: 18.791535285010468]