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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothBlocks",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.001878/0.001878, allocations: 108.6 kB / 15.73 MB, free: 72 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.001992/0.001992, allocations: 187.1 kB / 16.66 MB, free: 6.602 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.981/2.981, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 71.88 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2916, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002825/0.2945, allocations: 1.776 MB / 1.243 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001077/0.2956, allocations: 0.6623 MB / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.8e-05/0.2956, allocations: 0 / 1.244 GB, free: 7.738 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.215e-05/0.2957, allocations: 7.875 kB / 1.244 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.2957, allocations: 19.8 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.2963, allocations: 167.4 kB / 1.244 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.2965, allocations: 131.5 kB / 1.244 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.2966, allocations: 49.09 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.2967, allocations: 55.83 kB / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.224e-05/0.2968, allocations: 51.75 kB / 1.244 GB, free: 7.266 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.2969, allocations: 12 kB / 1.244 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.297, allocations: 43.97 kB / 1.244 GB, free: 7.211 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.791e-05/0.297, allocations: 23.92 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.48e-05/0.2971, allocations: 63.64 kB / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.2973, allocations: 143.5 kB / 1.245 GB, free: 6.984 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2973, allocations: 0 / 1.245 GB, free: 6.984 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2973, allocations: 3.938 kB / 1.245 GB, free: 6.98 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.2974, allocations: 0 / 1.245 GB, free: 6.98 MB / 0.9981 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.0006251/0.298, allocations: 446.8 kB / 1.245 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.298, allocations: 8.031 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.2981, allocations: 38.75 kB / 1.245 GB, free: 6.441 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008692/0.2989, allocations: 116.7 kB / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.2991, allocations: 192.1 kB / 1.245 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.341e-05/0.2992, allocations: 55.97 kB / 1.245 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.2992, allocations: 12.38 kB / 1.245 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.2998, allocations: 174.8 kB / 1.246 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.036e-06/0.2998, allocations: 0 / 1.246 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.2998, allocations: 4 kB / 1.246 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2999, allocations: 4 kB / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006855/0.3005, allocations: 159.8 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.3017, allocations: 481.9 kB / 1.246 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.3028, allocations: 218.3 kB / 1.246 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/0.3031, allocations: 92.89 kB / 1.246 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.3032, allocations: 0 / 1.246 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.3032, allocations: 38.5 kB / 1.247 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.3032, allocations: 0 / 1.247 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.001119/0.3043, allocations: 269.3 kB / 1.247 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.3044, allocations: 51.41 kB / 1.247 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.3045, allocations: 135.4 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.3045, allocations: 25.7 kB / 1.247 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.305e-05/0.3046, allocations: 120.2 kB / 1.247 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.3047, allocations: 27.77 kB / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.3047, allocations: 21.72 kB / 1.247 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3049, allocations: 322.8 kB / 1.247 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003448/0.3052, allocations: 67.92 kB / 1.248 GB, free: 3.73 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.3056, allocations: 102.4 kB / 1.248 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006578/0.3062, allocations: 158.4 kB / 1.248 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3062, allocations: 3.938 kB / 1.248 GB, free: 3.453 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007426/0.307, allocations: 205.4 kB / 1.248 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.307, allocations: 8.062 kB / 1.248 GB, free: 3.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.307, allocations: 3.938 kB / 1.248 GB, free: 3.234 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3071, allocations: 4 kB / 1.248 GB, free: 3.23 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.3073, allocations: 43.88 kB / 1.248 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3074, allocations: 0 / 1.248 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.3076, allocations: 23.97 kB / 1.248 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.3076, allocations: 0 / 1.248 GB, free: 3.164 MB / 0.9981 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.0001073/0.3077, allocations: 122.4 kB / 1.248 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.198e-05/0.3077, allocations: 11.95 kB / 1.248 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000799/0.3085, allocations: 214 kB / 1.248 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3086, allocations: 0 / 1.248 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3086, allocations: 0 / 1.248 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3086, allocations: 0 / 1.248 GB, free: 2.805 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.3088, allocations: 234.3 kB / 1.249 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3089, allocations: 384 / 1.249 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.3091, allocations: 35.94 kB / 1.249 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.3091, allocations: 0 / 1.249 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.3091, allocations: 11.94 kB / 1.249 GB, free: 2.477 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3091, allocations: 0 / 1.249 GB, free: 2.477 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3092, allocations: 4 kB / 1.249 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007636/0.3099, allocations: 283.3 kB / 1.249 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.31, allocations: 85.06 kB / 1.249 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.31, allocations: 7.938 kB / 1.249 GB, free: 2.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003212/0.3103, allocations: 27.95 kB / 1.249 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.3104, allocations: 11.92 kB / 1.249 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3104, allocations: 7.984 kB / 1.249 GB, free: 2.023 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.741e-05/0.3105, allocations: 105.3 kB / 1.249 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3105, allocations: 0 / 1.249 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002633/0.3108, allocations: 23.95 kB / 1.249 GB, free: 1.898 MB / 0.9981 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.001075/0.3119, allocations: 0.8177 MB / 1.25 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007266/0.3126, allocations: 167.8 kB / 1.25 GB, free: 0.8906 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3126, allocations: 0 / 1.25 GB, free: 0.8906 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.3129, allocations: 87.97 kB / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.3133, allocations: 8.156 kB / 1.25 GB, free: 0.7969 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5095/0.8228, allocations: 1.821 MB / 1.252 GB, free: 14.06 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.8229, allocations: 0.6995 MB / 1.253 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000106/0.823, allocations: 16.44 kB / 1.253 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.8231, allocations: 31.25 kB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of SimCode: time 7.32e-07/0.8231, allocations: 1.75 kB / 1.253 GB, free: 13.36 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.8462, allocations: 2.76 MB / 1.255 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.739/8.586, allocations: 3.281 kB / 1.255 GB, free: 13.03 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_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_SmoothBlocks.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv","/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