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 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: "" <> 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.007096/0.007096, allocations: 100.4 kB / 15.73 MB, free: 6.016 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.001775/0.001775, allocations: 187.6 kB / 16.67 MB, free: 5.934 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.763/2.763, allocations: 482.4 MB / 0.7548 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 67.95 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2961, allocations: 162.2 MB / 1.241 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002471/0.2986, allocations: 1.476 MB / 1.243 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000911/0.2995, allocations: 0.5586 MB / 1.243 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.177e-05/0.2995, allocations: 0 / 1.243 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.2996, allocations: 0 / 1.243 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.231e-05/0.2996, allocations: 3.938 kB / 1.243 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.2999, allocations: 51.81 kB / 1.243 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.936e-05/0.3, allocations: 35.8 kB / 1.244 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.751e-05/0.3001, allocations: 8 kB / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.493e-05/0.3001, allocations: 15.98 kB / 1.244 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.906e-05/0.3002, allocations: 7.938 kB / 1.244 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.3002, allocations: 4 kB / 1.244 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.3003, allocations: 55.94 kB / 1.244 GB, free: 7.027 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.422e-05/0.3004, allocations: 3.938 kB / 1.244 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.67e-05/0.3004, allocations: 15.92 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.3005, allocations: 64.08 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3006, allocations: 0 / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3006, allocations: 4 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.3006, allocations: 0 / 1.244 GB, free: 6.941 MB / 0.9669 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.0004256/0.301, allocations: 353 kB / 1.244 GB, free: 6.551 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.301, allocations: 8.031 kB / 1.244 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.3011, allocations: 34.73 kB / 1.244 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.357e-05/0.3011, allocations: 4.938 kB / 1.244 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3013, allocations: 176.2 kB / 1.244 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.3013, allocations: 384 / 1.244 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-06/0.3013, allocations: 4.375 kB / 1.244 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.3014, allocations: 49.81 kB / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.3014, allocations: 0 / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.3015, allocations: 0 / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3015, allocations: 0 / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.232e-05/0.3016, allocations: 23.97 kB / 1.244 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003142/0.3019, allocations: 252.8 kB / 1.245 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.119e-05/0.302, allocations: 42.5 kB / 1.245 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.992e-05/0.302, allocations: 12.92 kB / 1.245 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000844/0.3029, allocations: 477.3 kB / 1.245 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.3029, allocations: 34.56 kB / 1.245 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3029, allocations: 0 / 1.245 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0002454/0.3032, allocations: 73.56 kB / 1.245 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.3032, allocations: 51.41 kB / 1.245 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.823e-05/0.3033, allocations: 105.8 kB / 1.245 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.3034, allocations: 29.7 kB / 1.245 GB, free: 4.949 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.726e-05/0.3034, allocations: 84.14 kB / 1.245 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.61e-05/0.3034, allocations: 12.06 kB / 1.245 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.755e-05/0.3035, allocations: 17.72 kB / 1.245 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3036, allocations: 314.8 kB / 1.246 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.977e-05/0.3037, allocations: 15.98 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.438e-05/0.3037, allocations: 4 kB / 1.246 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.177e-05/0.3038, allocations: 24.84 kB / 1.246 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3038, allocations: 64 / 1.246 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001237/0.3039, allocations: 57.62 kB / 1.246 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.304, allocations: 11.98 kB / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.304, allocations: 0 / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.304, allocations: 0 / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.712e-05/0.304, allocations: 8 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.3041, allocations: 0 / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.394e-05/0.3041, allocations: 8 kB / 1.246 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-06/0.3041, allocations: 0 / 1.246 GB, free: 4.375 MB / 0.9669 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 8.27e-05/0.3042, allocations: 118.3 kB / 1.246 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.693e-05/0.3042, allocations: 7.953 kB / 1.246 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.3044, allocations: 65.19 kB / 1.246 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3044, allocations: 3.938 kB / 1.246 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.3044, allocations: 0 / 1.246 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.3044, allocations: 0 / 1.246 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.3046, allocations: 161.6 kB / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3046, allocations: 0 / 1.246 GB, free: 3.957 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.357e-05/0.3047, allocations: 8.016 kB / 1.246 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.3047, allocations: 4 kB / 1.246 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-06/0.3047, allocations: 3.938 kB / 1.246 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3047, allocations: 0 / 1.246 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3047, allocations: 4 kB / 1.246 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.3049, allocations: 151.5 kB / 1.246 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.3049, allocations: 85 kB / 1.246 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.177e-05/0.3049, allocations: 4.031 kB / 1.246 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.018e-05/0.305, allocations: 4 kB / 1.246 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.098e-05/0.305, allocations: 0 / 1.246 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.3051, allocations: 3.984 kB / 1.246 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.091e-05/0.3051, allocations: 91.22 kB / 1.247 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3051, allocations: 3.938 kB / 1.247 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002378/0.3054, allocations: 12 kB / 1.247 GB, free: 3.555 MB / 0.9669 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.0005282/0.3059, allocations: 0.7045 MB / 1.247 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001232/0.306, allocations: 19.98 kB / 1.247 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.306, allocations: 0 / 1.247 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.607e-05/0.3061, allocations: 15.94 kB / 1.247 GB, free: 2.789 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/0.3063, allocations: 7.984 kB / 1.247 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.3067, allocations: 160.3 kB / 1.247 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.307, allocations: 0.6807 MB / 1.248 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.119e-05/0.3071, allocations: 0 / 1.248 GB, free: 1.875 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.348e-05/0.3071, allocations: 15.42 kB / 1.248 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of SimCode: time 3.61e-07/0.3071, allocations: 0 / 1.248 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.3287, allocations: 1.609 MB / 1.25 GB, free: 340 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/8.017, allocations: 9.172 kB / 1.25 GB, free: 332 kB / 0.9669 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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