Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001487/0.001487, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.001596/0.001596, allocations: 191 kB / 17.29 MB, free: 5.516 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.324/1.324, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.46/2.46, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 71.25 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2901, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.002907/0.293, allocations: 1.783 MB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.2941, allocations: 0.6552 MB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.386e-05/0.2942, allocations: 4 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.252e-05/0.2942, allocations: 11.86 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.121e-05/0.2943, allocations: 15.81 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.2948, allocations: 175.1 kB / 1.029 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.295, allocations: 119.7 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.2951, allocations: 49.09 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.2952, allocations: 51.84 kB / 1.03 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.391e-05/0.2953, allocations: 51.75 kB / 1.03 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.2954, allocations: 16 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.2955, allocations: 47.97 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.566e-05/0.2955, allocations: 31.83 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.053e-05/0.2956, allocations: 63.66 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.2958, allocations: 139.6 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2958, allocations: 0 / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2958, allocations: 3.938 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.2958, allocations: 0 / 1.03 GB, free: 14.86 MB / 0.8106 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.0005852/0.2964, allocations: 435.1 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.2965, allocations: 12.03 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007898/0.2973, allocations: 112.6 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000124/0.2974, allocations: 188.1 kB / 1.031 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.532e-05/0.2975, allocations: 67.97 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.2975, allocations: 4.375 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.298, allocations: 177.6 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.298, allocations: 0 / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.2981, allocations: 0 / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.2981, allocations: 4 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005599/0.2986, allocations: 163.8 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.2997, allocations: 466.1 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009067/0.3006, allocations: 226.2 kB / 1.032 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002658/0.3009, allocations: 76.91 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.677e-05/0.3009, allocations: 11.92 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.3009, allocations: 34.56 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.3009, allocations: 0 / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0009098/0.3019, allocations: 265.5 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.3019, allocations: 55.34 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.302, allocations: 139.5 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.3021, allocations: 25.7 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.3021, allocations: 112.1 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.3021, allocations: 23.73 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.792e-05/0.3022, allocations: 25.7 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.3023, allocations: 314.8 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.3026, allocations: 83.84 kB / 1.033 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.3029, allocations: 90.5 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000521/0.3034, allocations: 166.4 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3034, allocations: 0 / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000609/0.304, allocations: 205.4 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.304, allocations: 8 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3041, allocations: 0 / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.3041, allocations: 3.938 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.3043, allocations: 39.94 kB / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.3044, allocations: 0 / 1.033 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.3045, allocations: 27.88 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.3046, allocations: 4.156 kB / 1.033 GB, free: 11.11 MB / 0.8106 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.357e-05/0.3047, allocations: 121.8 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.3047, allocations: 11.89 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006611/0.3054, allocations: 210.4 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3054, allocations: 4 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3054, allocations: 4.062 kB / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3054, allocations: 0 / 1.034 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002352/0.3057, allocations: 234.1 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.3057, allocations: 0 / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.3059, allocations: 35.94 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3059, allocations: 4 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.3059, allocations: 7.938 kB / 1.034 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3059, allocations: 0 / 1.034 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3059, allocations: 7.984 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006326/0.3066, allocations: 287.2 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.3066, allocations: 85.02 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.3067, allocations: 3.938 kB / 1.034 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002887/0.3069, allocations: 31.95 kB / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.307, allocations: 7.984 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.307, allocations: 7.984 kB / 1.034 GB, free: 9.961 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.346e-05/0.3071, allocations: 113.2 kB / 1.034 GB, free: 9.852 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3071, allocations: 4 kB / 1.034 GB, free: 9.848 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002672/0.3074, allocations: 23.91 kB / 1.034 GB, free: 9.824 MB / 0.8106 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.0001331/0.3075, allocations: 103.2 kB / 1.034 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006094/0.3081, allocations: 163.8 kB / 1.035 GB, free: 9.555 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.3082, allocations: 4 kB / 1.035 GB, free: 9.551 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.3084, allocations: 79.91 kB / 1.035 GB, free: 9.473 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.3087, allocations: 10.81 kB / 1.035 GB, free: 9.465 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.3094, allocations: 267.4 kB / 1.035 GB, free: 9.172 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002293/0.3096, allocations: 0.7002 MB / 1.036 GB, free: 8.445 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 8.246e-05/0.3097, allocations: 16 kB / 1.036 GB, free: 8.43 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.459e-05/0.3098, allocations: 11.44 kB / 1.036 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of SimCode: time 2.81e-07/0.3098, allocations: 0 / 1.036 GB, free: 8.418 MB / 0.8106 GB Notification: Performance of Templates: time 0.0037/0.3135, allocations: 1.463 MB / 1.037 GB, free: 6.965 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches