Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00125/0.001251, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 198.1 kB / 16.54 MB, free: 6.672 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.372/1.372, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.855/2.855, allocations: 472.7 MB / 0.7452 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 67.52 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2745, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002532/0.277, allocations: 1.463 MB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000885/0.2779, allocations: 0.5571 MB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.367e-05/0.278, allocations: 0 / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.037e-05/0.278, allocations: 3.938 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.368e-05/0.2781, allocations: 3.938 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.2783, allocations: 59.81 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.769e-05/0.2784, allocations: 23.92 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.554e-05/0.2785, allocations: 8 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.389e-05/0.2786, allocations: 7.938 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.814e-05/0.2786, allocations: 15.92 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.2787, allocations: 4 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.2788, allocations: 59.94 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.2788, allocations: 7.938 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.2788, allocations: 19.92 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.279, allocations: 59.86 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.279, allocations: 0 / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.279, allocations: 0 / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.884e-06/0.279, allocations: 0 / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004021/0.2794, allocations: 347.6 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.2795, allocations: 11.97 kB / 1.071 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.2795, allocations: 8.844 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.881e-05/0.2796, allocations: 164.4 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.2796, allocations: 8.375 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.2796, allocations: 384 / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.2798, allocations: 49.98 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.2798, allocations: 0 / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.2798, allocations: 0 / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.2798, allocations: 0 / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.431e-05/0.2799, allocations: 19.98 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002842/0.2802, allocations: 268.7 kB / 1.071 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.288e-05/0.2803, allocations: 34.56 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.639e-05/0.2804, allocations: 12.92 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007821/0.2812, allocations: 481.4 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.2812, allocations: 34.56 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.2812, allocations: 0 / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002212/0.2814, allocations: 65.61 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.2815, allocations: 51.41 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.534e-05/0.2815, allocations: 109.8 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.2816, allocations: 25.7 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/0.2816, allocations: 88.27 kB / 1.072 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.2816, allocations: 3.906 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.158e-05/0.2816, allocations: 17.7 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.2817, allocations: 314.8 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.377e-05/0.2818, allocations: 8 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.597e-05/0.2818, allocations: 11.98 kB / 1.073 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.26e-05/0.2819, allocations: 36.84 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2819, allocations: 0 / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001222/0.2821, allocations: 57.62 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.2821, allocations: 4 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.2821, allocations: 0 / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.497e-06/0.2821, allocations: 0 / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.08e-05/0.2822, allocations: 7.984 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.2822, allocations: 3.938 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.445e-05/0.2822, allocations: 7.906 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.2823, allocations: 7.969 kB / 1.073 GB, free: 5.566 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 7.286e-05/0.2823, allocations: 119.3 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.2824, allocations: 0 / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.2825, allocations: 61.14 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2825, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2825, allocations: 0 / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2826, allocations: 3.984 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.2827, allocations: 165.6 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2827, allocations: 4.031 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.603e-05/0.2828, allocations: 7.984 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2828, allocations: 0 / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.2828, allocations: 0 / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2828, allocations: 4 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2828, allocations: 0 / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001498/0.2829, allocations: 147.5 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.283, allocations: 89 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.283, allocations: 4 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.155e-05/0.2831, allocations: 0 / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/0.2831, allocations: 3.938 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.2831, allocations: 4 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.38e-05/0.2832, allocations: 87.27 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.2832, allocations: 0 / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002433/0.2834, allocations: 16 kB / 1.073 GB, free: 4.762 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 (2): * Single equations (assignments): 2 * 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.0001451/0.2836, allocations: 119.8 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001316/0.2837, allocations: 23.98 kB / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2837, allocations: 0 / 1.073 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.2838, allocations: 15.98 kB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.284, allocations: 5.188 kB / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002697/0.2843, allocations: 130.5 kB / 1.074 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.2845, allocations: 0.6807 MB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.175e-05/0.2845, allocations: 4 kB / 1.074 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.841e-05/0.2845, allocations: 11.44 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2845, allocations: 0 / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of Templates: time 0.002628/0.2872, allocations: 0.6743 MB / 1.075 GB, free: 3.047 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches