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.407/2.407, allocations: 393.5 MB / 408.4 MB, free: 11.12 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.001253/0.001253, allocations: 186.6 kB / 0.4902 GB, free: 2.277 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.58/1.58, allocations: 223.2 MB / 0.7992 GB, free: 15.72 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.001034/0.001034, allocations: 102.9 kB / 0.9396 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.0003721, allocations: 14.06 kB / 1.09 GB, free: 212.9 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2736, allocations: 143 MB / 1.229 GB, free: 85.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1997/0.4734, allocations: 151.9 MB / 1.377 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4737, allocations: 75.94 kB / 1.378 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01511/0.4888, allocations: 5.115 MB / 1.383 GB, free: 8.262 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.264e-06/0.4888, allocations: 0 / 1.383 GB, free: 8.262 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.4889, allocations: 4 kB / 1.383 GB, free: 8.258 MB / 0.8855 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.0005386/0.4894, allocations: 434.8 kB / 1.383 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4895, allocations: 8.562 kB / 1.383 GB, free: 7.777 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006791/0.4901, allocations: 115.6 kB / 1.383 GB, free: 7.664 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.4903, allocations: 183.5 kB / 1.383 GB, free: 7.445 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.915e-05/0.4904, allocations: 67.41 kB / 1.383 GB, free: 7.367 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.4904, allocations: 8 kB / 1.383 GB, free: 7.359 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.4909, allocations: 194.4 kB / 1.384 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.491, allocations: 0 / 1.384 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.491, allocations: 0 / 1.384 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.491, allocations: 11.89 kB / 1.384 GB, free: 7.152 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006138/0.4916, allocations: 191.8 kB / 1.384 GB, free: 6.965 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.4928, allocations: 0.4901 MB / 1.384 GB, free: 6.422 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.4938, allocations: 278.3 kB / 1.384 GB, free: 6.141 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.4939, allocations: 7.969 kB / 1.384 GB, free: 6.133 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.4939, allocations: 34.56 kB / 1.385 GB, free: 6.09 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=6): time 1.502e-06/0.4939, allocations: 0 / 1.385 GB, free: 6.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=6): time 0.001144/0.4951, allocations: 305.7 kB / 1.385 GB, free: 5.785 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.4951, allocations: 59.39 kB / 1.385 GB, free: 5.715 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.4953, allocations: 135 kB / 1.385 GB, free: 5.578 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.4953, allocations: 25.7 kB / 1.385 GB, free: 5.547 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.269e-05/0.4954, allocations: 104.3 kB / 1.385 GB, free: 5.438 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.184e-05/0.4954, allocations: 23.64 kB / 1.385 GB, free: 5.414 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/0.4955, allocations: 4 kB / 1.385 GB, free: 5.41 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4956, allocations: 318.8 kB / 1.385 GB, free: 5.09 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.496, allocations: 91.92 kB / 1.386 GB, free: 5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.4963, allocations: 110.5 kB / 1.386 GB, free: 4.883 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.4966, allocations: 91.92 kB / 1.386 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.4966, allocations: 0 / 1.386 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006702/0.4973, allocations: 237.4 kB / 1.386 GB, free: 4.555 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.4973, allocations: 8 kB / 1.386 GB, free: 4.547 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4973, allocations: 3.938 kB / 1.386 GB, free: 4.543 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.4974, allocations: 3.984 kB / 1.386 GB, free: 4.539 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/0.4977, allocations: 47.95 kB / 1.386 GB, free: 4.492 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.4977, allocations: 3.938 kB / 1.386 GB, free: 4.488 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.4979, allocations: 44.12 kB / 1.386 GB, free: 4.445 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.4979, allocations: 4 kB / 1.386 GB, free: 4.441 MB / 0.8855 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.0001271/0.498, allocations: 121.8 kB / 1.386 GB, free: 4.312 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.4981, allocations: 7.906 kB / 1.386 GB, free: 4.305 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008061/0.4989, allocations: 242.2 kB / 1.386 GB, free: 4.066 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.4989, allocations: 0 / 1.386 GB, free: 4.066 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.4989, allocations: 0 / 1.386 GB, free: 4.066 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.499, allocations: 4 kB / 1.386 GB, free: 4.062 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003182/0.4993, allocations: 246.1 kB / 1.387 GB, free: 3.773 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4993, allocations: 0 / 1.387 GB, free: 3.773 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.4995, allocations: 43.89 kB / 1.387 GB, free: 3.73 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.4995, allocations: 4 kB / 1.387 GB, free: 3.727 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.4996, allocations: 3.984 kB / 1.387 GB, free: 3.723 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4996, allocations: 160 / 1.387 GB, free: 3.723 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4996, allocations: 0 / 1.387 GB, free: 3.723 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006817/0.5003, allocations: 327.2 kB / 1.387 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.643e-05/0.5003, allocations: 85.02 kB / 1.387 GB, free: 3.285 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.5004, allocations: 7.938 kB / 1.387 GB, free: 3.277 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.5007, allocations: 43.95 kB / 1.387 GB, free: 3.234 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.336e-05/0.5007, allocations: 3.984 kB / 1.387 GB, free: 3.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.5007, allocations: 4 kB / 1.387 GB, free: 3.227 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.71e-05/0.5008, allocations: 112.4 kB / 1.387 GB, free: 3.117 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.653e-06/0.5008, allocations: 0 / 1.387 GB, free: 3.117 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002602/0.5011, allocations: 31.84 kB / 1.387 GB, free: 3.086 MB / 0.8855 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.0001476/0.5013, allocations: 96.05 kB / 1.387 GB, free: 2.98 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006817/0.5019, allocations: 199.8 kB / 1.388 GB, free: 2.785 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.502, allocations: 0 / 1.388 GB, free: 2.785 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.5023, allocations: 104 kB / 1.388 GB, free: 2.684 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.5025, allocations: 8.859 kB / 1.388 GB, free: 2.676 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006773/0.5032, allocations: 305.6 kB / 1.388 GB, free: 2.344 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.5034, allocations: 0.7004 MB / 1.389 GB, free: 1.617 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001045/0.5035, allocations: 19.94 kB / 1.389 GB, free: 1.594 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.715e-05/0.5036, allocations: 11.42 kB / 1.389 GB, free: 1.582 MB / 0.8855 GB Notification: Performance of SimCode: time 2.51e-07/0.5036, allocations: 4 kB / 1.389 GB, free: 1.578 MB / 0.8855 GB Notification: Performance of Templates: time 0.003311/0.5069, allocations: 1.316 MB / 1.39 GB, free: 280 kB / 0.8855 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