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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001976/0.001976, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001845/0.001845, allocations: 192.8 kB / 16.25 MB, free: 6.152 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.68/1.68, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.922/2.922, allocations: 461.9 MB / 0.7343 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.7 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2952, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002501/0.2978, allocations: 1.522 MB / 1.054 GB, free: 7.121 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008378/0.2986, allocations: 0.5653 MB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.35e-05/0.2987, allocations: 0 / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.685e-05/0.2987, allocations: 3.938 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.727e-05/0.2988, allocations: 3.938 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.2991, allocations: 51.89 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.32e-05/0.2991, allocations: 27.92 kB / 1.055 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.384e-05/0.2992, allocations: 4 kB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.2993, allocations: 19.91 kB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.671e-05/0.2994, allocations: 11.94 kB / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.2994, allocations: 4 kB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.2995, allocations: 47.95 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.718e-06/0.2995, allocations: 0 / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.2995, allocations: 23.91 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.2997, allocations: 67.86 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2997, allocations: 0 / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2997, allocations: 0 / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.2997, allocations: 0 / 1.055 GB, free: 6.289 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.0003893/0.3001, allocations: 343.6 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3002, allocations: 16.61 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.111e-05/0.3002, allocations: 42.62 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.702e-05/0.3002, allocations: 4.844 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.3003, allocations: 168.3 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-06/0.3003, allocations: 4.375 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.3004, allocations: 4.375 kB / 1.055 GB, free: 5.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.3005, allocations: 45.81 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3005, allocations: 3.984 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.3005, allocations: 0 / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3005, allocations: 0 / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.683e-05/0.3006, allocations: 23.97 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003/0.3009, allocations: 256.9 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.519e-05/0.301, allocations: 30.56 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.614e-05/0.3011, allocations: 12.92 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008204/0.3019, allocations: 481.4 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.3019, allocations: 30.56 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/0.302, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002829/0.3022, allocations: 69.52 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.3023, allocations: 51.41 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.3024, allocations: 114 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.3024, allocations: 29.7 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.112e-05/0.3025, allocations: 84.14 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.3025, allocations: 11.89 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.951e-05/0.3026, allocations: 13.72 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.3027, allocations: 318.8 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.911e-05/0.3028, allocations: 11.98 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.671e-05/0.3028, allocations: 8 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.833e-05/0.3029, allocations: 32.91 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3029, allocations: 0 / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001459/0.3031, allocations: 53.62 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.999e-05/0.3031, allocations: 13.55 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.3031, allocations: 0 / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.3032, allocations: 0 / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.508e-05/0.3033, allocations: 4 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.3033, allocations: 0 / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.661e-05/0.3033, allocations: 4.031 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.3033, allocations: 4 kB / 1.057 GB, free: 3.723 MB / 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 0.000125/0.3035, allocations: 117.7 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.945e-05/0.3035, allocations: 7.906 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002223/0.3037, allocations: 65.14 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3038, allocations: 4 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.3038, allocations: 3.938 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3038, allocations: 4.031 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002264/0.304, allocations: 165.6 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.304, allocations: 0 / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.089e-05/0.3041, allocations: 11.98 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3041, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.3041, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3041, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3041, allocations: 0 / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.3043, allocations: 155.5 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.863e-05/0.3044, allocations: 81.02 kB / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.3044, allocations: 0 / 1.057 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.862e-05/0.3045, allocations: 4 kB / 1.057 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.3045, allocations: 7.938 kB / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.3045, allocations: 3.984 kB / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.306e-05/0.3046, allocations: 83.28 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3046, allocations: 0 / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000267/0.3049, allocations: 20 kB / 1.058 GB, free: 2.902 MB / 0.8106 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.0006176/0.3055, allocations: 0.7007 MB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001626/0.3057, allocations: 23.92 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3057, allocations: 4.094 kB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.84e-05/0.3057, allocations: 11.98 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.306, allocations: 9.969 kB / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005307/0.3065, allocations: 160.1 kB / 1.058 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.3068, allocations: 0.6768 MB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.67e-05/0.3069, allocations: 8.062 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.501e-05/0.3069, allocations: 15.42 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.3069, allocations: 0 / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01344/0.3204, allocations: 1.477 MB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.3207, allocations: 209.7 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.02/3.341, allocations: 4 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothLimit.fmu > 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