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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks") translateModel(Buildings.Utilities.Math.Examples.SmoothBlocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoMax.u1|smoMax.u2|smoMax.y|max.y|smoMin.y|Min.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 110.9 kB / 16.37 MB, free: 5.539 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.001168/0.001168, allocations: 194.3 kB / 17.31 MB, free: 5.18 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.44/2.44, allocations: 437.1 MB / 0.7112 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 68.08 kB / 0.8707 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2978, allocations: 151.6 MB / 1.019 GB, free: 9.863 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002899/0.3007, allocations: 1.781 MB / 1.021 GB, free: 8.066 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001055/0.3018, allocations: 0.6669 MB / 1.021 GB, free: 7.391 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.3019, allocations: 0 / 1.021 GB, free: 7.391 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.656e-05/0.3019, allocations: 19.8 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.082e-05/0.302, allocations: 15.8 kB / 1.021 GB, free: 7.355 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005575/0.3026, allocations: 172.3 kB / 1.021 GB, free: 7.191 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.3027, allocations: 123.7 kB / 1.021 GB, free: 7.07 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.3029, allocations: 49.09 kB / 1.022 GB, free: 7.023 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.303, allocations: 51.84 kB / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.392e-05/0.3031, allocations: 55.69 kB / 1.022 GB, free: 6.918 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.739e-05/0.3032, allocations: 12 kB / 1.022 GB, free: 6.906 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.3033, allocations: 43.97 kB / 1.022 GB, free: 6.863 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.74e-05/0.3033, allocations: 31.89 kB / 1.022 GB, free: 6.832 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/0.3034, allocations: 55.72 kB / 1.022 GB, free: 6.777 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.3036, allocations: 147.4 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3036, allocations: 4 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3036, allocations: 0 / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.3036, allocations: 0 / 1.022 GB, free: 6.629 MB / 0.795 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.000633/0.3043, allocations: 435.1 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.3043, allocations: 12.92 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008306/0.3051, allocations: 108.6 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.3053, allocations: 190.5 kB / 1.023 GB, free: 5.816 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.865e-05/0.3054, allocations: 67.91 kB / 1.023 GB, free: 5.738 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.3054, allocations: 8.375 kB / 1.023 GB, free: 5.73 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005048/0.3059, allocations: 173.6 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.306, allocations: 4 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.306, allocations: 7.938 kB / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.306, allocations: 0 / 1.023 GB, free: 5.543 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005388/0.3065, allocations: 158.2 kB / 1.023 GB, free: 5.391 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.3076, allocations: 477.9 kB / 1.023 GB, free: 4.875 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009244/0.3085, allocations: 222.3 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002699/0.3088, allocations: 80.89 kB / 1.024 GB, free: 4.566 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.3088, allocations: 11.98 kB / 1.024 GB, free: 4.555 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.3089, allocations: 30.56 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of pre-optimization done (n=6): time 2.905e-06/0.3089, allocations: 0 / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0009504/0.3098, allocations: 269.4 kB / 1.024 GB, free: 4.246 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.3099, allocations: 59.41 kB / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.31, allocations: 133.8 kB / 1.024 GB, free: 4.035 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.31, allocations: 25.7 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.861e-05/0.3101, allocations: 112.1 kB / 1.024 GB, free: 3.887 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/0.3101, allocations: 19.73 kB / 1.024 GB, free: 3.867 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.782e-05/0.3102, allocations: 21.72 kB / 1.024 GB, free: 3.84 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.3103, allocations: 326.8 kB / 1.025 GB, free: 3.512 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.3106, allocations: 75.92 kB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/0.3109, allocations: 98.48 kB / 1.025 GB, free: 3.332 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005274/0.3114, allocations: 158.4 kB / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3114, allocations: 0 / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006079/0.3121, allocations: 201.4 kB / 1.025 GB, free: 2.965 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.3121, allocations: 8 kB / 1.025 GB, free: 2.957 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3121, allocations: 3.938 kB / 1.025 GB, free: 2.953 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3121, allocations: 3.938 kB / 1.025 GB, free: 2.949 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.3124, allocations: 44.02 kB / 1.025 GB, free: 2.906 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.3124, allocations: 3.984 kB / 1.025 GB, free: 2.902 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.3126, allocations: 23.88 kB / 1.025 GB, free: 2.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.3126, allocations: 4 kB / 1.025 GB, free: 2.875 MB / 0.795 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.0001044/0.3127, allocations: 113.8 kB / 1.025 GB, free: 2.754 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.3128, allocations: 7.906 kB / 1.025 GB, free: 2.746 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006768/0.3135, allocations: 210.1 kB / 1.026 GB, free: 2.535 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3135, allocations: 7.984 kB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3135, allocations: 0 / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3135, allocations: 4 kB / 1.026 GB, free: 2.523 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.3138, allocations: 237.9 kB / 1.026 GB, free: 2.238 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3138, allocations: 384 / 1.026 GB, free: 2.238 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002307/0.314, allocations: 31.95 kB / 1.026 GB, free: 2.207 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.314, allocations: 0 / 1.026 GB, free: 2.207 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.314, allocations: 11.92 kB / 1.026 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.314, allocations: 0 / 1.026 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.314, allocations: 0 / 1.026 GB, free: 2.195 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006239/0.3147, allocations: 299.2 kB / 1.026 GB, free: 1.887 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.3147, allocations: 88.95 kB / 1.026 GB, free: 1.781 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.3148, allocations: 3.938 kB / 1.026 GB, free: 1.777 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002893/0.3151, allocations: 31.95 kB / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.302e-05/0.3151, allocations: 7.984 kB / 1.026 GB, free: 1.738 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.3151, allocations: 11.98 kB / 1.026 GB, free: 1.727 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.717e-05/0.3152, allocations: 105 kB / 1.026 GB, free: 1.625 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3152, allocations: 0 / 1.026 GB, free: 1.625 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002699/0.3155, allocations: 23.91 kB / 1.026 GB, free: 1.602 MB / 0.795 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.0001303/0.3156, allocations: 95.25 kB / 1.027 GB, free: 1.5 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006072/0.3162, allocations: 167.8 kB / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3163, allocations: 0 / 1.027 GB, free: 1.336 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.3165, allocations: 88.03 kB / 1.027 GB, free: 1.25 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.3168, allocations: 8 kB / 1.027 GB, free: 1.242 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006029/0.3174, allocations: 255.3 kB / 1.027 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.3177, allocations: 0.7002 MB / 1.028 GB, free: 240 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.651e-05/0.3178, allocations: 19.97 kB / 1.028 GB, free: 220 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.087e-05/0.3179, allocations: 15.44 kB / 1.028 GB, free: 208 kB / 0.795 GB Notification: Performance of SimCode: time 3.41e-07/0.3179, allocations: 4 kB / 1.028 GB, free: 204 kB / 0.795 GB Notification: Performance of Templates: time 0.003741/0.3216, allocations: 1.456 MB / 1.029 GB, free: 14.75 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (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 & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/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