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 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.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.00118/0.00118, allocations: 108.4 kB / 16.37 MB, free: 6.465 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.001178/0.001178, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.205/1.205, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.244/2.244, allocations: 442.5 MB / 0.7165 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 66.67 kB / 0.8773 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2709, allocations: 153 MB / 1.027 GB, free: 2.141 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002369/0.2733, allocations: 1.465 MB / 1.028 GB, free: 0.6719 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007721/0.2741, allocations: 0.5694 MB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.694e-05/0.2742, allocations: 0 / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.2742, allocations: 0 / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.444e-05/0.2742, allocations: 3.938 kB / 1.029 GB, free: 92 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.2745, allocations: 51.81 kB / 1.029 GB, free: 40 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 5.862e-05/0.2746, allocations: 23.94 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 8.343e-05/0.2746, allocations: 11.98 kB / 1.029 GB, free: 4 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.542e-05/0.2747, allocations: 19.86 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.731e-05/0.2748, allocations: 11.92 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.2748, allocations: 4 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.2749, allocations: 55.95 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.2749, allocations: 0 / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.387e-05/0.275, allocations: 19.86 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.2751, allocations: 63.86 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2751, allocations: 4 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2751, allocations: 0 / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.2751, allocations: 0 / 1.029 GB, free: 15.83 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003828/0.2755, allocations: 351.4 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.2756, allocations: 8.031 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.2756, allocations: 4.844 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.2757, allocations: 168.4 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.2757, allocations: 384 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.2757, allocations: 384 / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.2759, allocations: 53.94 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.2759, allocations: 4 kB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-06/0.2759, allocations: 0 / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.2759, allocations: 0 / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.186e-05/0.276, allocations: 19.98 kB / 1.03 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002839/0.2763, allocations: 256.8 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.878e-05/0.2764, allocations: 46.48 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.772e-05/0.2764, allocations: 8.922 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000722/0.2771, allocations: 477.4 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.2772, allocations: 34.56 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.2772, allocations: 0 / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002101/0.2774, allocations: 69.58 kB / 1.03 GB, free: 14.1 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.2774, allocations: 51.41 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.704e-05/0.2775, allocations: 109.8 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.2775, allocations: 25.7 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.244e-05/0.2776, allocations: 92.08 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.2776, allocations: 7.844 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.2776, allocations: 17.84 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.2777, allocations: 318.8 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.853e-05/0.2778, allocations: 11.94 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.23e-05/0.2778, allocations: 15.98 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.01e-05/0.2779, allocations: 28.78 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2779, allocations: 0 / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001041/0.278, allocations: 53.75 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.278, allocations: 8 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.278, allocations: 0 / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.2781, allocations: 0 / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.411e-05/0.2781, allocations: 11.92 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.2781, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.867e-05/0.2782, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.2782, allocations: 4 kB / 1.031 GB, free: 13.3 MB / 0.8106 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.265e-05/0.2783, allocations: 121.8 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.2783, allocations: 7.906 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.2784, allocations: 61.2 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2784, allocations: 0 / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2784, allocations: 0 / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.2785, allocations: 0 / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.2786, allocations: 169.6 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2786, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.99e-05/0.2787, allocations: 4 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.2787, allocations: 8.016 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.2787, allocations: 0 / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2787, allocations: 3.938 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2787, allocations: 0 / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001517/0.2788, allocations: 151.5 kB / 1.032 GB, free: 12.7 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.024e-05/0.2789, allocations: 81.02 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.2789, allocations: 3.984 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.781e-05/0.279, allocations: 8.031 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.432e-05/0.279, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.279, allocations: 0 / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.479e-05/0.279, allocations: 91.27 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.452e-06/0.2791, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002137/0.2793, allocations: 15.94 kB / 1.032 GB, free: 12.49 MB / 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 (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.0001328/0.2794, allocations: 111.2 kB / 1.032 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001136/0.2795, allocations: 31.92 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.2795, allocations: 0 / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.818e-05/0.2796, allocations: 12 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001844/0.2798, allocations: 7.922 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002377/0.28, allocations: 122.7 kB / 1.032 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.2802, allocations: 0.6768 MB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.286e-05/0.2803, allocations: 16.06 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.527e-05/0.2803, allocations: 7.438 kB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2803, allocations: 0 / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of Templates: time 0.002292/0.2826, allocations: 0.6688 MB / 1.033 GB, free: 10.77 MB / 0.8106 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches