Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_10_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.009428/0.009428, allocations: 97.52 kB / 15.73 MB, free: 6.07 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.002247/0.002248, allocations: 195.5 kB / 16.67 MB, free: 5.977 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.585/2.585, allocations: 437.1 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001365, allocations: 63.91 kB / 1.018 GB, free: 9.875 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7694/0.7708, allocations: 151.6 MB / 1.166 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003806/0.7746, allocations: 1.784 MB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001829/0.7765, allocations: 0.6592 MB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.7766, allocations: 0 / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 6.935e-05/0.7767, allocations: 15.86 kB / 1.169 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.7769, allocations: 15.81 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008864/0.7778, allocations: 163.5 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002813/0.7781, allocations: 127.7 kB / 1.169 GB, free: 1 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.7783, allocations: 41.09 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.7785, allocations: 67.77 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.7787, allocations: 47.77 kB / 1.169 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.374e-05/0.7787, allocations: 12 kB / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.7789, allocations: 51.95 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.243e-05/0.779, allocations: 23.92 kB / 1.169 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.612e-05/0.7791, allocations: 59.64 kB / 1.169 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000376/0.7794, allocations: 147.2 kB / 1.169 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.7795, allocations: 0 / 1.169 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7795, allocations: 0 / 1.169 GB, free: 0.5625 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.481e-05/0.7795, allocations: 0 / 1.169 GB, free: 0.5625 MB / 0.8887 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.0008879/0.7804, allocations: 446.7 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.7805, allocations: 12.91 kB / 1.17 GB, free: 68 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.058e-05/0.7805, allocations: 38.75 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/0.7818, allocations: 116.7 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.7821, allocations: 192.1 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.7822, allocations: 63.97 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.7823, allocations: 8.375 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008104/0.7831, allocations: 173.4 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.7831, allocations: 0 / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.7832, allocations: 0 / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.7832, allocations: 8 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009847/0.7842, allocations: 159.7 kB / 1.17 GB, free: 15.26 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.786, allocations: 485.6 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.7876, allocations: 218.3 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004718/0.788, allocations: 84.89 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.7881, allocations: 4 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.7881, allocations: 34.56 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 2.274e-06/0.7882, allocations: 3.938 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.001618/0.7898, allocations: 265.3 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.7899, allocations: 55.34 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.7901, allocations: 140.3 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.7901, allocations: 25.7 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.7902, allocations: 116.2 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.502e-05/0.7903, allocations: 19.8 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.298e-05/0.7904, allocations: 25.7 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001839/0.7906, allocations: 322.8 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/0.7911, allocations: 75.92 kB / 1.172 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.7916, allocations: 94.48 kB / 1.172 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009075/0.7925, allocations: 158.4 kB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.7925, allocations: 0 / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0009939/0.7935, allocations: 213.4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.7936, allocations: 4 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.7936, allocations: 3.938 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.7936, allocations: 0 / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.794, allocations: 39.89 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.794, allocations: 4.062 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.7943, allocations: 27.95 kB / 1.173 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.7943, allocations: 4 kB / 1.173 GB, free: 12.73 MB / 0.9044 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.0001467/0.7945, allocations: 113.8 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.088e-05/0.7945, allocations: 7.953 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001084/0.7956, allocations: 218 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.7957, allocations: 0 / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.7957, allocations: 8.297 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.7957, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003967/0.7961, allocations: 222.5 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.7961, allocations: 4 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/0.7964, allocations: 39.95 kB / 1.173 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.7965, allocations: 0 / 1.173 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.7965, allocations: 11.92 kB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.7965, allocations: 0 / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.7965, allocations: 0 / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.7976, allocations: 283.3 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.101e-05/0.7977, allocations: 81.06 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.917e-05/0.7977, allocations: 7.938 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.7982, allocations: 31.95 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.633e-05/0.7983, allocations: 11.97 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.406e-05/0.7983, allocations: 11.92 kB / 1.174 GB, free: 11.6 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.00012/0.7985, allocations: 103.3 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7985, allocations: 0 / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004767/0.799, allocations: 23.95 kB / 1.174 GB, free: 11.48 MB / 0.9044 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.001527/0.8005, allocations: 0.8177 MB / 1.175 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009653/0.8015, allocations: 171.8 kB / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.8015, allocations: 0 / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0004267/0.8019, allocations: 79.91 kB / 1.175 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005497/0.8025, allocations: 11.94 kB / 1.175 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004649/0.8072, allocations: 1.836 MB / 1.177 GB, free: 8.441 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.8076, allocations: 0.7059 MB / 1.177 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001474/0.8077, allocations: 8 kB / 1.177 GB, free: 7.703 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.8079, allocations: 39.41 kB / 1.177 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of SimCode: time 1.022e-06/0.8079, allocations: 0 / 1.177 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.8348, allocations: 2.745 MB / 1.18 GB, free: 5.012 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.707, allocations: 14.59 kB / 1.18 GB, free: 5.004 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches