Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_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.001358/0.001358, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.308/2.308, allocations: 390.2 MB / 0.6647 GB, free: 388 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001415, allocations: 67.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6143/0.6157, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002429/0.6182, allocations: 1.526 MB / 0.9511 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002923/0.6185, allocations: 113.1 kB / 0.9512 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-05/0.6185, allocations: 0 / 0.9512 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.941e-05/0.6187, allocations: 9.25 kB / 0.9512 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.273e-05/0.6187, allocations: 13.16 kB / 0.9512 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.6189, allocations: 31.25 kB / 0.9512 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.167e-05/0.619, allocations: 47 kB / 0.9513 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.6191, allocations: 36.33 kB / 0.9513 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.486e-05/0.6192, allocations: 21.55 kB / 0.9513 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.665e-05/0.6192, allocations: 37.45 kB / 0.9514 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.6192, allocations: 4.125 kB / 0.9514 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.275e-05/0.6193, allocations: 8.25 kB / 0.9514 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.6194, allocations: 24.05 kB / 0.9514 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.348e-05/0.6194, allocations: 21.38 kB / 0.9514 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.6195, allocations: 67.53 kB / 0.9515 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.6195, allocations: 0 / 0.9515 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.6195, allocations: 1.062 kB / 0.9515 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.136e-06/0.6195, allocations: 0 / 0.9515 GB, free: 7.641 MB / 0.7169 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.0004186/0.62, allocations: 377.8 kB / 0.9518 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.62, allocations: 10.25 kB / 0.9519 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.6201, allocations: 15.25 kB / 0.9519 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.923e-05/0.6202, allocations: 183.8 kB / 0.952 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.6202, allocations: 5.625 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.6202, allocations: 4.156 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.6204, allocations: 88.86 kB / 0.9521 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.6205, allocations: 192 / 0.9521 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.6205, allocations: 3.938 kB / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.6205, allocations: 9.453 kB / 0.9522 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.6208, allocations: 81.89 kB / 0.9522 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004175/0.6212, allocations: 327 kB / 0.9525 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001851/0.6214, allocations: 59.12 kB / 0.9526 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.6216, allocations: 40.84 kB / 0.9526 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.6216, allocations: 1.188 kB / 0.9526 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.6216, allocations: 35.81 kB / 0.9527 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.6216, allocations: 4 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000521/0.6222, allocations: 134.8 kB / 0.9528 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.45e-05/0.6222, allocations: 51.41 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.797e-05/0.6223, allocations: 120.5 kB / 0.953 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.6223, allocations: 29.7 kB / 0.953 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.693e-05/0.6223, allocations: 90.77 kB / 0.9531 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.6223, allocations: 9.156 kB / 0.9531 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.132e-05/0.6224, allocations: 20.8 kB / 0.9531 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.06e-05/0.6224, allocations: 316.5 kB / 0.9534 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.6226, allocations: 38.05 kB / 0.9535 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.6227, allocations: 35.06 kB / 0.9535 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/0.623, allocations: 70 kB / 0.9536 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.623, allocations: 1.312 kB / 0.9536 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003111/0.6233, allocations: 112 kB / 0.9537 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.6233, allocations: 5 kB / 0.9537 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.6233, allocations: 0 / 0.9537 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.6233, allocations: 1.25 kB / 0.9537 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.6235, allocations: 18.22 kB / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.6235, allocations: 0 / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.61e-05/0.6236, allocations: 15.52 kB / 0.9537 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.6236, allocations: 1.344 kB / 0.9537 GB, free: 5.586 MB / 0.7169 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.256e-05/0.6237, allocations: 117.6 kB / 0.9538 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.6237, allocations: 10.83 kB / 0.9538 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003474/0.624, allocations: 123.6 kB / 0.9539 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.6241, allocations: 1.281 kB / 0.9539 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.6241, allocations: 3.938 kB / 0.9539 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.6241, allocations: 0 / 0.9539 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.6242, allocations: 182.8 kB / 0.9541 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6242, allocations: 0 / 0.9541 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.373e-05/0.6243, allocations: 14.2 kB / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.6243, allocations: 1.125 kB / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.6243, allocations: 0 / 0.9541 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6243, allocations: 9.234 kB / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.6243, allocations: 0 / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.6247, allocations: 200 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.728e-05/0.6247, allocations: 90.38 kB / 0.9544 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.6247, allocations: 0 / 0.9544 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.6248, allocations: 15.23 kB / 0.9544 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.6249, allocations: 2.594 kB / 0.9544 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.6249, allocations: 1.344 kB / 0.9544 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.02e-05/0.6249, allocations: 99.28 kB / 0.9545 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6249, allocations: 0 / 0.9545 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002237/0.6251, allocations: 9.875 kB / 0.9545 GB, free: 4.762 MB / 0.7169 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.0001074/0.6252, allocations: 107.5 kB / 0.9546 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003398/0.6256, allocations: 76.39 kB / 0.9547 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.6256, allocations: 5.188 kB / 0.9547 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.6258, allocations: 42.14 kB / 0.9548 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.6261, allocations: 10.44 kB / 0.9548 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.6263, allocations: 145.5 kB / 0.9549 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.763e-05/0.6264, allocations: 0.697 MB / 0.9556 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.988e-05/0.6265, allocations: 7.953 kB / 0.9556 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.277e-05/0.6265, allocations: 9.406 kB / 0.9556 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6265, allocations: 0 / 0.9556 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of Templates: time 0.002963/0.6295, allocations: 0.7677 MB / 0.9564 GB, free: 3.359 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches