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.0009482/0.0009484, allocations: 99.38 kB / 15.37 MB, free: 0.707 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.0008939/0.0008938, allocations: 181.8 kB / 16.28 MB, free: 6.656 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.437/1.437, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.693/2.693, allocations: 462.6 MB / 0.7364 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003899, allocations: 21.55 kB / 0.9027 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3512, allocations: 159.6 MB / 1.059 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.001942/0.3532, allocations: 1.488 MB / 1.06 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00104/0.3542, allocations: 0.6545 MB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.003e-05/0.3543, allocations: 0 / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.209e-05/0.3543, allocations: 3.938 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.058e-05/0.3544, allocations: 23.84 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.3549, allocations: 149.7 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001464/0.3551, allocations: 119.7 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.3552, allocations: 45.06 kB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.3553, allocations: 43.86 kB / 1.061 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.239e-05/0.3554, allocations: 43.77 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.213e-05/0.3555, allocations: 4 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.3556, allocations: 35.97 kB / 1.061 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.3556, allocations: 27.89 kB / 1.061 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.438e-05/0.3557, allocations: 73.31 kB / 1.061 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.3559, allocations: 135.8 kB / 1.061 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3559, allocations: 4 kB / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3559, allocations: 0 / 1.061 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.698e-06/0.3559, allocations: 0 / 1.061 GB, free: 2.188 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.0005742/0.3565, allocations: 415.1 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.3565, allocations: 12.03 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000909/0.3574, allocations: 140.7 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.3576, allocations: 193.5 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.3577, allocations: 67.95 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.3578, allocations: 8.375 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005356/0.3583, allocations: 195.5 kB / 1.062 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3583, allocations: 0 / 1.062 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.3583, allocations: 0 / 1.062 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3583, allocations: 4 kB / 1.062 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006465/0.359, allocations: 195.8 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.3601, allocations: 0.494 MB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.3612, allocations: 266.3 kB / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.3616, allocations: 96.91 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.3616, allocations: 11.98 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.3616, allocations: 30.56 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 2.174e-06/0.3617, allocations: 0 / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.001115/0.3628, allocations: 325.4 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.3628, allocations: 55.41 kB / 1.064 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3629, allocations: 139.2 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.363, allocations: 25.7 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.328e-05/0.3631, allocations: 112.1 kB / 1.064 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.3631, allocations: 19.75 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.3631, allocations: 13.72 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3633, allocations: 322.8 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/0.3636, allocations: 87.92 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.364, allocations: 114.5 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006729/0.3647, allocations: 202.4 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3647, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007388/0.3654, allocations: 241.3 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.3654, allocations: 4 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.3655, allocations: 0 / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3655, allocations: 7.938 kB / 1.065 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.3658, allocations: 43.95 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.3658, allocations: 0 / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.366, allocations: 39.95 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.366, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8262 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 0.0001033/0.3661, allocations: 125.7 kB / 1.065 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/0.3662, allocations: 7.906 kB / 1.065 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007821/0.367, allocations: 246.2 kB / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.367, allocations: 0 / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.367, allocations: 3.984 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.367, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.3673, allocations: 238.1 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3673, allocations: 0 / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.3675, allocations: 47.89 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3675, allocations: 0 / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.3675, allocations: 7.922 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3676, allocations: 4.375 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.3676, allocations: 0 / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007449/0.3683, allocations: 327.3 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.684e-05/0.3684, allocations: 89 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.3684, allocations: 3.938 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.3688, allocations: 43.95 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.24e-05/0.3688, allocations: 7.984 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.3688, allocations: 7.984 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.078e-05/0.3689, allocations: 108.8 kB / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3689, allocations: 0 / 1.066 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002723/0.3692, allocations: 27.91 kB / 1.066 GB, free: 12.76 MB / 0.8262 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.0001341/0.3693, allocations: 99.19 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0007254/0.3701, allocations: 199.8 kB / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3701, allocations: 0 / 1.067 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003508/0.3704, allocations: 108 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.3708, allocations: 8 kB / 1.067 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006942/0.3715, allocations: 305.4 kB / 1.067 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.3717, allocations: 0.7004 MB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.57e-05/0.3718, allocations: 16 kB / 1.068 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.636e-05/0.3719, allocations: 11.44 kB / 1.068 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of SimCode: time 2.024e-06/0.3719, allocations: 0 / 1.068 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of Templates: time 0.003837/0.3757, allocations: 1.363 MB / 1.069 GB, free: 9.906 MB / 0.8262 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches