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.00509/0.00509, allocations: 104.7 kB / 15.73 MB, free: 5.965 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.001303/0.001303, allocations: 192.2 kB / 16.67 MB, free: 5.883 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 15.05 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.606/2.606, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 64.12 kB / 1.018 GB, free: 9.895 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7728/0.7747, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002943/0.7777, allocations: 1.776 MB / 1.168 GB, free: 1.977 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.7788, allocations: 0.6515 MB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.554e-05/0.7789, allocations: 4 kB / 1.169 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.394e-05/0.7789, allocations: 11.86 kB / 1.169 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.597e-05/0.779, allocations: 15.81 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005527/0.7796, allocations: 175.9 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.7798, allocations: 123.6 kB / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.7799, allocations: 49.09 kB / 1.169 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.78, allocations: 55.83 kB / 1.169 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.458e-05/0.7801, allocations: 47.77 kB / 1.169 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.7802, allocations: 12 kB / 1.169 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.7803, allocations: 51.97 kB / 1.169 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.889e-05/0.7803, allocations: 27.89 kB / 1.169 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.556e-05/0.7804, allocations: 59.72 kB / 1.169 GB, free: 0.6992 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.7807, allocations: 139.2 kB / 1.169 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.7807, allocations: 7.922 kB / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7807, allocations: 0 / 1.169 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.7807, allocations: 0 / 1.169 GB, free: 0.5586 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.0006273/0.7813, allocations: 438.8 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.7814, allocations: 8.922 kB / 1.17 GB, free: 76 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.075e-05/0.7814, allocations: 42.73 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008488/0.7823, allocations: 116.7 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.7825, allocations: 190.4 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.7826, allocations: 63.89 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.7826, allocations: 12.38 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.7831, allocations: 177.3 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.7832, allocations: 4 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.261e-05/0.7832, allocations: 4 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.7832, allocations: 4 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006456/0.7839, allocations: 159.7 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.785, allocations: 485.6 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.786, allocations: 218.3 kB / 1.171 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.7863, allocations: 80.91 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.7864, allocations: 7.969 kB / 1.171 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.7864, allocations: 38.5 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.7864, allocations: 4 kB / 1.171 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6): time 0.001067/0.7875, allocations: 257.5 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/0.7876, allocations: 55.39 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.7877, allocations: 137.8 kB / 1.172 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.164e-05/0.7877, allocations: 33.7 kB / 1.172 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.62e-05/0.7878, allocations: 104.3 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.83e-05/0.7878, allocations: 23.8 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.7879, allocations: 21.7 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.7881, allocations: 326.8 kB / 1.172 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.7884, allocations: 71.98 kB / 1.172 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003354/0.7887, allocations: 102.4 kB / 1.172 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.7894, allocations: 158.4 kB / 1.172 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.7894, allocations: 4 kB / 1.172 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007133/0.7901, allocations: 201.4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.7901, allocations: 4 kB / 1.173 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.7901, allocations: 3.938 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.7902, allocations: 4 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.7904, allocations: 39.95 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.7904, allocations: 4 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.7907, allocations: 27.95 kB / 1.173 GB, free: 12.74 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.7907, allocations: 3.938 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.000111/0.7908, allocations: 117.8 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.232e-05/0.7908, allocations: 7.953 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007553/0.7916, allocations: 218 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.7916, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.7916, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.7916, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003003/0.7919, allocations: 234.4 kB / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7919, allocations: 0 / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.7922, allocations: 31.95 kB / 1.173 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.7922, allocations: 4 kB / 1.173 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.7922, allocations: 7.922 kB / 1.173 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7922, allocations: 4.062 kB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.7922, allocations: 4 kB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000724/0.793, allocations: 283.3 kB / 1.174 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.514e-05/0.793, allocations: 81.06 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.7931, allocations: 11.94 kB / 1.174 GB, free: 11.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.7934, allocations: 31.95 kB / 1.174 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.7934, allocations: 11.92 kB / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.7934, allocations: 0 / 1.174 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.869e-05/0.7935, allocations: 109.5 kB / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7935, allocations: 0 / 1.174 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002677/0.7938, allocations: 27.95 kB / 1.174 GB, free: 11.47 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.001042/0.7949, allocations: 0.8177 MB / 1.175 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006878/0.7956, allocations: 163.8 kB / 1.175 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7956, allocations: 0 / 1.175 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003322/0.7959, allocations: 83.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.0003381/0.7963, allocations: 14.44 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.003276/0.7995, allocations: 1.829 MB / 1.177 GB, free: 8.449 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.8, allocations: 0.7041 MB / 1.177 GB, free: 7.719 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001011/0.8001, allocations: 15.98 kB / 1.177 GB, free: 7.703 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.843e-05/0.8002, allocations: 35.42 kB / 1.177 GB, free: 7.668 MB / 0.9044 GB Notification: Performance of SimCode: time 2.234e-06/0.8002, allocations: 0 / 1.177 GB, free: 7.668 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.8245, allocations: 2.747 MB / 1.18 GB, free: 5.012 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/8.896, allocations: 8.625 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