Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_11_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.007155/0.007155, allocations: 99.59 kB / 15.73 MB, free: 6.008 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.001889/0.001889, allocations: 198.3 kB / 16.68 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.681/2.681, allocations: 469.8 MB / 0.7425 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 71.83 kB / 1.065 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.657/0.6589, allocations: 159.1 MB / 1.22 GB, free: 1.984 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.00307/0.662, allocations: 1.766 MB / 1.222 GB, free: 216 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.6632, allocations: 0.6632 MB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.497e-05/0.6633, allocations: 0 / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.403e-05/0.6633, allocations: 11.86 kB / 1.223 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.135e-05/0.6634, allocations: 19.8 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.664, allocations: 167.6 kB / 1.223 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.6642, allocations: 131.7 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.6643, allocations: 41.11 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001295/0.6645, allocations: 63.77 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.248e-05/0.6646, allocations: 47.77 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.6646, allocations: 8 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.6647, allocations: 43.97 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.516e-05/0.6648, allocations: 39.89 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.698e-05/0.6649, allocations: 55.66 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.6651, allocations: 143.2 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.6651, allocations: 0 / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6651, allocations: 0 / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.6651, allocations: 0 / 1.223 GB, free: 14.79 MB / 0.9512 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.0006314/0.6658, allocations: 446.8 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.6658, allocations: 11.97 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.908e-05/0.6658, allocations: 42.75 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008868/0.6667, allocations: 112.7 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.6669, allocations: 184.1 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.667, allocations: 71.88 kB / 1.224 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.667, allocations: 8.375 kB / 1.224 GB, free: 13.83 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.6676, allocations: 173.4 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.6676, allocations: 0 / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.395e-05/0.6676, allocations: 4 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.6677, allocations: 4 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006856/0.6683, allocations: 163.8 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.6695, allocations: 485.9 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.6706, allocations: 218.3 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.6709, allocations: 76.91 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.671, allocations: 4 kB / 1.225 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.671, allocations: 34.56 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.671, allocations: 0 / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of matching and sorting (n=6): time 0.00111/0.6721, allocations: 269.3 kB / 1.225 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.6722, allocations: 51.41 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.6723, allocations: 140.2 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.6724, allocations: 29.7 kB / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.194e-05/0.6725, allocations: 116.2 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.6725, allocations: 19.8 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.499e-05/0.6726, allocations: 25.7 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.6727, allocations: 318.8 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.673, allocations: 71.92 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.6734, allocations: 94.5 kB / 1.226 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.6741, allocations: 166.4 kB / 1.226 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.6741, allocations: 0 / 1.226 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007616/0.6748, allocations: 205.8 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.6749, allocations: 14.12 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.6749, allocations: 3.938 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.6749, allocations: 0 / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.6752, allocations: 39.95 kB / 1.227 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.6752, allocations: 0 / 1.227 GB, free: 11 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.6754, allocations: 19.97 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.6754, allocations: 11.98 kB / 1.227 GB, free: 10.97 MB / 0.9512 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.0001155/0.6756, allocations: 121.8 kB / 1.227 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.674e-05/0.6756, allocations: 11.91 kB / 1.227 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008105/0.6764, allocations: 210.1 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.6764, allocations: 0 / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.6765, allocations: 0 / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.6765, allocations: 0 / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.6768, allocations: 246.1 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6768, allocations: 0 / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000244/0.677, allocations: 35.89 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.677, allocations: 3.938 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.6771, allocations: 7.938 kB / 1.227 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.6771, allocations: 4 kB / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6771, allocations: 0 / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007691/0.6778, allocations: 283.3 kB / 1.228 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.862e-05/0.6779, allocations: 85.06 kB / 1.228 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.594e-05/0.6779, allocations: 7.922 kB / 1.228 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.6783, allocations: 31.95 kB / 1.228 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.6783, allocations: 4 kB / 1.228 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.6783, allocations: 7.984 kB / 1.228 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.114e-05/0.6784, allocations: 105.3 kB / 1.228 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6784, allocations: 0 / 1.228 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000273/0.6787, allocations: 27.95 kB / 1.228 GB, free: 9.699 MB / 0.9512 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.001125/0.6798, allocations: 0.83 MB / 1.229 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007289/0.6806, allocations: 163.8 kB / 1.229 GB, free: 8.684 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.6806, allocations: 4 kB / 1.229 GB, free: 8.68 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003415/0.6809, allocations: 80.05 kB / 1.229 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.6813, allocations: 4 kB / 1.229 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/0.6846, allocations: 1.852 MB / 1.231 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.6849, allocations: 0.7002 MB / 1.231 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.192e-05/0.685, allocations: 12 kB / 1.231 GB, free: 5.914 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.846e-05/0.6851, allocations: 31.42 kB / 1.231 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.6851, allocations: 0 / 1.231 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.709, allocations: 2.745 MB / 1.234 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/8.211, allocations: 10.92 kB / 1.234 GB, free: 3.215 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches