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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.185/2.185, allocations: 390.5 MB / 398 MB, free: 10.92 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 184.8 kB / 491.2 MB, free: 1.535 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 221.5 MB / 0.7868 GB, free: 13.26 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009479/0.0009479, allocations: 98.84 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.717e-05/1.719e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3163, allocations: 143 MB / 1.212 GB, free: 39.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.062/1.378, allocations: 151.1 MB / 1.36 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/1.378, allocations: 75.83 kB / 1.36 GB, free: 17.61 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01875/1.397, allocations: 5.082 MB / 1.365 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.894e-06/1.397, allocations: 0 / 1.365 GB, free: 32.99 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.01e-05/1.397, allocations: 3.875 kB / 1.365 GB, free: 32.99 MB / 0.8386 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.0005551/1.398, allocations: 407.2 kB / 1.365 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/1.398, allocations: 12.19 kB / 1.365 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000895/1.399, allocations: 128.2 kB / 1.365 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/1.399, allocations: 182.1 kB / 1.366 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/1.399, allocations: 61.73 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.413e-05/1.399, allocations: 7.688 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002161/1.399, allocations: 74.97 kB / 1.366 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002525/1.399, allocations: 102.5 kB / 1.366 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/1.399, allocations: 3.938 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.916e-05/1.399, allocations: 3.953 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/1.399, allocations: 3.875 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/1.401, allocations: 473.1 kB / 1.366 GB, free: 32.01 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007366/1.401, allocations: 160.3 kB / 1.366 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.479e-05/1.402, allocations: 48.06 kB / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.004e-05/1.402, allocations: 3.828 kB / 1.367 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/1.402, allocations: 34.38 kB / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/1.402, allocations: 0 / 1.367 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0003071/1.402, allocations: 111.2 kB / 1.367 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/1.402, allocations: 55.34 kB / 1.367 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/1.402, allocations: 119.6 kB / 1.367 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/1.402, allocations: 25.7 kB / 1.367 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.224e-05/1.402, allocations: 115.5 kB / 1.367 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/1.402, allocations: 15.56 kB / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/1.402, allocations: 0 / 1.367 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001509/1.402, allocations: 329.8 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.395e-05/1.403, allocations: 28.66 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.562e-05/1.403, allocations: 53.38 kB / 1.367 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.452e-05/1.403, allocations: 35.67 kB / 1.367 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/1.403, allocations: 0 / 1.367 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002332/1.403, allocations: 114.5 kB / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/1.403, allocations: 9.25 kB / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.403, allocations: 0 / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/1.403, allocations: 0 / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003568/1.403, allocations: 53.69 kB / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/1.403, allocations: 0 / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/1.404, allocations: 35.7 kB / 1.368 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/1.404, allocations: 0 / 1.368 GB, free: 31.19 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001169/1.404, allocations: 108.9 kB / 1.368 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.795e-05/1.404, allocations: 14.22 kB / 1.368 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002829/1.404, allocations: 115.1 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/1.404, allocations: 0 / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.404, allocations: 0 / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/1.404, allocations: 3.094 kB / 1.368 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/1.404, allocations: 214.2 kB / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/1.404, allocations: 0 / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/1.405, allocations: 50.36 kB / 1.368 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.405, allocations: 0 / 1.368 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/1.405, allocations: 3.188 kB / 1.368 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/1.405, allocations: 0 / 1.368 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.405, allocations: 3.875 kB / 1.368 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/1.405, allocations: 202.7 kB / 1.368 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.165e-05/1.405, allocations: 88.95 kB / 1.368 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/1.405, allocations: 7.938 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003912/1.406, allocations: 42.27 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/1.406, allocations: 2.906 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/1.406, allocations: 10.83 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.513e-05/1.406, allocations: 102.5 kB / 1.369 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.406, allocations: 0 / 1.369 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003778/1.406, allocations: 23.16 kB / 1.369 GB, free: 30.53 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001389/1.406, allocations: 102.7 kB / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002081/1.406, allocations: 79.52 kB / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.407, allocations: 0 / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.652e-05/1.407, allocations: 43.3 kB / 1.369 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/1.407, allocations: 11.89 kB / 1.369 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003968/1.407, allocations: 140.3 kB / 1.369 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/1.408, allocations: 0.7075 MB / 1.37 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001381/1.408, allocations: 15.78 kB / 1.37 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.949e-05/1.408, allocations: 14.16 kB / 1.37 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of SimCode: time 3.4e-07/1.408, allocations: 0 / 1.37 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of Templates: time 0.004/1.412, allocations: 1.243 MB / 1.371 GB, free: 29.53 MB / 0.8386 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 -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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches