Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.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.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009871/0.009871, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.002033/0.002033, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.18 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.254/2.254, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 63.89 kB / 0.9508 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113/1.114, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003257/1.118, allocations: 1.767 MB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001197/1.119, allocations: 0.6651 MB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.346e-05/1.119, allocations: 4.906 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.164e-05/1.119, allocations: 9.938 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.357e-05/1.119, allocations: 23.75 kB / 1.09 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005912/1.12, allocations: 167.5 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000198/1.12, allocations: 119 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/1.12, allocations: 57.17 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/1.12, allocations: 53.14 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/1.12, allocations: 58.5 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.141e-05/1.12, allocations: 14.62 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/1.121, allocations: 44.8 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.292e-05/1.121, allocations: 32.02 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.939e-05/1.121, allocations: 57.08 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002653/1.121, allocations: 150.3 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/1.121, allocations: 0.6562 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.054e-06/1.121, allocations: 0.75 kB / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.422e-05/1.121, allocations: 0 / 1.091 GB, free: 3.434 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006034/1.122, allocations: 440 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/1.122, allocations: 8.875 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008238/1.123, allocations: 109.1 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/1.123, allocations: 180.9 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.016e-05/1.123, allocations: 68.45 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/1.123, allocations: 13.61 kB / 1.092 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005119/1.123, allocations: 170.2 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/1.123, allocations: 1.094 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/1.123, allocations: 0.75 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.123, allocations: 1.812 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005938/1.124, allocations: 160 kB / 1.092 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/1.125, allocations: 479.4 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/1.126, allocations: 223.4 kB / 1.093 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/1.127, allocations: 80.02 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/1.127, allocations: 2.172 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/1.127, allocations: 36.52 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/1.127, allocations: 0.6875 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001071/1.128, allocations: 262.4 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/1.128, allocations: 55.91 kB / 1.093 GB, free: 2 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/1.128, allocations: 141.4 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/1.128, allocations: 30.64 kB / 1.093 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.372e-05/1.128, allocations: 110.1 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/1.128, allocations: 15.69 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.354e-05/1.128, allocations: 24.3 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.663e-05/1.128, allocations: 320.4 kB / 1.094 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003215/1.129, allocations: 81.12 kB / 1.094 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/1.129, allocations: 92.95 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005937/1.13, allocations: 164.3 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.13, allocations: 0.7812 kB / 1.094 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006884/1.13, allocations: 201.9 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/1.13, allocations: 5.625 kB / 1.094 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/1.13, allocations: 6.141 kB / 1.094 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.747e-05/1.13, allocations: 5 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002945/1.131, allocations: 35.14 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/1.131, allocations: 1.469 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/1.131, allocations: 37.39 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/1.131, allocations: 3.859 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (8): * Single equations (assignments): 8 * 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.0001003/1.131, allocations: 115.4 kB / 1.095 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/1.131, allocations: 8.672 kB / 1.095 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007881/1.132, allocations: 210.7 kB / 1.095 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/1.132, allocations: 1.641 kB / 1.095 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/1.132, allocations: 1.188 kB / 1.095 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/1.132, allocations: 0.6094 kB / 1.095 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/1.132, allocations: 232.6 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/1.132, allocations: 0.7969 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002395/1.132, allocations: 35.39 kB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/1.132, allocations: 4.719 kB / 1.095 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/1.132, allocations: 6.688 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/1.132, allocations: 0.7969 kB / 1.095 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.132, allocations: 4.531 kB / 1.095 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007361/1.133, allocations: 286.1 kB / 1.095 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.98e-05/1.133, allocations: 84.53 kB / 1.095 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/1.133, allocations: 5.891 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/1.134, allocations: 31.67 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/1.134, allocations: 5.141 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-05/1.134, allocations: 6.969 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.428e-05/1.134, allocations: 110.6 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.134, allocations: 0 / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002639/1.134, allocations: 31.47 kB / 1.096 GB, free: 372 kB / 0.8575 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 (6): * Single equations (assignments): 6 * 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.0001323/1.134, allocations: 97.42 kB / 1.096 GB, free: 284 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006918/1.135, allocations: 172.3 kB / 1.096 GB, free: 240 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/1.135, allocations: 0.7812 kB / 1.096 GB, free: 240 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003151/1.135, allocations: 80.91 kB / 1.096 GB, free: 224 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/1.136, allocations: 11.03 kB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006782/1.136, allocations: 268.3 kB / 1.096 GB, free: 28 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/1.137, allocations: 0.6987 MB / 1.097 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.348e-05/1.137, allocations: 15.81 kB / 1.097 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.357e-05/1.137, allocations: 13.22 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.137, allocations: 0.6875 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of Templates: time 0.004717/1.141, allocations: 1.481 MB / 1.098 GB, free: 15.2 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches