Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.399/1.399, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.741/2.741, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.000435, allocations: 10.06 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2958, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.001651/0.2975, allocations: 1.195 MB / 1.06 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009308/0.2985, allocations: 0.5571 MB / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.852e-05/0.2985, allocations: 0 / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.2985, allocations: 0 / 1.061 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.082e-05/0.2986, allocations: 3.938 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.2988, allocations: 51.83 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.932e-05/0.2989, allocations: 19.94 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.266e-05/0.299, allocations: 11.98 kB / 1.061 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.428e-05/0.2991, allocations: 7.938 kB / 1.061 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.186e-05/0.2991, allocations: 15.97 kB / 1.061 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.2991, allocations: 3.938 kB / 1.061 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.2993, allocations: 51.95 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.2993, allocations: 0 / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.77e-05/0.2993, allocations: 41.64 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.2994, allocations: 43.92 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2995, allocations: 0 / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2995, allocations: 0 / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.137e-06/0.2995, allocations: 0 / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003924/0.2999, allocations: 339.7 kB / 1.062 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2999, allocations: 19.91 kB / 1.062 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.3, allocations: 4.938 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.3001, allocations: 176.2 kB / 1.062 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.3001, allocations: 4.375 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.3001, allocations: 384 / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.3003, allocations: 53.98 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.3003, allocations: 0 / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.3003, allocations: 0 / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.3003, allocations: 0 / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.16e-05/0.3004, allocations: 23.98 kB / 1.062 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003052/0.3007, allocations: 260.8 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.523e-05/0.3008, allocations: 34.56 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.873e-05/0.3009, allocations: 16.92 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007953/0.3017, allocations: 0.4975 MB / 1.063 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.3017, allocations: 30.56 kB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.302e-06/0.3017, allocations: 0 / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002421/0.3019, allocations: 77.55 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.302, allocations: 59.53 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.357e-05/0.3021, allocations: 109.8 kB / 1.063 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.3021, allocations: 29.7 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.3022, allocations: 88.05 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.3022, allocations: 0 / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.3022, allocations: 13.72 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3023, allocations: 318.8 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.542e-05/0.3024, allocations: 8 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.622e-05/0.3024, allocations: 15.98 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.38e-05/0.3025, allocations: 32.78 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3025, allocations: 0 / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001354/0.3027, allocations: 69.59 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.3027, allocations: 4 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3027, allocations: 0 / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.3027, allocations: 0 / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.57e-05/0.3028, allocations: 4 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.3028, allocations: 7.984 kB / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.037e-05/0.3028, allocations: 0 / 1.063 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.3028, allocations: 8 kB / 1.063 GB, free: 368 kB / 0.8106 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 (2): * Single equations (assignments): 2 * 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 7.014e-05/0.3029, allocations: 113.8 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.3029, allocations: 4 kB / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.3031, allocations: 73.14 kB / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3031, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3031, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.3031, allocations: 0 / 1.064 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001657/0.3033, allocations: 161.6 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3033, allocations: 8 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.254e-05/0.3034, allocations: 8.031 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3034, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.391e-06/0.3034, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3034, allocations: 0 / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3034, allocations: 3.984 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.3036, allocations: 159.4 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.3036, allocations: 81.14 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.3036, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.183e-05/0.3037, allocations: 7.984 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.3037, allocations: 0 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.3038, allocations: 0 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.213e-05/0.3038, allocations: 95.2 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3038, allocations: 0 / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002299/0.304, allocations: 16 kB / 1.064 GB, free: 15.54 MB / 0.8262 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 (2): * Single equations (assignments): 2 * 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.0001647/0.3042, allocations: 119.2 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001286/0.3044, allocations: 27.98 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3044, allocations: 0 / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.719e-05/0.3044, allocations: 12 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.3046, allocations: 9.031 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.3049, allocations: 178.2 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.3052, allocations: 0.677 MB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.287e-05/0.3052, allocations: 11.44 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3052, allocations: 0 / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of Templates: time 0.002108/0.3073, allocations: 0.7982 MB / 1.066 GB, free: 13.64 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches