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.005808/0.005808, allocations: 100.7 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.001423/0.001423, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.372/1.372, 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.181/2.181, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 60.09 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7718/0.7732, allocations: 140.4 MB / 1.087 GB, free: 5.281 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002486/0.7757, allocations: 1.778 MB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009813/0.7767, allocations: 0.6569 MB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.614e-05/0.7768, allocations: 1.812 kB / 1.09 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.943e-05/0.7768, allocations: 10.36 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.251e-05/0.7769, allocations: 19.94 kB / 1.09 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005209/0.7774, allocations: 172.8 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001557/0.7776, allocations: 126.2 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.7777, allocations: 51.86 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.7779, allocations: 58.69 kB / 1.09 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.386e-05/0.778, allocations: 49.88 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.646e-05/0.778, allocations: 10.12 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.7781, allocations: 53.27 kB / 1.09 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.784e-05/0.7782, allocations: 28.38 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.435e-05/0.7782, allocations: 61.12 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.7784, allocations: 149 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.7784, allocations: 1.094 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.162e-06/0.7784, allocations: 0 / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.608e-06/0.7785, allocations: 0 / 1.091 GB, free: 3.207 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.0005102/0.779, allocations: 437.8 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.779, allocations: 9.719 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.853e-05/0.7791, allocations: 43.17 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009123/0.78, allocations: 109.1 kB / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.413e-05/0.7801, allocations: 180.3 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-05/0.7802, allocations: 64.58 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.7802, allocations: 13.91 kB / 1.091 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005605/0.7808, allocations: 173.9 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.7808, allocations: 4.859 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.7808, allocations: 5.375 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.7808, allocations: 2.156 kB / 1.092 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006693/0.7815, allocations: 154.9 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.7826, allocations: 479.7 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.7837, allocations: 220 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003289/0.7841, allocations: 84.06 kB / 1.092 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.7841, allocations: 6.844 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.743e-05/0.7841, allocations: 31.75 kB / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.7841, allocations: 0 / 1.093 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001133/0.7853, allocations: 261.8 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.396e-05/0.7853, allocations: 53.45 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.488e-05/0.7854, allocations: 141 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.7854, allocations: 30.48 kB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.269e-05/0.7855, allocations: 109.8 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.7855, allocations: 15.98 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.761e-05/0.7856, allocations: 23.7 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.313e-05/0.7856, allocations: 320.6 kB / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003341/0.786, allocations: 78.38 kB / 1.094 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003326/0.7863, allocations: 96.33 kB / 1.094 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/0.787, allocations: 161.5 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.787, allocations: 4 kB / 1.094 GB, free: 1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007266/0.7877, allocations: 202 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.7877, allocations: 5.281 kB / 1.094 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.7877, allocations: 5.312 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.7878, allocations: 1.188 kB / 1.094 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000288/0.788, allocations: 38.86 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.7881, allocations: 2.312 kB / 1.094 GB, free: 0.918 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.7883, allocations: 37.39 kB / 1.094 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.7883, allocations: 3.547 kB / 1.094 GB, free: 0.9023 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 7.565e-05/0.7884, allocations: 116 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.382e-05/0.7884, allocations: 7.125 kB / 1.094 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007998/0.7892, allocations: 216.4 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.7893, allocations: 0.9375 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.7893, allocations: 0 / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.7893, allocations: 1.266 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.7895, allocations: 233.1 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.7895, allocations: 0.6875 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.7898, allocations: 31.7 kB / 1.095 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.7898, allocations: 4.688 kB / 1.095 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.7898, allocations: 14.75 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.7898, allocations: 0.7188 kB / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7898, allocations: 0 / 1.095 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007114/0.7905, allocations: 287.1 kB / 1.095 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.266e-05/0.7905, allocations: 83.59 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.7906, allocations: 9.094 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.7909, allocations: 33.8 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.791, allocations: 4.141 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.791, allocations: 7.047 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.72e-05/0.791, allocations: 106 kB / 1.095 GB, free: 100 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7911, allocations: 4 kB / 1.095 GB, free: 96 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002805/0.7913, allocations: 32 kB / 1.095 GB, free: 84 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.001073/0.7924, allocations: 0.8166 MB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00076/0.7932, allocations: 159.8 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7932, allocations: 4.125 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.7936, allocations: 85.78 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.7939, allocations: 10.62 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.003395/0.7973, allocations: 1.827 MB / 1.098 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.7976, allocations: 0.6991 MB / 1.099 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001124/0.7978, allocations: 19.12 kB / 1.099 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.564e-05/0.7979, allocations: 33.11 kB / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.7979, allocations: 0 / 1.099 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.8168, allocations: 2.764 MB / 1.101 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.32/8.137, allocations: 4.203 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