Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001551/0.001551, allocations: 108.8 kB / 15.99 MB, free: 6.367 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.001691/0.001691, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.423/1.423, 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 12.0.0-master/package.mo): time 2.786/2.786, allocations: 482.4 MB / 0.755 GB, free: 7.152 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001939, allocations: 65.38 kB / 0.924 GB, free: 344 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.804/0.806, allocations: 162.2 MB / 1.082 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003622/0.8097, allocations: 1.821 MB / 1.084 GB, free: 352 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.8107, allocations: 0.6622 MB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.302e-05/0.8108, allocations: 0.9375 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.459e-05/0.8109, allocations: 6.75 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.273e-05/0.8109, allocations: 14.97 kB / 1.085 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.8115, allocations: 165.8 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001753/0.8117, allocations: 116.7 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.8118, allocations: 49.48 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.812, allocations: 58.61 kB / 1.085 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.708e-05/0.8121, allocations: 49.64 kB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.659e-05/0.8121, allocations: 11.19 kB / 1.085 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.8122, allocations: 48.12 kB / 1.085 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.916e-05/0.8123, allocations: 33.38 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.418e-05/0.8124, allocations: 56.12 kB / 1.085 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.8125, allocations: 98.41 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.8125, allocations: 1.188 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.437e-06/0.8126, allocations: 0 / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.75e-06/0.8126, allocations: 3.938 kB / 1.086 GB, free: 15.55 MB / 0.8419 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.0006605/0.8132, allocations: 438.1 kB / 1.086 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.8133, allocations: 13.34 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008607/0.8141, allocations: 109.1 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.8143, allocations: 179.6 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.8144, allocations: 65.36 kB / 1.086 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.8145, allocations: 5.344 kB / 1.086 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/0.815, allocations: 174.9 kB / 1.086 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.815, allocations: 3.938 kB / 1.086 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.815, allocations: 1.031 kB / 1.086 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.8151, allocations: 1.719 kB / 1.086 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006284/0.8157, allocations: 159.8 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.8169, allocations: 493.2 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.8179, allocations: 219.7 kB / 1.087 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002934/0.8182, allocations: 84.02 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.8183, allocations: 1.719 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.8183, allocations: 36.48 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 3.406e-06/0.8183, allocations: 3.984 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.001039/0.8194, allocations: 266 kB / 1.088 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.8194, allocations: 53.16 kB / 1.088 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.8196, allocations: 136.8 kB / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.372e-05/0.8196, allocations: 31.23 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.738e-05/0.8197, allocations: 108.8 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.8197, allocations: 20.67 kB / 1.088 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.458e-05/0.8198, allocations: 23.7 kB / 1.088 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.82, allocations: 324.9 kB / 1.088 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.8203, allocations: 73.09 kB / 1.088 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003167/0.8206, allocations: 96.47 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/0.8212, allocations: 165.1 kB / 1.089 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.8212, allocations: 0 / 1.089 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006806/0.8219, allocations: 206.9 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.8219, allocations: 8.281 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.8219, allocations: 0 / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.8219, allocations: 5.594 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.8222, allocations: 39.47 kB / 1.089 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.8222, allocations: 5.156 kB / 1.089 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.8225, allocations: 30.31 kB / 1.089 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.8225, allocations: 8.641 kB / 1.089 GB, free: 13.28 MB / 0.8419 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.0001268/0.8226, allocations: 116.1 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.518e-05/0.8227, allocations: 6.969 kB / 1.089 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007098/0.8234, allocations: 207.9 kB / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.8234, allocations: 2.547 kB / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.8234, allocations: 0 / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.8234, allocations: 0 / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003396/0.8238, allocations: 229.5 kB / 1.089 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.8238, allocations: 7.938 kB / 1.089 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.824, allocations: 36.88 kB / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.824, allocations: 0 / 1.09 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.824, allocations: 10.44 kB / 1.09 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.8241, allocations: 0.9062 kB / 1.09 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.8241, allocations: 0 / 1.09 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/0.8248, allocations: 282.4 kB / 1.09 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.466e-05/0.8248, allocations: 84.64 kB / 1.09 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.8249, allocations: 5.188 kB / 1.09 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/0.8252, allocations: 33.31 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.8252, allocations: 9.047 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.8253, allocations: 6.844 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.372e-05/0.8254, allocations: 106.1 kB / 1.09 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8254, allocations: 3.938 kB / 1.09 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002684/0.8256, allocations: 31.28 kB / 1.09 GB, free: 12.47 MB / 0.8419 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.000139/0.8258, allocations: 96.78 kB / 1.09 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006685/0.8265, allocations: 168.5 kB / 1.09 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.8265, allocations: 1.344 kB / 1.09 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.8268, allocations: 80.23 kB / 1.09 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.8271, allocations: 15.86 kB / 1.09 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007484/0.8278, allocations: 312.7 kB / 1.091 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.8282, allocations: 0.6983 MB / 1.091 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.071e-05/0.8283, allocations: 16.16 kB / 1.091 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.8283, allocations: 0 / 1.091 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of Templates: time 0.003866/0.8322, allocations: 1.606 MB / 1.093 GB, free: 11.26 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches