Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.005662/0.005662, allocations: 103.5 kB / 15.73 MB, free: 6.047 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.001282/0.001281, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.2 MB / 0.6648 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 59.91 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038/1.04, allocations: 140.4 MB / 1.088 GB, free: 5.805 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothBlocks): time 0.003575/1.043, allocations: 1.77 MB / 1.09 GB, free: 4.57 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001318/1.045, allocations: 0.6653 MB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.024e-05/1.045, allocations: 1.062 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.688e-05/1.045, allocations: 11.89 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.615e-05/1.045, allocations: 15.28 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006783/1.045, allocations: 170.4 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002315/1.046, allocations: 126.2 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/1.046, allocations: 54.17 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/1.046, allocations: 56.25 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001357/1.046, allocations: 55.14 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.021e-05/1.046, allocations: 10.41 kB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/1.046, allocations: 49.66 kB / 1.091 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.083e-05/1.047, allocations: 28.81 kB / 1.091 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.523e-05/1.047, allocations: 59.12 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003171/1.047, allocations: 149.4 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/1.047, allocations: 0 / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.205e-06/1.047, allocations: 0.75 kB / 1.091 GB, free: 3.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.197e-06/1.047, allocations: 0 / 1.091 GB, free: 3.73 MB / 0.8575 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.0007083/1.048, allocations: 438.3 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/1.048, allocations: 9.344 kB / 1.091 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008835/1.049, allocations: 116.4 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/1.049, allocations: 181.2 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/1.049, allocations: 68.16 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/1.049, allocations: 5.656 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006181/1.049, allocations: 178.8 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.05, allocations: 0 / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/1.05, allocations: 1.656 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/1.05, allocations: 1.562 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006379/1.05, allocations: 159.5 kB / 1.092 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/1.051, allocations: 471.8 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/1.052, allocations: 215.9 kB / 1.093 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003278/1.053, allocations: 84.05 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/1.053, allocations: 9.547 kB / 1.093 GB, free: 2.488 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/1.053, allocations: 32.92 kB / 1.093 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 2.484e-06/1.053, allocations: 3.938 kB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.001133/1.054, allocations: 266.4 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/1.054, allocations: 53.12 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/1.054, allocations: 137.5 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/1.054, allocations: 26.52 kB / 1.093 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.449e-05/1.054, allocations: 113.3 kB / 1.094 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/1.054, allocations: 19.98 kB / 1.094 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/1.054, allocations: 23.73 kB / 1.094 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.532e-05/1.054, allocations: 321.1 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003297/1.055, allocations: 73.58 kB / 1.094 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/1.055, allocations: 96.89 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006358/1.056, allocations: 164.6 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/1.056, allocations: 0.9688 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007297/1.056, allocations: 201.8 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/1.057, allocations: 5.25 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.057, allocations: 5.703 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.496e-05/1.057, allocations: 4.75 kB / 1.094 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/1.057, allocations: 39.97 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/1.057, allocations: 1.469 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/1.057, allocations: 29.02 kB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/1.057, allocations: 8.016 kB / 1.094 GB, free: 1.473 MB / 0.8575 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.0001186/1.057, allocations: 119.4 kB / 1.095 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/1.057, allocations: 8.438 kB / 1.095 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008442/1.058, allocations: 203.7 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/1.058, allocations: 4.812 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.058, allocations: 4.734 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/1.058, allocations: 1.156 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/1.059, allocations: 228.6 kB / 1.095 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/1.059, allocations: 7.922 kB / 1.095 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/1.059, allocations: 37.02 kB / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/1.059, allocations: 0 / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/1.059, allocations: 6.5 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/1.059, allocations: 0.875 kB / 1.095 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.059, allocations: 4 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007291/1.06, allocations: 278.7 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/1.06, allocations: 88.64 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.388e-05/1.06, allocations: 9.094 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003071/1.06, allocations: 32.27 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.812e-05/1.06, allocations: 4.562 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/1.06, allocations: 11.91 kB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.297e-05/1.06, allocations: 106.1 kB / 1.096 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.06, allocations: 0 / 1.096 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002958/1.06, allocations: 31.47 kB / 1.096 GB, free: 0.6562 MB / 0.8575 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.0001793/1.061, allocations: 102.3 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007722/1.061, allocations: 168.5 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.061, allocations: 1 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003413/1.062, allocations: 83.98 kB / 1.096 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003707/1.062, allocations: 5.328 kB / 1.096 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007986/1.063, allocations: 255.1 kB / 1.096 GB, free: 340 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/1.063, allocations: 0.703 MB / 1.097 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001047/1.063, allocations: 15.92 kB / 1.097 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.424e-05/1.063, allocations: 13.36 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of SimCode: time 4.51e-07/1.063, allocations: 1.406 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of Templates: time 0.005461/1.069, allocations: 1.507 MB / 1.098 GB, free: 15.49 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothBlocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches