Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001105/0.001105, 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.001547/0.001547, allocations: 192.5 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.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.587/2.587, allocations: 437 MB / 0.7099 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 63.89 kB / 0.8685 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7744/0.7757, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003099/0.7788, allocations: 1.828 MB / 1.018 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.78, allocations: 0.6747 MB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.997e-05/0.7801, allocations: 0 / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.045e-05/0.7801, allocations: 7.922 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.099e-05/0.7802, allocations: 15.86 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.7807, allocations: 153.9 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001529/0.7809, allocations: 119.7 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.781, allocations: 45.02 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.7812, allocations: 47.84 kB / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.757e-05/0.7813, allocations: 51.75 kB / 1.019 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.824e-05/0.7813, allocations: 8 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.7814, allocations: 39.97 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.053e-05/0.7815, allocations: 31.89 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.894e-05/0.7815, allocations: 47.67 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.7818, allocations: 141.6 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.7818, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7818, allocations: 4 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.7818, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 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.0006654/0.7825, allocations: 435.1 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.7825, allocations: 8.031 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008712/0.7834, allocations: 116.6 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.7835, allocations: 186 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.7837, allocations: 63.95 kB / 1.02 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.121e-05/0.7837, allocations: 8.375 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005062/0.7842, allocations: 179 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.7842, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.7843, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.7843, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005805/0.7849, allocations: 159.8 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.7859, allocations: 485.8 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009625/0.7869, allocations: 214.3 kB / 1.021 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.7872, allocations: 80.91 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.954e-05/0.7873, allocations: 11.97 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.7873, allocations: 34.56 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.303e-06/0.7873, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0009602/0.7883, allocations: 265.4 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.7883, allocations: 59.39 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.7884, allocations: 139.7 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.7885, allocations: 29.7 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.7885, allocations: 112.1 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.406e-05/0.7886, allocations: 15.81 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.7886, allocations: 25.7 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.7887, allocations: 318.8 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.789, allocations: 71.92 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.7893, allocations: 98.48 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005687/0.7899, allocations: 162.4 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.7899, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006472/0.7906, allocations: 205.4 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.7906, allocations: 8 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.7906, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.7906, allocations: 3.938 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.7909, allocations: 35.95 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.7909, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.7911, allocations: 31.8 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.589e-05/0.7912, allocations: 4 kB / 1.023 GB, free: 11.78 MB / 0.7794 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.0001027/0.7913, allocations: 125.8 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.29e-05/0.7913, allocations: 7.906 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006868/0.792, allocations: 206.2 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.792, allocations: 4 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.792, allocations: 3.938 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.792, allocations: 0 / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.7923, allocations: 241.9 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.7923, allocations: 3.984 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.7925, allocations: 32.33 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.7925, allocations: 0 / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.7926, allocations: 19.92 kB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.7926, allocations: 3.938 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.7926, allocations: 0 / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006612/0.7932, allocations: 283.3 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.7933, allocations: 85.02 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.7933, allocations: 3.938 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.7936, allocations: 27.95 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/0.7937, allocations: 11.98 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.7937, allocations: 4 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.682e-05/0.7938, allocations: 107.2 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7938, allocations: 0 / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002664/0.7941, allocations: 31.84 kB / 1.024 GB, free: 10.5 MB / 0.7794 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.0001307/0.7942, allocations: 103.2 kB / 1.024 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006511/0.7949, allocations: 159.8 kB / 1.025 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7949, allocations: 8.062 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.7952, allocations: 87.84 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.7955, allocations: 8 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006946/0.7962, allocations: 289.2 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.7965, allocations: 0.702 MB / 1.026 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.649e-05/0.7966, allocations: 15.98 kB / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.661e-05/0.7967, allocations: 11.44 kB / 1.026 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.7967, allocations: 4 kB / 1.026 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of Templates: time 0.003631/0.8003, allocations: 1.379 MB / 1.027 GB, free: 7.703 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches