Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001359/0.001359, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001408, allocations: 194.7 kB / 16.14 MB, free: 6.629 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.592/1.592, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.761/2.761, allocations: 437 MB / 0.71 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 67.89 kB / 0.8686 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6772/0.6791, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003219/0.6824, allocations: 1.84 MB / 1.018 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.6837, allocations: 0.6592 MB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.715e-05/0.6837, allocations: 4 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.647e-05/0.6838, allocations: 7.922 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.059e-05/0.6839, allocations: 11.88 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005009/0.6844, allocations: 153.4 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.6846, allocations: 123.7 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.6847, allocations: 45.03 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.6849, allocations: 51.83 kB / 1.019 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.149e-05/0.685, allocations: 51.72 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.685, allocations: 8 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.6851, allocations: 47.94 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.353e-05/0.6852, allocations: 19.92 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.919e-05/0.6852, allocations: 63.64 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.6855, allocations: 137.6 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.6855, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6855, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.557e-06/0.6855, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 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.0007503/0.6862, allocations: 443.1 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.6863, allocations: 8.031 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008793/0.6872, allocations: 108.6 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.6874, allocations: 178.1 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.6875, allocations: 67.95 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.6875, allocations: 12.38 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.6881, allocations: 169.5 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.6881, allocations: 3.938 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.572e-05/0.6881, allocations: 7.984 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.6881, allocations: 4 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007106/0.6888, allocations: 151.8 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.6901, allocations: 485.8 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.6912, allocations: 218.3 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/0.6915, allocations: 88.84 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.6915, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.6916, allocations: 38.5 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 9.71e-07/0.6916, allocations: 0 / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.001078/0.6927, allocations: 265.5 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.6927, allocations: 55.41 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.6928, allocations: 139.9 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.6929, allocations: 29.7 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.693, allocations: 112.1 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.505e-05/0.693, allocations: 11.81 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-05/0.6931, allocations: 25.7 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.6932, allocations: 322.8 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.6935, allocations: 71.92 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.6939, allocations: 98.44 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006003/0.6945, allocations: 162.4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.6945, allocations: 4 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0009203/0.6954, allocations: 197.4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.6955, allocations: 6.344 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.926e-06/0.6955, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.6955, allocations: 8 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.6958, allocations: 35.89 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6958, allocations: 8.141 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.696, allocations: 31.81 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.696, allocations: 7.984 kB / 1.023 GB, free: 11.82 MB / 0.7794 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.000125/0.6962, allocations: 114.6 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/0.6962, allocations: 7.906 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007333/0.697, allocations: 214.1 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.697, allocations: 0 / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.697, allocations: 4 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.697, allocations: 4 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003107/0.6973, allocations: 241.9 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.6973, allocations: 0 / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.6976, allocations: 32.33 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.6976, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.6976, allocations: 7.875 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.583e-06/0.6976, allocations: 4 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.6976, allocations: 3.938 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007131/0.6984, allocations: 283.3 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.6984, allocations: 89 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.6985, allocations: 15.86 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.6988, allocations: 31.95 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.6989, allocations: 4 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.6989, allocations: 7.984 kB / 1.024 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.189e-05/0.699, allocations: 103.2 kB / 1.024 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.699, allocations: 4 kB / 1.024 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002726/0.6993, allocations: 27.84 kB / 1.024 GB, free: 10.54 MB / 0.7794 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.0001533/0.6994, allocations: 103.2 kB / 1.024 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006641/0.7001, allocations: 163.8 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.7001, allocations: 0 / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.7004, allocations: 84.05 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004043/0.7008, allocations: 8 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007412/0.7016, allocations: 281.2 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.702, allocations: 0.7014 MB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.7021, allocations: 16 kB / 1.026 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.7022, allocations: 19.36 kB / 1.026 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.7022, allocations: 3.938 kB / 1.026 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of Templates: time 0.004366/0.7066, allocations: 1.364 MB / 1.027 GB, free: 7.762 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches