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.001106/0.001106, allocations: 106.7 kB / 15.99 MB, free: 6.348 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.00108/0.00108, allocations: 195.1 kB / 16.91 MB, free: 6.188 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.369/1.369, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.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.221/2.221, allocations: 390.2 MB / 0.665 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 60.83 kB / 0.8127 GB, free: 33.24 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3113, allocations: 140.4 MB / 0.9498 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003211/0.3146, allocations: 1.601 MB / 0.9513 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0004412/0.3151, allocations: 112.5 kB / 0.9514 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.267e-05/0.3151, allocations: 0 / 0.9514 GB, free: 7.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.3153, allocations: 7.938 kB / 0.9514 GB, free: 7.516 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.701e-05/0.3154, allocations: 11.92 kB / 0.9515 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003135/0.3157, allocations: 19.98 kB / 0.9515 GB, free: 7.484 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.3158, allocations: 59.78 kB / 0.9515 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.316, allocations: 27.95 kB / 0.9516 GB, free: 7.398 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.831e-05/0.3161, allocations: 23.92 kB / 0.9516 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.293e-05/0.3162, allocations: 35.91 kB / 0.9516 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.3162, allocations: 4 kB / 0.9516 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.893e-05/0.3163, allocations: 11.94 kB / 0.9516 GB, free: 7.324 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.212e-05/0.3163, allocations: 15.92 kB / 0.9516 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.849e-05/0.3164, allocations: 23.86 kB / 0.9517 GB, free: 7.285 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.3165, allocations: 43.92 kB / 0.9517 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.3165, allocations: 4 kB / 0.9517 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.234e-06/0.3166, allocations: 0 / 0.9517 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.3166, allocations: 0 / 0.9517 GB, free: 7.238 MB / 0.7325 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.0006215/0.3172, allocations: 388.7 kB / 0.9521 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3172, allocations: 12.02 kB / 0.9521 GB, free: 6.797 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.3173, allocations: 8.938 kB / 0.9521 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.3175, allocations: 184.2 kB / 0.9523 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.3175, allocations: 384 / 0.9523 GB, free: 6.57 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/0.3175, allocations: 8.375 kB / 0.9523 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.3179, allocations: 82.2 kB / 0.9524 GB, free: 6.477 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3179, allocations: 4.188 kB / 0.9524 GB, free: 6.473 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.3179, allocations: 7.938 kB / 0.9524 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3179, allocations: 3.938 kB / 0.9524 GB, free: 6.461 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003098/0.3183, allocations: 83.91 kB / 0.9525 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.3188, allocations: 320.8 kB / 0.9528 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.3191, allocations: 62.47 kB / 0.9528 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.3192, allocations: 40.91 kB / 0.9529 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.3193, allocations: 8 kB / 0.9529 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.3193, allocations: 30.56 kB / 0.9529 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3193, allocations: 0 / 0.9529 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005661/0.3199, allocations: 141.4 kB / 0.953 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.3199, allocations: 55.41 kB / 0.9531 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.629e-05/0.32, allocations: 113.8 kB / 0.9532 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.3201, allocations: 25.7 kB / 0.9532 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.988e-05/0.3201, allocations: 100.1 kB / 0.9533 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.3202, allocations: 11.8 kB / 0.9533 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.3202, allocations: 21.66 kB / 0.9533 GB, free: 5.352 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3204, allocations: 318.8 kB / 0.9537 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.3205, allocations: 35.97 kB / 0.9537 GB, free: 4.996 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.3207, allocations: 35.95 kB / 0.9537 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002712/0.3209, allocations: 73.06 kB / 0.9538 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3209, allocations: 0 / 0.9538 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003351/0.3213, allocations: 117.5 kB / 0.9539 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.3213, allocations: 4 kB / 0.9539 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3213, allocations: 0 / 0.9539 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3214, allocations: 0 / 0.9539 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.3215, allocations: 15.98 kB / 0.9539 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3215, allocations: 0 / 0.9539 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.3216, allocations: 19.97 kB / 0.9539 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.3216, allocations: 0 / 0.9539 GB, free: 4.727 MB / 0.7325 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 9.502e-05/0.3217, allocations: 117.8 kB / 0.9541 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.3218, allocations: 7.906 kB / 0.9541 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003969/0.3222, allocations: 113.4 kB / 0.9542 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3222, allocations: 4 kB / 0.9542 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.3222, allocations: 4 kB / 0.9542 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3222, allocations: 0 / 0.9542 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.3224, allocations: 181.6 kB / 0.9543 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3224, allocations: 0 / 0.9543 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.683e-05/0.3225, allocations: 15.98 kB / 0.9544 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3225, allocations: 0 / 0.9544 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.3226, allocations: 4 kB / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3226, allocations: 0 / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3226, allocations: 0 / 0.9544 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003791/0.323, allocations: 207.3 kB / 0.9546 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.834e-05/0.323, allocations: 77.11 kB / 0.9546 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.323, allocations: 4 kB / 0.9546 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3231, allocations: 11.97 kB / 0.9547 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.005e-05/0.3232, allocations: 12 kB / 0.9547 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.3232, allocations: 0 / 0.9547 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.64e-05/0.3233, allocations: 99.14 kB / 0.9548 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3233, allocations: 0 / 0.9548 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002458/0.3235, allocations: 15.94 kB / 0.9548 GB, free: 3.762 MB / 0.7325 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.000153/0.3237, allocations: 99.19 kB / 0.9549 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003625/0.3241, allocations: 79.91 kB / 0.9549 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3241, allocations: 0 / 0.9549 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.3242, allocations: 43.95 kB / 0.955 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.3246, allocations: 4 kB / 0.955 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004088/0.325, allocations: 203.2 kB / 0.9552 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.3253, allocations: 0.6922 MB / 0.9559 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/0.3253, allocations: 7.438 kB / 0.9559 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of SimCode: time 2.41e-07/0.3253, allocations: 0 / 0.9559 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of Templates: time 0.002905/0.3282, allocations: 0.9328 MB / 0.9568 GB, free: 1.645 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches