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.001151/0.001151, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001633/0.001633, allocations: 188.8 kB / 16.25 MB, free: 6.645 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.524/1.524, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.738/2.738, allocations: 390.2 MB / 0.6643 GB, free: 0.5547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 59.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8893/0.8908, allocations: 140.4 MB / 0.9491 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003605/0.8944, allocations: 1.597 MB / 0.9506 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004187/0.8949, allocations: 112 kB / 0.9508 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.031e-05/0.895, allocations: 1.312 kB / 0.9508 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.8952, allocations: 9.516 kB / 0.9508 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.747e-05/0.8952, allocations: 3.938 kB / 0.9508 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.8955, allocations: 21.05 kB / 0.9508 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.8957, allocations: 50.5 kB / 0.9508 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.8959, allocations: 33.14 kB / 0.9509 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.219e-05/0.8959, allocations: 29.36 kB / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.569e-05/0.896, allocations: 31.97 kB / 0.9509 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.8961, allocations: 5.5 kB / 0.9509 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.123e-05/0.8961, allocations: 6.875 kB / 0.9509 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.273e-05/0.8962, allocations: 22.88 kB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.942e-05/0.8962, allocations: 29.3 kB / 0.951 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001505/0.8964, allocations: 58.92 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.8964, allocations: 4 kB / 0.9511 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.304e-06/0.8964, allocations: 1.375 kB / 0.9511 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.8964, allocations: 0 / 0.9511 GB, free: 7.586 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.0005439/0.897, allocations: 378.1 kB / 0.9514 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.897, allocations: 9.625 kB / 0.9514 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.8971, allocations: 7.594 kB / 0.9514 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.8973, allocations: 183.1 kB / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.8973, allocations: 11.12 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.8973, allocations: 3.125 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.8976, allocations: 88.39 kB / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.8976, allocations: 192 / 0.9517 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.8976, allocations: 9.25 kB / 0.9517 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.8977, allocations: 0 / 0.9517 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.8979, allocations: 85.28 kB / 0.9518 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005547/0.8985, allocations: 324.5 kB / 0.9521 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.8987, allocations: 62.06 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.8989, allocations: 41.17 kB / 0.9522 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.36e-05/0.8989, allocations: 1.312 kB / 0.9522 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.8989, allocations: 35.95 kB / 0.9522 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.8989, allocations: 0 / 0.9522 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005333/0.8995, allocations: 142.1 kB / 0.9524 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.8995, allocations: 52.94 kB / 0.9524 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.378e-05/0.8996, allocations: 115.7 kB / 0.9525 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.8996, allocations: 25.7 kB / 0.9526 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.337e-05/0.8997, allocations: 98.2 kB / 0.9526 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.8997, allocations: 13.31 kB / 0.9527 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/0.8998, allocations: 17.12 kB / 0.9527 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.5e-05/0.8998, allocations: 320.2 kB / 0.953 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.9, allocations: 30.94 kB / 0.953 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.9001, allocations: 38.67 kB / 0.9531 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.9004, allocations: 77.53 kB / 0.9531 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.9004, allocations: 1.312 kB / 0.9531 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003172/0.9007, allocations: 100.3 kB / 0.9532 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.9007, allocations: 9.078 kB / 0.9532 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.9007, allocations: 7.938 kB / 0.9532 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.9008, allocations: 1.5 kB / 0.9532 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.9009, allocations: 13.66 kB / 0.9533 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.9009, allocations: 1.312 kB / 0.9533 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.507e-05/0.901, allocations: 18.25 kB / 0.9533 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.901, allocations: 1.094 kB / 0.9533 GB, free: 5.523 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 6.789e-05/0.9011, allocations: 118.2 kB / 0.9534 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.157e-05/0.9011, allocations: 10.28 kB / 0.9534 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.9015, allocations: 115.4 kB / 0.9535 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.9015, allocations: 5.25 kB / 0.9535 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.9015, allocations: 0 / 0.9535 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.9016, allocations: 5.422 kB / 0.9535 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.9017, allocations: 177.4 kB / 0.9537 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.9017, allocations: 0 / 0.9537 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.291e-05/0.9018, allocations: 22.75 kB / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.9018, allocations: 1.5 kB / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.9018, allocations: 0 / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.9019, allocations: 0 / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.9019, allocations: 1.469 kB / 0.9537 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003295/0.9022, allocations: 206.3 kB / 0.9539 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.873e-05/0.9022, allocations: 83.14 kB / 0.954 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.9023, allocations: 0 / 0.954 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.931e-05/0.9024, allocations: 11.39 kB / 0.954 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.306e-05/0.9024, allocations: 9.422 kB / 0.954 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.9024, allocations: 1.375 kB / 0.954 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.001e-05/0.9025, allocations: 96.8 kB / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9025, allocations: 0 / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002335/0.9027, allocations: 12.88 kB / 0.9541 GB, free: 4.703 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.0001423/0.9029, allocations: 101 kB / 0.9542 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003394/0.9032, allocations: 80.16 kB / 0.9543 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.9032, allocations: 0 / 0.9543 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.9034, allocations: 43 kB / 0.9543 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.9037, allocations: 10.53 kB / 0.9543 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003832/0.9041, allocations: 166.8 kB / 0.9545 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.9043, allocations: 0.6964 MB / 0.9552 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.657e-05/0.9043, allocations: 4.125 kB / 0.9552 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.79e-05/0.9043, allocations: 10.28 kB / 0.9552 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of SimCode: time 5.11e-07/0.9043, allocations: 0 / 0.9552 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of Templates: time 0.003412/0.9078, allocations: 0.6563 MB / 0.9558 GB, free: 3.344 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