Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="Buildings_9_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.007719/0.007719, allocations: 98.02 kB / 15.73 MB, free: 6.055 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.001894/0.001894, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.245/2.245, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7806/0.782, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002563/0.7846, allocations: 1.768 MB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009975/0.7857, allocations: 0.6557 MB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.68e-05/0.7857, allocations: 2.188 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.119e-05/0.7858, allocations: 10.59 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.567e-05/0.7859, allocations: 15.27 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005748/0.7864, allocations: 184.5 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.7866, allocations: 118.3 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.7868, allocations: 64.34 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.7869, allocations: 53.86 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.169e-05/0.787, allocations: 54.2 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/0.787, allocations: 11.12 kB / 1.09 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.7872, allocations: 44.44 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.267e-05/0.7872, allocations: 33.59 kB / 1.09 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.833e-05/0.7873, allocations: 51.23 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.7875, allocations: 147.3 kB / 1.091 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7875, allocations: 0 / 1.091 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.775e-06/0.7876, allocations: 5.062 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.7876, allocations: 3.938 kB / 1.091 GB, free: 3.203 MB / 0.8575 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.0005638/0.7881, allocations: 437.5 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.7882, allocations: 10.11 kB / 1.091 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.873e-05/0.7882, allocations: 39.66 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000879/0.7891, allocations: 116.3 kB / 1.091 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.245e-05/0.7892, allocations: 184.5 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.939e-05/0.7893, allocations: 64.59 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.503e-05/0.7893, allocations: 5.75 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005676/0.7899, allocations: 180.6 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.7899, allocations: 0.5312 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.79, allocations: 1.125 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.79, allocations: 1.719 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006586/0.7906, allocations: 155.8 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.7917, allocations: 475.3 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.7929, allocations: 224.9 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.7932, allocations: 83.61 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.7932, allocations: 6.094 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.7933, allocations: 36.73 kB / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.733e-06/0.7933, allocations: 0 / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001091/0.7944, allocations: 261.5 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/0.7944, allocations: 53.31 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.7945, allocations: 145 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.7945, allocations: 31.23 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.415e-05/0.7946, allocations: 101.9 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.7946, allocations: 23.55 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/0.7947, allocations: 28.12 kB / 1.093 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.411e-05/0.7947, allocations: 320.8 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003195/0.795, allocations: 74.3 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.7954, allocations: 96.73 kB / 1.094 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006155/0.796, allocations: 159.9 kB / 1.094 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.796, allocations: 8.75 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007/0.7967, allocations: 198.9 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.7967, allocations: 5.031 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.7968, allocations: 4.938 kB / 1.094 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.06e-05/0.7968, allocations: 4.906 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.7971, allocations: 43.52 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.7971, allocations: 1.219 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.7973, allocations: 30.36 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.7973, allocations: 3.297 kB / 1.094 GB, free: 0.8945 MB / 0.8575 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 9.915e-05/0.7974, allocations: 115.3 kB / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.646e-05/0.7975, allocations: 9.047 kB / 1.094 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007943/0.7983, allocations: 210.9 kB / 1.094 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.7983, allocations: 5.281 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7983, allocations: 4.609 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.7983, allocations: 1.547 kB / 1.094 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002476/0.7986, allocations: 232.4 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.7986, allocations: 0.7031 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.7988, allocations: 35.86 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.7988, allocations: 4.734 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.7989, allocations: 6.141 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.7989, allocations: 1.547 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.7989, allocations: 0 / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.7996, allocations: 286.8 kB / 1.095 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.795e-05/0.7996, allocations: 88.08 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.994e-05/0.7997, allocations: 5.031 kB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.8, allocations: 36.83 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.8001, allocations: 8.016 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.8001, allocations: 7.641 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.409e-05/0.8002, allocations: 104.5 kB / 1.095 GB, free: 84 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8002, allocations: 0 / 1.095 GB, free: 84 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002803/0.8005, allocations: 24.34 kB / 1.095 GB, free: 80 kB / 0.8575 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.001138/0.8016, allocations: 0.8151 MB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007527/0.8024, allocations: 169 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.8024, allocations: 0 / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003432/0.8027, allocations: 81.47 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.8031, allocations: 12.27 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.8064, allocations: 1.838 MB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.8067, allocations: 0.6988 MB / 1.099 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001063/0.8068, allocations: 16.22 kB / 1.099 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.902e-05/0.8069, allocations: 31.94 kB / 1.099 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of SimCode: time 4.81e-07/0.8069, allocations: 0 / 1.099 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02048/0.8274, allocations: 2.75 MB / 1.101 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.528/8.356, allocations: 8.828 kB / 1.101 GB, free: 12.71 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Utilities_Math_Examples_SmoothBlocks.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches