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.005875/0.005875, allocations: 100.9 kB / 15.87 MB, free: 5.867 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.001407/0.001407, allocations: 190.9 kB / 16.79 MB, free: 5.809 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.411/1.411, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.809/2.809, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 69.08 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2988, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.004288/0.3031, allocations: 1.835 MB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001411/0.3045, allocations: 0.6622 MB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.456e-05/0.3046, allocations: 4 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.249e-05/0.3047, allocations: 7.922 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.962e-05/0.3048, allocations: 11.88 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006869/0.3055, allocations: 150.6 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.3058, allocations: 115.7 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.306, allocations: 45.09 kB / 1.056 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.3061, allocations: 51.83 kB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.3062, allocations: 47.77 kB / 1.056 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.3063, allocations: 15.94 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002496/0.3065, allocations: 43.95 kB / 1.056 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.761e-05/0.3066, allocations: 23.92 kB / 1.056 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.15e-05/0.3067, allocations: 59.64 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001937/0.3069, allocations: 96.06 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3069, allocations: 0 / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3069, allocations: 0 / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.3069, allocations: 4 kB / 1.056 GB, free: 5.125 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.0007672/0.3077, allocations: 427.1 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3078, allocations: 16.03 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/0.3089, allocations: 112.6 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.3091, allocations: 181.9 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.3092, allocations: 67.95 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.3093, allocations: 12.36 kB / 1.057 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007182/0.31, allocations: 178.6 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.31, allocations: 7.922 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.3101, allocations: 0 / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.3101, allocations: 4 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008216/0.3109, allocations: 155.8 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3124, allocations: 481.9 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3138, allocations: 218.3 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004171/0.3142, allocations: 80.91 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.3143, allocations: 3.984 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.3143, allocations: 42.5 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 2.194e-06/0.3143, allocations: 0 / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0014/0.3157, allocations: 265.5 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.3158, allocations: 51.41 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.3161, allocations: 139.5 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.3161, allocations: 29.7 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.3162, allocations: 112.1 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.698e-05/0.3163, allocations: 15.75 kB / 1.058 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.005e-05/0.3164, allocations: 25.7 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3166, allocations: 326.8 kB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004088/0.317, allocations: 71.92 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/0.3174, allocations: 98.48 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007595/0.3182, allocations: 166.4 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3182, allocations: 0 / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0008695/0.3191, allocations: 205.4 kB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.3191, allocations: 4 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.3191, allocations: 0 / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-05/0.3192, allocations: 7.938 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.3195, allocations: 39.95 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3195, allocations: 0 / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.3198, allocations: 31.88 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.145e-05/0.3198, allocations: 3.984 kB / 1.059 GB, free: 1.367 MB / 0.8106 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.0001403/0.32, allocations: 113.8 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.068e-05/0.3201, allocations: 7.906 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009452/0.321, allocations: 210.2 kB / 1.06 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.321, allocations: 3.938 kB / 1.06 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.3211, allocations: 0 / 1.06 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3211, allocations: 3.938 kB / 1.06 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.3214, allocations: 242.5 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3215, allocations: 0 / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.3218, allocations: 35.95 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.3218, allocations: 0 / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.3218, allocations: 7.938 kB / 1.06 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.3218, allocations: 0 / 1.06 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3218, allocations: 3.938 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.323, allocations: 283.3 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.3231, allocations: 85 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.3231, allocations: 11.94 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.3234, allocations: 31.95 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.3235, allocations: 3.938 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.3235, allocations: 7.984 kB / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.478e-05/0.3236, allocations: 112.8 kB / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3236, allocations: 0 / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003299/0.3239, allocations: 27.91 kB / 1.06 GB, free: 104 kB / 0.8106 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.0001291/0.3241, allocations: 95.25 kB / 1.06 GB, free: 0 / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000664/0.3247, allocations: 167.8 kB / 1.061 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.3248, allocations: 4 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000291/0.325, allocations: 75.92 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.3254, allocations: 9.531 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000736/0.3262, allocations: 326.8 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/0.3264, allocations: 0.7043 MB / 1.062 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.3265, allocations: 15.42 kB / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3265, allocations: 0 / 1.062 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of Templates: time 0.003223/0.3298, allocations: 1.591 MB / 1.063 GB, free: 13.06 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches