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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 101.6 kB / 16.27 MB, free: 5.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 188.7 kB / 17.19 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.806/2.806, allocations: 482.4 MB / 0.7553 GB, free: 6.953 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 71.91 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.932/0.9343, allocations: 162.2 MB / 1.083 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004047/0.9384, allocations: 1.534 MB / 1.084 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004574/0.9389, allocations: 114.8 kB / 1.085 GB, free: 488 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.253e-05/0.9389, allocations: 1.125 kB / 1.085 GB, free: 488 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.9392, allocations: 11.22 kB / 1.085 GB, free: 480 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.36e-05/0.9392, allocations: 5.953 kB / 1.085 GB, free: 476 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.9396, allocations: 33.02 kB / 1.085 GB, free: 460 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.9397, allocations: 58.45 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001821/0.9399, allocations: 23.84 kB / 1.085 GB, free: 424 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.943e-05/0.94, allocations: 22.31 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.491e-05/0.9401, allocations: 33.34 kB / 1.085 GB, free: 400 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.9401, allocations: 3.375 kB / 1.085 GB, free: 400 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.832e-05/0.9402, allocations: 13.44 kB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.9403, allocations: 20.31 kB / 1.085 GB, free: 384 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.57e-05/0.9404, allocations: 27.22 kB / 1.085 GB, free: 364 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.9405, allocations: 56.59 kB / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.9406, allocations: 1.125 kB / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of FrontEnd: time 3.236e-06/0.9406, allocations: 0 / 1.085 GB, free: 340 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.9406, allocations: 0 / 1.085 GB, free: 340 kB / 0.8262 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.0007415/0.9413, allocations: 382.4 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.9414, allocations: 9.5 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.649e-05/0.9415, allocations: 11.59 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.9418, allocations: 188.7 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.9418, allocations: 7.328 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.9418, allocations: 2.312 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.9422, allocations: 90.72 kB / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.9422, allocations: 192 / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.9422, allocations: 7.938 kB / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.9423, allocations: 1.812 kB / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003916/0.9426, allocations: 80.14 kB / 1.086 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007671/0.9434, allocations: 328.8 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002415/0.9437, allocations: 57.92 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.9439, allocations: 43.75 kB / 1.086 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.73e-05/0.9439, allocations: 1 kB / 1.086 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.944, allocations: 32.25 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.944, allocations: 5.344 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0006476/0.9446, allocations: 138 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.9447, allocations: 56.25 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.9449, allocations: 112.3 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.9449, allocations: 25.7 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.173e-05/0.945, allocations: 101.6 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.945, allocations: 11.33 kB / 1.086 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.9451, allocations: 17.22 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002086/0.9453, allocations: 321.7 kB / 1.087 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001655/0.9454, allocations: 34.17 kB / 1.087 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.9456, allocations: 36.14 kB / 1.087 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.9459, allocations: 70.98 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.9459, allocations: 0 / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003707/0.9463, allocations: 111.3 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.9463, allocations: 9.25 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.9463, allocations: 0.625 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.9464, allocations: 1 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.9465, allocations: 14.7 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.9465, allocations: 1.859 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.722e-05/0.9466, allocations: 11.28 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.335e-05/0.9466, allocations: 1.844 kB / 1.087 GB, free: 14.5 MB / 0.8419 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 0.0001203/0.9468, allocations: 123.1 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.9468, allocations: 2.953 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004154/0.9472, allocations: 117.6 kB / 1.087 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.9472, allocations: 5.484 kB / 1.087 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.9472, allocations: 3.984 kB / 1.087 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.9473, allocations: 0.8438 kB / 1.087 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.9475, allocations: 187.3 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.9475, allocations: 0 / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.85e-05/0.9476, allocations: 16.2 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.9476, allocations: 0 / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.9476, allocations: 0.7031 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.9476, allocations: 0.7188 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.9476, allocations: 0.9375 kB / 1.087 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004308/0.9481, allocations: 210.8 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/0.9481, allocations: 82.73 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.9482, allocations: 1.766 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.9483, allocations: 11.72 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.9483, allocations: 3.875 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.9484, allocations: 1.469 kB / 1.088 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.808e-05/0.9484, allocations: 98.58 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9484, allocations: 0 / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002409/0.9487, allocations: 14.47 kB / 1.088 GB, free: 13.76 MB / 0.8419 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.0001733/0.9489, allocations: 101.7 kB / 1.088 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003848/0.9493, allocations: 72.95 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.9493, allocations: 5.219 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.9494, allocations: 46.27 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.9497, allocations: 3.141 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004232/0.9502, allocations: 179.3 kB / 1.088 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.9505, allocations: 0.6955 MB / 1.089 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.9506, allocations: 11.19 kB / 1.089 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.9506, allocations: 0 / 1.089 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of Templates: time 0.00311/0.9537, allocations: 0.936 MB / 1.09 GB, free: 12.7 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) 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) Reference file matches