Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 114.5 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002147/0.002147, allocations: 217 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.961/2.961, allocations: 476.7 MB / 0.7706 GB, free: 4.305 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 62.3 kB / 1.118 GB, free: 40.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3067, allocations: 170 MB / 1.284 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003067/0.3098, allocations: 1.825 MB / 1.286 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.311, allocations: 0.7303 MB / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/0.3111, allocations: 0 / 1.286 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.983e-05/0.3112, allocations: 15.8 kB / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.944e-05/0.3112, allocations: 19.8 kB / 1.286 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006307/0.3119, allocations: 182.3 kB / 1.287 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.3121, allocations: 131.6 kB / 1.287 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.3122, allocations: 45.48 kB / 1.287 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.3124, allocations: 63.83 kB / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.484e-05/0.3125, allocations: 51.7 kB / 1.287 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.3125, allocations: 8 kB / 1.287 GB, free: 8.172 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.3126, allocations: 59.95 kB / 1.287 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.452e-05/0.3127, allocations: 27.91 kB / 1.287 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.624e-05/0.3127, allocations: 63.66 kB / 1.287 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.313, allocations: 155.4 kB / 1.287 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.313, allocations: 0 / 1.287 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.593e-06/0.313, allocations: 0 / 1.287 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.161e-06/0.313, allocations: 0 / 1.287 GB, free: 7.871 MB / 0.9825 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.0006139/0.3136, allocations: 365.6 kB / 1.287 GB, free: 7.484 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.3136, allocations: 12.03 kB / 1.287 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009931/0.3146, allocations: 136.6 kB / 1.288 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.3149, allocations: 153.1 kB / 1.288 GB, free: 7.168 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.315, allocations: 115.4 kB / 1.288 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.793e-05/0.315, allocations: 11.94 kB / 1.288 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.3156, allocations: 181.4 kB / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3156, allocations: 0 / 1.288 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.3156, allocations: 4 kB / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3156, allocations: 0 / 1.288 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006188/0.3162, allocations: 159.8 kB / 1.288 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.3174, allocations: 464.8 kB / 1.289 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.3184, allocations: 210.3 kB / 1.289 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.3187, allocations: 80.91 kB / 1.289 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.3187, allocations: 4 kB / 1.289 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.3187, allocations: 42.44 kB / 1.289 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.3187, allocations: 0 / 1.289 GB, free: 5.824 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.001018/0.3198, allocations: 265.4 kB / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.3198, allocations: 51.41 kB / 1.289 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.3199, allocations: 138.4 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.32, allocations: 29.7 kB / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.535e-05/0.32, allocations: 116.2 kB / 1.29 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.3201, allocations: 19.86 kB / 1.29 GB, free: 5.176 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.862e-05/0.3201, allocations: 21.7 kB / 1.29 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3203, allocations: 322.8 kB / 1.29 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.3206, allocations: 71.92 kB / 1.29 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003169/0.3209, allocations: 102.4 kB / 1.29 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005895/0.3215, allocations: 162.4 kB / 1.29 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3215, allocations: 0 / 1.29 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006719/0.3222, allocations: 205.4 kB / 1.29 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.3222, allocations: 6.188 kB / 1.29 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-06/0.3222, allocations: 4 kB / 1.29 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3222, allocations: 0 / 1.29 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.3225, allocations: 43.83 kB / 1.29 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3225, allocations: 0 / 1.29 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.3227, allocations: 31.89 kB / 1.29 GB, free: 4.188 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.3227, allocations: 4 kB / 1.29 GB, free: 4.184 MB / 0.9825 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.0001048/0.3228, allocations: 117.8 kB / 1.291 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.811e-05/0.3228, allocations: 15.84 kB / 1.291 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007173/0.3236, allocations: 206.2 kB / 1.291 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.3236, allocations: 4 kB / 1.291 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3236, allocations: 0 / 1.291 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3236, allocations: 3.984 kB / 1.291 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.3238, allocations: 209.3 kB / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3238, allocations: 384 / 1.291 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.3241, allocations: 31.95 kB / 1.291 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.3241, allocations: 3.938 kB / 1.291 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.3241, allocations: 7.984 kB / 1.291 GB, free: 3.539 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3241, allocations: 8 kB / 1.291 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3241, allocations: 160 / 1.291 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007061/0.3248, allocations: 291.3 kB / 1.291 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.699e-05/0.3248, allocations: 7.906 kB / 1.291 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.3248, allocations: 7.938 kB / 1.291 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/0.3252, allocations: 27.95 kB / 1.291 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.215e-05/0.3252, allocations: 3.984 kB / 1.291 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.3252, allocations: 11.98 kB / 1.291 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.533e-05/0.3253, allocations: 106.5 kB / 1.292 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3253, allocations: 0 / 1.292 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002625/0.3256, allocations: 27.94 kB / 1.292 GB, free: 3.043 MB / 0.9825 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.0001206/0.3257, allocations: 95.25 kB / 1.292 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006591/0.3263, allocations: 163.8 kB / 1.292 GB, free: 2.781 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3263, allocations: 4.125 kB / 1.292 GB, free: 2.777 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.3266, allocations: 79.91 kB / 1.292 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.3269, allocations: 15.92 kB / 1.292 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000659/0.3276, allocations: 263.7 kB / 1.292 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.3279, allocations: 0.7002 MB / 1.293 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.408e-05/0.328, allocations: 19.92 kB / 1.293 GB, free: 1.652 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.283e-05/0.328, allocations: 15.42 kB / 1.293 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of SimCode: time 3.8e-07/0.328, allocations: 0 / 1.293 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of Templates: time 0.004373/0.3324, allocations: 1.523 MB / 1.294 GB, free: 128 kB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.878948263823986]