Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001505/0.001505, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001699/0.001699, allocations: 211.9 kB / 22.24 MB, free: 5.262 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.55/1.55, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.187/3.187, allocations: 0.4892 GB / 0.7943 GB, free: 35.5 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",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.002074/0.002074, allocations: 71.17 kB / 1.153 GB, free: 25.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.354, allocations: 176.1 MB / 1.325 GB, free: 2.32 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002753/0.3567, allocations: 1.537 MB / 1.327 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003578/0.3571, allocations: 107.7 kB / 1.327 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.3571, allocations: 3.938 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.3572, allocations: 15.92 kB / 1.327 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.551e-05/0.3573, allocations: 3.938 kB / 1.327 GB, free: 0.6484 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.3575, allocations: 31.91 kB / 1.327 GB, free: 0.6172 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.619e-05/0.3576, allocations: 55.83 kB / 1.327 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3577, allocations: 20.27 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.405e-05/0.3577, allocations: 27.91 kB / 1.327 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.781e-05/0.3578, allocations: 23.86 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.3578, allocations: 11.94 kB / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.068e-05/0.3579, allocations: 15.98 kB / 1.327 GB, free: 476 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.332e-05/0.3579, allocations: 11.98 kB / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.296e-05/0.358, allocations: 19.88 kB / 1.327 GB, free: 444 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.3581, allocations: 63.72 kB / 1.327 GB, free: 380 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3581, allocations: 0 / 1.327 GB, free: 380 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3581, allocations: 4 kB / 1.327 GB, free: 376 kB / 1.014 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.3581, allocations: 0 / 1.327 GB, free: 376 kB / 1.014 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.0005043/0.3586, allocations: 306.1 kB / 1.327 GB, free: 36 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.3586, allocations: 11.97 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.686e-05/0.3587, allocations: 38.69 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.16e-05/0.3587, allocations: 12.89 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.3589, allocations: 126.3 kB / 1.327 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.3589, allocations: 8.375 kB / 1.327 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.3589, allocations: 4.375 kB / 1.327 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.3592, allocations: 86.2 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3592, allocations: 3.938 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.3592, allocations: 4 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3592, allocations: 3.984 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.3595, allocations: 75.92 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005189/0.36, allocations: 295.8 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.3602, allocations: 54.53 kB / 1.328 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.3604, allocations: 44.94 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.3604, allocations: 4 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.3605, allocations: 30.56 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.223e-06/0.3605, allocations: 4 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005767/0.361, allocations: 133.5 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.124e-05/0.3611, allocations: 55.41 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.988e-05/0.3612, allocations: 121.8 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.3612, allocations: 25.7 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.62e-05/0.3613, allocations: 92.09 kB / 1.328 GB, free: 14.68 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.3613, allocations: 15.89 kB / 1.328 GB, free: 14.67 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.3613, allocations: 17.7 kB / 1.328 GB, free: 14.64 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3615, allocations: 322.8 kB / 1.329 GB, free: 14.32 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.3616, allocations: 35.89 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.3618, allocations: 39.91 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.362, allocations: 72.78 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3621, allocations: 4 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003394/0.3624, allocations: 105.6 kB / 1.329 GB, free: 14.06 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.3624, allocations: 8 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.3624, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.3624, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.3625, allocations: 15.98 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.3626, allocations: 7.984 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.087e-05/0.3626, allocations: 15.92 kB / 1.329 GB, free: 14.01 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/0.3627, allocations: 4 kB / 1.329 GB, free: 14.01 MB / 1.029 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 8.863e-05/0.3627, allocations: 122.2 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.3628, allocations: 0 / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003841/0.3632, allocations: 117.9 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.3632, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3632, allocations: 48 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3632, allocations: 3.984 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.3633, allocations: 152.6 kB / 1.329 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3633, allocations: 0 / 1.329 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.553e-05/0.3634, allocations: 11.98 kB / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3634, allocations: 0 / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.3635, allocations: 4 kB / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3635, allocations: 4 kB / 1.329 GB, free: 13.53 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3635, allocations: 7.922 kB / 1.329 GB, free: 13.52 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003875/0.3638, allocations: 199.4 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.229e-05/0.3639, allocations: 7.953 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.3639, allocations: 0 / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.364, allocations: 19.97 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.364, allocations: 0 / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.364, allocations: 4 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.081e-05/0.3641, allocations: 95.27 kB / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3641, allocations: 0 / 1.33 GB, free: 13.19 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002476/0.3643, allocations: 11.94 kB / 1.33 GB, free: 13.18 MB / 1.029 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.000725/0.3651, allocations: 0.7396 MB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003548/0.3654, allocations: 79.91 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3654, allocations: 0 / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.3656, allocations: 35.95 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.3659, allocations: 14.39 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.3678, allocations: 1.433 MB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.787e-05/0.3679, allocations: 75.33 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 5.068e-05/0.368, allocations: 11.91 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.749e-05/0.368, allocations: 19.42 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of SimCode: time 3.9e-07/0.368, allocations: 0 / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02897/0.397, allocations: 2.394 MB / 1.334 GB, free: 8.395 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.94, allocations: 8.734 kB / 1.335 GB, free: 8.391 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.674588022287935]