Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.596/1.596, allocations: 249.5 MB / 257 MB, free: 6.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 184.8 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.3 MB / 0.5671 GB, free: 15.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008711/0.0008712, allocations: 94.52 kB / 0.6714 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.882e-05/1.886e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2537, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9132/1.167, allocations: 133.7 MB / 1.016 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/1.167, allocations: 75.89 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01497/1.182, allocations: 5.011 MB / 1.021 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.673e-06/1.182, allocations: 0 / 1.021 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.064e-05/1.182, allocations: 4.75 kB / 1.021 GB, free: 15.86 MB / 0.6511 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.000545/1.183, allocations: 405.5 kB / 1.021 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/1.183, allocations: 8.031 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007052/1.184, allocations: 119.4 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/1.184, allocations: 185 kB / 1.021 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/1.184, allocations: 63.39 kB / 1.022 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/1.184, allocations: 4 kB / 1.022 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000185/1.184, allocations: 80.64 kB / 1.022 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/1.184, allocations: 111.5 kB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/1.184, allocations: 0 / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/1.184, allocations: 0 / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/1.184, allocations: 7.953 kB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/1.186, allocations: 484.1 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006/1.186, allocations: 166.8 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.799e-05/1.186, allocations: 41.8 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/1.186, allocations: 3.984 kB / 1.022 GB, free: 14.22 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/1.186, allocations: 30.56 kB / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/1.186, allocations: 0 / 1.022 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6): time 0.0002664/1.187, allocations: 102.9 kB / 1.023 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/1.187, allocations: 55.39 kB / 1.023 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/1.187, allocations: 124 kB / 1.023 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/1.187, allocations: 25.7 kB / 1.023 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.947e-05/1.187, allocations: 110.8 kB / 1.023 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/1.187, allocations: 19.34 kB / 1.023 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-06/1.187, allocations: 0 / 1.023 GB, free: 13.76 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001296/1.187, allocations: 326.4 kB / 1.023 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.145e-05/1.187, allocations: 29.56 kB / 1.023 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.267e-05/1.187, allocations: 58.48 kB / 1.023 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.57e-05/1.187, allocations: 32.67 kB / 1.023 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/1.187, allocations: 0 / 1.023 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000174/1.188, allocations: 114 kB / 1.023 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/1.188, allocations: 8 kB / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/1.188, allocations: 0 / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/1.188, allocations: 0 / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/1.188, allocations: 51.95 kB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/1.188, allocations: 0.5469 kB / 1.023 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/1.188, allocations: 31.88 kB / 1.023 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/1.188, allocations: 7.984 kB / 1.023 GB, free: 13.16 MB / 0.6511 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 8.985e-05/1.188, allocations: 108.9 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.724e-05/1.188, allocations: 7.906 kB / 1.024 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/1.189, allocations: 116.3 kB / 1.024 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/1.189, allocations: 3.984 kB / 1.024 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/1.189, allocations: 0 / 1.024 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/1.189, allocations: 4 kB / 1.024 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/1.189, allocations: 222 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/1.189, allocations: 3.938 kB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/1.189, allocations: 39.95 kB / 1.024 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/1.189, allocations: 3.938 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/1.189, allocations: 0 / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/1.189, allocations: 192 / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.189, allocations: 7.938 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/1.189, allocations: 207.2 kB / 1.024 GB, free: 12.46 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/1.189, allocations: 81.02 kB / 1.024 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/1.189, allocations: 3.984 kB / 1.024 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/1.19, allocations: 43.95 kB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.744e-05/1.19, allocations: 4 kB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/1.19, allocations: 11.17 kB / 1.024 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.807e-05/1.19, allocations: 101.1 kB / 1.024 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.19, allocations: 0 / 1.024 GB, free: 12.22 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000257/1.19, allocations: 23.91 kB / 1.024 GB, free: 12.2 MB / 0.6511 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.0001521/1.19, allocations: 99.19 kB / 1.025 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001743/1.191, allocations: 79.48 kB / 1.025 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.191, allocations: 0 / 1.025 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.47e-05/1.191, allocations: 45.86 kB / 1.025 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002054/1.191, allocations: 10.36 kB / 1.025 GB, free: 12 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003245/1.191, allocations: 133.2 kB / 1.025 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/1.192, allocations: 0.7119 MB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001029/1.192, allocations: 11.94 kB / 1.025 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.765e-05/1.192, allocations: 15.42 kB / 1.026 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/1.192, allocations: 4 kB / 1.026 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of Templates: time 0.003402/1.195, allocations: 1.252 MB / 1.027 GB, free: 9.852 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches