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.001632/0.001632, 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.001886/0.001886, 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.639/1.639, 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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.177/3.177, allocations: 0.5003 GB / 0.8026 GB, free: 6.742 MB / 0.6387 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.002/0.002, allocations: 63.91 kB / 1.165 GB, free: 476 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9472/0.9492, allocations: 178.9 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002737/0.9519, allocations: 1.571 MB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003466/0.9522, allocations: 116.3 kB / 1.342 GB, free: 15.06 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.9523, allocations: 1.094 kB / 1.342 GB, free: 15.06 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.9524, allocations: 15.42 kB / 1.342 GB, free: 15.05 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 2.437e-05/0.9524, allocations: 9.906 kB / 1.342 GB, free: 15.04 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.9526, allocations: 24.47 kB / 1.342 GB, free: 15.04 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.9527, allocations: 55.92 kB / 1.342 GB, free: 15.01 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.9528, allocations: 25.17 kB / 1.342 GB, free: 15 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.489e-05/0.9529, allocations: 23.2 kB / 1.342 GB, free: 14.99 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.055e-05/0.953, allocations: 32.94 kB / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.953, allocations: 4.438 kB / 1.342 GB, free: 14.98 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.912e-05/0.953, allocations: 14.16 kB / 1.342 GB, free: 14.97 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.91e-05/0.9531, allocations: 19.77 kB / 1.342 GB, free: 14.96 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.974e-05/0.9531, allocations: 27.23 kB / 1.342 GB, free: 14.94 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.9533, allocations: 66.86 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.9533, allocations: 1.531 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9533, allocations: 0 / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.9533, allocations: 0 / 1.342 GB, free: 14.91 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.0005205/0.9538, allocations: 381.3 kB / 1.342 GB, free: 14.53 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.9538, allocations: 9.625 kB / 1.342 GB, free: 14.53 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.419e-05/0.9539, allocations: 5.375 kB / 1.342 GB, free: 14.53 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.426e-05/0.9539, allocations: 38.11 kB / 1.342 GB, free: 14.48 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.9539, allocations: 8.203 kB / 1.342 GB, free: 14.48 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.9541, allocations: 180.1 kB / 1.343 GB, free: 14.28 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.9541, allocations: 6.531 kB / 1.343 GB, free: 14.27 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.9541, allocations: 2.844 kB / 1.343 GB, free: 14.27 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.9544, allocations: 98.23 kB / 1.343 GB, free: 14.22 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.9544, allocations: 0 / 1.343 GB, free: 14.22 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.9544, allocations: 5.031 kB / 1.343 GB, free: 14.21 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.9544, allocations: 4.844 kB / 1.343 GB, free: 14.21 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.9547, allocations: 80.2 kB / 1.343 GB, free: 14.2 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005084/0.9552, allocations: 327.8 kB / 1.343 GB, free: 13.9 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.9554, allocations: 58.05 kB / 1.343 GB, free: 13.87 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.9556, allocations: 37.95 kB / 1.343 GB, free: 13.86 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.9556, allocations: 3.125 kB / 1.343 GB, free: 13.86 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.271e-05/0.9556, allocations: 35.75 kB / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.9556, allocations: 96 / 1.343 GB, free: 13.82 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0005681/0.9562, allocations: 147.2 kB / 1.343 GB, free: 13.76 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.295e-05/0.9562, allocations: 53.34 kB / 1.343 GB, free: 13.7 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.203e-05/0.9563, allocations: 110.6 kB / 1.344 GB, free: 13.59 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.907e-06/0.9563, allocations: 33.7 kB / 1.344 GB, free: 13.55 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.9563, allocations: 98.58 kB / 1.344 GB, free: 13.46 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.9564, allocations: 5.812 kB / 1.344 GB, free: 13.46 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.502e-05/0.9564, allocations: 17.27 kB / 1.344 GB, free: 13.44 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.572e-05/0.9564, allocations: 318.5 kB / 1.344 GB, free: 13.12 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.9566, allocations: 33.95 kB / 1.344 GB, free: 13.12 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.9567, allocations: 36.08 kB / 1.344 GB, free: 13.11 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.957, allocations: 79.03 kB / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.957, allocations: 0 / 1.344 GB, free: 13.09 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003355/0.9574, allocations: 107.7 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.9574, allocations: 4.438 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.9574, allocations: 1.75 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.9574, allocations: 0 / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.9575, allocations: 16.81 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.9575, allocations: 0 / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.842e-05/0.9576, allocations: 15.86 kB / 1.344 GB, free: 13.04 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.9576, allocations: 5.719 kB / 1.344 GB, free: 13.03 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 6.318e-05/0.9577, allocations: 119 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.9577, allocations: 6.531 kB / 1.344 GB, free: 12.91 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000376/0.9581, allocations: 114.5 kB / 1.345 GB, free: 12.85 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.9581, allocations: 0.7031 kB / 1.345 GB, free: 12.85 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.9581, allocations: 3.938 kB / 1.345 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.9581, allocations: 1.5 kB / 1.345 GB, free: 12.84 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001438/0.9582, allocations: 185.5 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.9582, allocations: 0.75 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.905e-05/0.9583, allocations: 15.97 kB / 1.345 GB, free: 12.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.9583, allocations: 3.938 kB / 1.345 GB, free: 12.63 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.9584, allocations: 1.984 kB / 1.345 GB, free: 12.63 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.9584, allocations: 0 / 1.345 GB, free: 12.63 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.9584, allocations: 0.75 kB / 1.345 GB, free: 12.63 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.9587, allocations: 208.1 kB / 1.345 GB, free: 12.48 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.087e-05/0.9588, allocations: 86.94 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.9588, allocations: 2.031 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.9589, allocations: 11.42 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/0.9589, allocations: 7.484 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.085e-06/0.9589, allocations: 2.031 kB / 1.345 GB, free: 12.38 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.665e-05/0.959, allocations: 100.3 kB / 1.345 GB, free: 12.29 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.959, allocations: 0 / 1.345 GB, free: 12.29 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002367/0.9592, allocations: 8.25 kB / 1.345 GB, free: 12.29 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.0005417/0.9597, allocations: 0.7383 MB / 1.346 GB, free: 11.61 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003744/0.9601, allocations: 80.22 kB / 1.346 GB, free: 11.6 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.9601, allocations: 1.375 kB / 1.346 GB, free: 11.6 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.9603, allocations: 36.31 kB / 1.346 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.9606, allocations: 7.875 kB / 1.346 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.9624, allocations: 1.428 MB / 1.347 GB, free: 10.36 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.9625, allocations: 0.6938 MB / 1.348 GB, free: 9.66 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.554e-05/0.9625, allocations: 9.953 kB / 1.348 GB, free: 9.656 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.9626, allocations: 19.58 kB / 1.348 GB, free: 9.641 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.9626, allocations: 3.938 kB / 1.348 GB, free: 9.637 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.981, allocations: 1.875 MB / 1.35 GB, free: 9.191 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.578/9.559, allocations: 8.156 kB / 1.35 GB, free: 9.188 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.504356118966825]