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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.261/2.261, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001188/0.001188, allocations: 185 kB / 498.1 MB, free: 5.738 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.514/1.514, allocations: 223.2 MB / 0.7949 GB, free: 17.89 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.0009244/0.0009238, allocations: 97.97 kB / 0.9346 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003112/0.0003112, allocations: 11.73 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1946/0.4947, allocations: 151.1 MB / 1.37 GB, free: 11.02 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002382/0.495, allocations: 79.95 kB / 1.37 GB, free: 10.94 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01557/0.5106, allocations: 5.114 MB / 1.375 GB, free: 5.812 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.427e-06/0.5106, allocations: 3.938 kB / 1.375 GB, free: 5.809 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.224e-05/0.5106, allocations: 4 kB / 1.375 GB, free: 5.805 MB / 0.8698 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.0006592/0.5113, allocations: 422.8 kB / 1.376 GB, free: 5.344 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.492e-05/0.5114, allocations: 12.03 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007427/0.5121, allocations: 123.6 kB / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.5123, allocations: 175 kB / 1.376 GB, free: 5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.5125, allocations: 67.33 kB / 1.376 GB, free: 4.922 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.5125, allocations: 12 kB / 1.376 GB, free: 4.91 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.5131, allocations: 195 kB / 1.376 GB, free: 4.715 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.5131, allocations: 3.938 kB / 1.376 GB, free: 4.711 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.5131, allocations: 4 kB / 1.376 GB, free: 4.707 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.5132, allocations: 7.953 kB / 1.376 GB, free: 4.699 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006041/0.5138, allocations: 191.8 kB / 1.377 GB, free: 4.512 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.515, allocations: 0.494 MB / 1.377 GB, free: 3.965 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009718/0.516, allocations: 270.3 kB / 1.377 GB, free: 3.691 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.975e-05/0.516, allocations: 3.938 kB / 1.377 GB, free: 3.688 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.5161, allocations: 34.69 kB / 1.377 GB, free: 3.645 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=6): time 2.575e-06/0.5161, allocations: 4 kB / 1.377 GB, free: 3.641 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0009894/0.5171, allocations: 313.5 kB / 1.378 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.5171, allocations: 51.41 kB / 1.378 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.5173, allocations: 126.6 kB / 1.378 GB, free: 3.137 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.5173, allocations: 33.64 kB / 1.378 GB, free: 3.098 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.5174, allocations: 112.1 kB / 1.378 GB, free: 2.98 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.5174, allocations: 15.75 kB / 1.378 GB, free: 2.965 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.776e-06/0.5174, allocations: 4 kB / 1.378 GB, free: 2.961 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5176, allocations: 322.8 kB / 1.378 GB, free: 2.637 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002903/0.5179, allocations: 87.92 kB / 1.378 GB, free: 2.551 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.5182, allocations: 122.4 kB / 1.379 GB, free: 2.422 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.5185, allocations: 87.94 kB / 1.379 GB, free: 2.336 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.5185, allocations: 3.984 kB / 1.379 GB, free: 2.332 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000611/0.5191, allocations: 233.4 kB / 1.379 GB, free: 2.098 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5191, allocations: 4 kB / 1.379 GB, free: 2.094 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.5191, allocations: 12.05 kB / 1.379 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.5192, allocations: 0 / 1.379 GB, free: 2.082 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.5194, allocations: 43.95 kB / 1.379 GB, free: 2.039 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.5194, allocations: 0 / 1.379 GB, free: 2.039 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.5196, allocations: 39.83 kB / 1.379 GB, free: 2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.5197, allocations: 4 kB / 1.379 GB, free: 1.996 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.5198, allocations: 125.8 kB / 1.379 GB, free: 1.863 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.5198, allocations: 7.906 kB / 1.379 GB, free: 1.855 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000702/0.5206, allocations: 238.2 kB / 1.379 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5206, allocations: 0 / 1.379 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.5206, allocations: 0 / 1.379 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5206, allocations: 0 / 1.379 GB, free: 1.617 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.5208, allocations: 242.3 kB / 1.38 GB, free: 1.332 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.5209, allocations: 384 / 1.38 GB, free: 1.332 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.5211, allocations: 47.95 kB / 1.38 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.5211, allocations: 0 / 1.38 GB, free: 1.285 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.5211, allocations: 11.94 kB / 1.38 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.5211, allocations: 0 / 1.38 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5211, allocations: 0 / 1.38 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006601/0.5218, allocations: 327.2 kB / 1.38 GB, free: 0.9375 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.787e-05/0.5218, allocations: 81.02 kB / 1.38 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.5219, allocations: 0 / 1.38 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/0.5222, allocations: 51.95 kB / 1.38 GB, free: 0.7891 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.5222, allocations: 7.922 kB / 1.38 GB, free: 0.7812 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.5223, allocations: 7.984 kB / 1.38 GB, free: 0.7734 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.714e-05/0.5223, allocations: 108.8 kB / 1.38 GB, free: 0.668 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5223, allocations: 0 / 1.38 GB, free: 0.668 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002528/0.5226, allocations: 23.91 kB / 1.38 GB, free: 0.6445 MB / 0.8698 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 (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.0001519/0.5228, allocations: 111 kB / 1.38 GB, free: 0.5234 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006245/0.5234, allocations: 191.8 kB / 1.38 GB, free: 344 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.5234, allocations: 128 / 1.38 GB, free: 344 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.5237, allocations: 107.8 kB / 1.381 GB, free: 236 kB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.524, allocations: 4 kB / 1.381 GB, free: 232 kB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006615/0.5246, allocations: 301.6 kB / 1.381 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.5249, allocations: 0.7043 MB / 1.382 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001037/0.525, allocations: 16.17 kB / 1.382 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.212e-05/0.5251, allocations: 15.42 kB / 1.382 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of SimCode: time 2.41e-07/0.5251, allocations: 0 / 1.382 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of Templates: time 0.003354/0.5284, allocations: 1.301 MB / 1.383 GB, free: 13.84 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches