Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0008134/0.0008134, 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.0008662/0.0008662, 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.8801/0.8801, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.655/1.655, allocations: 359 MB / 0.6037 GB, free: 11.12 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.026e-05/1.144e-05, allocations: 4.953 kB / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001724/0.001735, allocations: 1.545 MB / 0.952 GB, free: 1.938 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0002482/0.001984, allocations: 115.7 kB / 0.9521 GB, free: 1.824 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.153e-05/0.002025, allocations: 0 / 0.9521 GB, free: 1.824 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.002127, allocations: 11.86 kB / 0.9521 GB, free: 1.812 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 1.788e-05/0.002145, allocations: 3.938 kB / 0.9521 GB, free: 1.809 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.002382, allocations: 35.84 kB / 0.9522 GB, free: 1.773 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.334e-05/0.002465, allocations: 59.77 kB / 0.9522 GB, free: 1.715 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.002568, allocations: 15.98 kB / 0.9522 GB, free: 1.699 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 5.788e-05/0.002626, allocations: 31.97 kB / 0.9523 GB, free: 1.668 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.747e-05/0.002684, allocations: 31.89 kB / 0.9523 GB, free: 1.637 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.002699, allocations: 8 kB / 0.9523 GB, free: 1.629 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.325e-05/0.002752, allocations: 7.984 kB / 0.9523 GB, free: 1.621 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 3.682e-05/0.002789, allocations: 23.92 kB / 0.9523 GB, free: 1.598 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.894e-05/0.002818, allocations: 8 kB / 0.9523 GB, free: 1.59 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.00293, allocations: 63.78 kB / 0.9524 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.002932, allocations: 0 / 0.9524 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.02e-07/0.002933, allocations: 0 / 0.9524 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.002936, allocations: 4 kB / 0.9524 GB, free: 1.523 MB / 0.9011 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.000362/0.003298, allocations: 302.1 kB / 0.9527 GB, free: 1.195 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.003335, allocations: 8.031 kB / 0.9527 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.002e-05/0.003365, allocations: 34.75 kB / 0.9527 GB, free: 1.145 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.003387, allocations: 16.77 kB / 0.9528 GB, free: 1.129 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.003514, allocations: 125.6 kB / 0.9529 GB, free: 0.9805 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.003531, allocations: 8.375 kB / 0.9529 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.298e-06/0.00354, allocations: 4.375 kB / 0.9529 GB, free: 0.9688 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.003722, allocations: 86.19 kB / 0.953 GB, free: 0.8789 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.003729, allocations: 192 / 0.953 GB, free: 0.8789 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.065e-06/0.003737, allocations: 4.375 kB / 0.953 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.003742, allocations: 8.125 kB / 0.953 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/0.003904, allocations: 79.86 kB / 0.9531 GB, free: 0.7891 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.004252, allocations: 283.8 kB / 0.9533 GB, free: 480 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.004374, allocations: 66.56 kB / 0.9534 GB, free: 404 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.789e-05/0.004452, allocations: 36.91 kB / 0.9534 GB, free: 364 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.004486, allocations: 4 kB / 0.9534 GB, free: 360 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.004508, allocations: 34.56 kB / 0.9535 GB, free: 316 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=3): time 1.813e-06/0.00451, allocations: 3.984 kB / 0.9535 GB, free: 312 kB / 0.9011 GB Notification: Performance of matching and sorting (n=3): time 0.0003183/0.004828, allocations: 133.6 kB / 0.9536 GB, free: 172 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.00486, allocations: 59.34 kB / 0.9537 GB, free: 100 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.36e-05/0.004933, allocations: 117.8 kB / 0.9538 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.004943, allocations: 25.7 kB / 0.9538 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.955e-05/0.004983, allocations: 96.03 kB / 0.9539 GB, free: 15.84 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.004999, allocations: 7.953 kB / 0.9539 GB, free: 15.84 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.005026, allocations: 17.7 kB / 0.9539 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.005101, allocations: 318.8 kB / 0.9542 GB, free: 15.49 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.005176, allocations: 39.95 kB / 0.9542 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.751e-05/0.005243, allocations: 32.58 kB / 0.9543 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001365/0.00538, allocations: 76.7 kB / 0.9544 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.005382, allocations: 3.938 kB / 0.9544 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001661/0.005548, allocations: 109.5 kB / 0.9545 GB, free: 15.23 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.00556, allocations: 10.34 kB / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.005565, allocations: 0 / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.005576, allocations: 0 / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.373e-05/0.00565, allocations: 19.97 kB / 0.9545 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.005655, allocations: 0 / 0.9545 GB, free: 15.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.49e-05/0.005689, allocations: 15.98 kB / 0.9545 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.005713, allocations: 4 kB / 0.9545 GB, free: 15.18 MB / 0.9167 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 5.588e-05/0.005769, allocations: 117.8 kB / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.415e-05/0.005783, allocations: 7.891 kB / 0.9546 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002043/0.005987, allocations: 113.6 kB / 0.9547 GB, free: 14.92 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.005989, allocations: 0 / 0.9547 GB, free: 14.92 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.005993, allocations: 0 / 0.9547 GB, free: 14.92 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.005996, allocations: 4 kB / 0.9547 GB, free: 14.92 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.006109, allocations: 148.7 kB / 0.9549 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.00611, allocations: 0 / 0.9549 GB, free: 14.73 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-05/0.006149, allocations: 15.92 kB / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.006151, allocations: 0 / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.006156, allocations: 4 kB / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.006157, allocations: 0 / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.006158, allocations: 0 / 0.9549 GB, free: 14.71 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001854/0.006343, allocations: 207.4 kB / 0.9551 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-06/0.006349, allocations: 4 kB / 0.9551 GB, free: 14.49 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.00636, allocations: 3.984 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.065e-05/0.006411, allocations: 7.984 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.49e-05/0.006445, allocations: 8.422 kB / 0.9551 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.00645, allocations: 0 / 0.9551 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.161e-05/0.006481, allocations: 91.27 kB / 0.9552 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.006481, allocations: 4 kB / 0.9552 GB, free: 14.38 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001578/0.006639, allocations: 11.94 kB / 0.9552 GB, free: 14.36 MB / 0.9167 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.0003716/0.007011, allocations: 0.7483 MB / 0.956 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001786/0.007189, allocations: 75.86 kB / 0.956 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.00719, allocations: 4 kB / 0.956 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 7.413e-05/0.007264, allocations: 39.89 kB / 0.9561 GB, free: 13.47 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.007454, allocations: 12 kB / 0.9561 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.008596, allocations: 1.427 MB / 0.9575 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.88e-05/0.008655, allocations: 79.23 kB / 0.9576 GB, free: 11.86 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.068e-05/0.008686, allocations: 7.984 kB / 0.9576 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.00872, allocations: 16.5 kB / 0.9576 GB, free: 11.83 MB / 0.9167 GB Notification: Performance of SimCode: time 6.12e-07/0.008721, allocations: 8 kB / 0.9576 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01405/0.02277, allocations: 2.513 MB / 0.96 GB, free: 9.449 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.784/6.806, allocations: 3.984 kB / 0.96 GB, free: 9.445 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.703562661074102]