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.00113/0.001129, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001317/0.001317, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.443/1.443, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.416/2.416, allocations: 390.2 MB / 0.6642 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 0.8118 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7624/0.7637, allocations: 140.4 MB / 0.9489 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002738/0.7665, allocations: 1.591 MB / 0.9505 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003252/0.7668, allocations: 117.2 kB / 0.9506 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.25e-05/0.7669, allocations: 1.375 kB / 0.9506 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.767, allocations: 7.922 kB / 0.9506 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.702e-05/0.767, allocations: 5.312 kB / 0.9506 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001909/0.7672, allocations: 24.23 kB / 0.9506 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.626e-05/0.7673, allocations: 53.78 kB / 0.9507 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.7674, allocations: 32.33 kB / 0.9507 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.222e-05/0.7675, allocations: 21.55 kB / 0.9507 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.117e-05/0.7676, allocations: 24.16 kB / 0.9507 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.7676, allocations: 6.75 kB / 0.9507 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.802e-05/0.7677, allocations: 14.81 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.066e-05/0.7677, allocations: 16.05 kB / 0.9508 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.475e-05/0.7677, allocations: 21.36 kB / 0.9508 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.7679, allocations: 58.92 kB / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.7679, allocations: 0 / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7679, allocations: 1.375 kB / 0.9509 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7679, allocations: 0 / 0.9509 GB, free: 7.609 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.0004632/0.7684, allocations: 382.1 kB / 0.9512 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.7684, allocations: 9.625 kB / 0.9512 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.7685, allocations: 7.594 kB / 0.9512 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.7686, allocations: 195 kB / 0.9514 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.7686, allocations: 3.125 kB / 0.9514 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.7686, allocations: 3.125 kB / 0.9514 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.7689, allocations: 85.91 kB / 0.9515 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.7689, allocations: 192 / 0.9515 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.7689, allocations: 9.312 kB / 0.9515 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.7689, allocations: 0 / 0.9515 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.7692, allocations: 85.22 kB / 0.9516 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004471/0.7697, allocations: 324.7 kB / 0.9519 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/0.7699, allocations: 62.78 kB / 0.952 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.77, allocations: 44.27 kB / 0.952 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.7701, allocations: 2.375 kB / 0.952 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.651e-05/0.7701, allocations: 38.55 kB / 0.952 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.7701, allocations: 1.406 kB / 0.952 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005238/0.7706, allocations: 133 kB / 0.9522 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.7707, allocations: 60.94 kB / 0.9522 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.671e-05/0.7707, allocations: 115.4 kB / 0.9523 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.7707, allocations: 25.7 kB / 0.9524 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.937e-05/0.7708, allocations: 95.09 kB / 0.9525 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.7708, allocations: 17.14 kB / 0.9525 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.128e-05/0.7708, allocations: 12.75 kB / 0.9525 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.635e-05/0.7709, allocations: 324.5 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.771, allocations: 34.31 kB / 0.9528 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.7712, allocations: 35.14 kB / 0.9529 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.7714, allocations: 69.91 kB / 0.9529 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.7714, allocations: 0 / 0.9529 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003074/0.7718, allocations: 116.1 kB / 0.953 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.7718, allocations: 14.17 kB / 0.9531 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.7718, allocations: 0 / 0.9531 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.7718, allocations: 0 / 0.9531 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.7719, allocations: 18.45 kB / 0.9531 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.772, allocations: 1.375 kB / 0.9531 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.811e-05/0.772, allocations: 10.27 kB / 0.9531 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.7721, allocations: 5.094 kB / 0.9531 GB, free: 5.531 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.918e-05/0.7721, allocations: 121.6 kB / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.7722, allocations: 6.562 kB / 0.9532 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003491/0.7725, allocations: 108.4 kB / 0.9533 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.7725, allocations: 1.375 kB / 0.9533 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.7725, allocations: 4 kB / 0.9533 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.7726, allocations: 3.938 kB / 0.9533 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001286/0.7727, allocations: 178.9 kB / 0.9535 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.7727, allocations: 0 / 0.9535 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.828e-05/0.7728, allocations: 22.62 kB / 0.9535 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.7728, allocations: 0 / 0.9535 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.7728, allocations: 1.875 kB / 0.9535 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7728, allocations: 0 / 0.9535 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7728, allocations: 0 / 0.9535 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.7732, allocations: 203.8 kB / 0.9537 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.901e-05/0.7732, allocations: 82.55 kB / 0.9538 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.7732, allocations: 0 / 0.9538 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.7733, allocations: 10.58 kB / 0.9538 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.956e-05/0.7734, allocations: 6.734 kB / 0.9538 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.7734, allocations: 5.406 kB / 0.9538 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.598e-05/0.7734, allocations: 91.83 kB / 0.9539 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.21e-07/0.7734, allocations: 0 / 0.9539 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002347/0.7737, allocations: 13.09 kB / 0.9539 GB, free: 4.727 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.000125/0.7738, allocations: 104.5 kB / 0.954 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003347/0.7741, allocations: 80.53 kB / 0.9541 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.7741, allocations: 0 / 0.9541 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.7743, allocations: 38.91 kB / 0.9541 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.7746, allocations: 6.719 kB / 0.9541 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003066/0.7749, allocations: 178.8 kB / 0.9543 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.7751, allocations: 0.6886 MB / 0.955 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.351e-05/0.7751, allocations: 3.125 kB / 0.955 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.662e-05/0.7751, allocations: 9.969 kB / 0.955 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7751, allocations: 3.938 kB / 0.955 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of Templates: time 0.002765/0.7779, allocations: 0.6352 MB / 0.9556 GB, free: 3.375 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