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.001391/0.001391, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001646/0.001646, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.617/1.617, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.002/3.002, allocations: 0.49 GB / 0.7923 GB, free: 1.418 MB / 0.6231 GB " [Timeout remaining time 176] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_12_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: 71.89 kB / 1.15 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.027/1.029, allocations: 176.1 MB / 1.321 GB, free: 24.78 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002846/1.032, allocations: 1.561 MB / 1.323 GB, free: 23.7 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003581/1.032, allocations: 112.1 kB / 1.323 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.899e-05/1.032, allocations: 7.938 kB / 1.323 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001373/1.032, allocations: 14.19 kB / 1.323 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.2e-05/1.032, allocations: 7.922 kB / 1.323 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/1.033, allocations: 29.19 kB / 1.323 GB, free: 23.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.367e-05/1.033, allocations: 52.28 kB / 1.323 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/1.033, allocations: 22.42 kB / 1.323 GB, free: 23.56 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.415e-05/1.033, allocations: 29.39 kB / 1.323 GB, free: 23.55 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.261e-05/1.033, allocations: 30.77 kB / 1.323 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/1.033, allocations: 9.656 kB / 1.323 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.012e-05/1.033, allocations: 9.312 kB / 1.323 GB, free: 23.53 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.126e-05/1.033, allocations: 17.39 kB / 1.323 GB, free: 23.52 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.565e-05/1.033, allocations: 25.34 kB / 1.323 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/1.033, allocations: 66.97 kB / 1.323 GB, free: 23.47 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/1.033, allocations: 0 / 1.323 GB, free: 23.47 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.393e-06/1.033, allocations: 0 / 1.323 GB, free: 23.47 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.98e-06/1.033, allocations: 0 / 1.323 GB, free: 23.47 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.0004692/1.034, allocations: 382 kB / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/1.034, allocations: 12.83 kB / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.865e-05/1.034, allocations: 192 / 1.324 GB, free: 23.09 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.362e-05/1.034, allocations: 41.91 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.576e-05/1.034, allocations: 3.938 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/1.034, allocations: 185.4 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/1.034, allocations: 7.844 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/1.034, allocations: 3.812 kB / 1.324 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/1.034, allocations: 91.39 kB / 1.324 GB, free: 22.78 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/1.034, allocations: 3.938 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/1.034, allocations: 2.75 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/1.034, allocations: 0 / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002939/1.035, allocations: 89.67 kB / 1.324 GB, free: 22.75 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000411/1.035, allocations: 323.1 kB / 1.325 GB, free: 22.46 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/1.035, allocations: 59.56 kB / 1.325 GB, free: 22.43 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/1.035, allocations: 41.47 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/1.035, allocations: 6.844 kB / 1.325 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.071e-05/1.035, allocations: 30.56 kB / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/1.035, allocations: 0 / 1.325 GB, free: 22.37 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0005393/1.036, allocations: 139.7 kB / 1.325 GB, free: 22.32 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.705e-05/1.036, allocations: 58.41 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.759e-05/1.036, allocations: 116.4 kB / 1.325 GB, free: 22.14 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.767e-06/1.036, allocations: 29.7 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.462e-05/1.036, allocations: 98.3 kB / 1.325 GB, free: 22.02 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/1.036, allocations: 6.922 kB / 1.325 GB, free: 22.01 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/1.036, allocations: 20.19 kB / 1.325 GB, free: 21.99 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 3.679e-05/1.036, allocations: 314.8 kB / 1.325 GB, free: 21.68 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/1.036, allocations: 38.39 kB / 1.325 GB, free: 21.67 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/1.036, allocations: 31.23 kB / 1.325 GB, free: 21.66 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/1.037, allocations: 74.78 kB / 1.326 GB, free: 21.64 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.037, allocations: 0 / 1.326 GB, free: 21.64 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003142/1.037, allocations: 112.3 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/1.037, allocations: 9.156 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/1.037, allocations: 0 / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/1.037, allocations: 0 / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/1.037, allocations: 22.28 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/1.037, allocations: 0 / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.548e-05/1.037, allocations: 12.75 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/1.037, allocations: 6.75 kB / 1.326 GB, free: 21.58 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 4.992e-05/1.037, allocations: 117.9 kB / 1.326 GB, free: 21.46 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/1.037, allocations: 2.812 kB / 1.326 GB, free: 21.46 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003488/1.038, allocations: 111.8 kB / 1.326 GB, free: 21.4 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/1.038, allocations: 7.375 kB / 1.326 GB, free: 21.4 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/1.038, allocations: 7.25 kB / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/1.038, allocations: 0 / 1.326 GB, free: 21.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001354/1.038, allocations: 185.2 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/1.038, allocations: 3.375 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-05/1.038, allocations: 18.52 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/1.038, allocations: 0 / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/1.038, allocations: 2.5 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/1.038, allocations: 0 / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/1.038, allocations: 0 / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/1.038, allocations: 202.2 kB / 1.326 GB, free: 21.03 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/1.038, allocations: 90.72 kB / 1.326 GB, free: 20.93 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/1.038, allocations: 3.938 kB / 1.326 GB, free: 20.93 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/1.038, allocations: 10.16 kB / 1.326 GB, free: 20.93 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/1.038, allocations: 14.5 kB / 1.326 GB, free: 20.92 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/1.038, allocations: 0 / 1.326 GB, free: 20.92 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.018e-05/1.038, allocations: 97.36 kB / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.038, allocations: 0 / 1.327 GB, free: 20.84 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002236/1.039, allocations: 7.656 kB / 1.327 GB, free: 20.84 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.0005343/1.039, allocations: 0.7369 MB / 1.327 GB, free: 20.16 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003557/1.04, allocations: 80.12 kB / 1.327 GB, free: 20.15 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/1.04, allocations: 0 / 1.327 GB, free: 20.15 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001548/1.04, allocations: 44.58 kB / 1.327 GB, free: 20.14 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/1.04, allocations: 2.938 kB / 1.327 GB, free: 20.14 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/1.042, allocations: 1.424 MB / 1.329 GB, free: 18.91 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/1.042, allocations: 0.6893 MB / 1.329 GB, free: 18.21 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.158e-05/1.042, allocations: 11.61 kB / 1.329 GB, free: 18.21 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.293e-05/1.042, allocations: 22.23 kB / 1.329 GB, free: 18.19 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/1.042, allocations: 0 / 1.329 GB, free: 18.19 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/1.06, allocations: 1.864 MB / 1.331 GB, free: 17.75 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.429/9.489, allocations: 12.86 kB / 1.331 GB, free: 17.74 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.26905053202063]