Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 78.02 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 160.3 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.798/2.798, allocations: 377.9 MB / 0.6228 GB, free: 12.55 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.|sorAsc.yIdx.1.|sorAsc.yIdx.2.|sorAsc.yIdx.3.|sorAsc.yIdx.4.|sorAsc.yIdx.5.|sorDes.yIdx.1.|sorDes.yIdx.2.|sorDes.yIdx.3.|sorDes.yIdx.4.|sorDes.yIdx.5.",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.|sorAsc.yIdx.1.|sorAsc.yIdx.2.|sorAsc.yIdx.3.|sorAsc.yIdx.4.|sorAsc.yIdx.5.|sorDes.yIdx.1.|sorDes.yIdx.2.|sorDes.yIdx.3.|sorDes.yIdx.4.|sorDes.yIdx.5.",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 63.91 kB / 0.982 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9331/0.9354, allocations: 176.1 MB / 1.154 GB, free: 33.29 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001959/0.9373, allocations: 0.7999 MB / 1.155 GB, free: 32.79 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.9386, allocations: 1.027 MB / 1.156 GB, free: 32.04 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.069e-05/0.9386, allocations: 7.938 kB / 1.156 GB, free: 32.03 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.9387, allocations: 13.66 kB / 1.156 GB, free: 32.02 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.967e-05/0.9388, allocations: 21.61 kB / 1.156 GB, free: 32 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004218/0.9392, allocations: 95.53 kB / 1.156 GB, free: 31.96 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.9394, allocations: 121.5 kB / 1.156 GB, free: 31.91 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.9395, allocations: 35.19 kB / 1.156 GB, free: 31.89 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 7.057e-05/0.9396, allocations: 54.16 kB / 1.156 GB, free: 31.87 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 7.261e-05/0.9397, allocations: 51.28 kB / 1.156 GB, free: 31.85 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.9397, allocations: 19.33 kB / 1.156 GB, free: 31.84 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.9398, allocations: 90.53 kB / 1.156 GB, free: 31.82 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 5.365e-05/0.9399, allocations: 38.33 kB / 1.156 GB, free: 31.8 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 4.906e-05/0.9399, allocations: 53.72 kB / 1.156 GB, free: 31.76 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002369/0.9402, allocations: 213.3 kB / 1.157 GB, free: 31.68 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.9402, allocations: 2.594 kB / 1.157 GB, free: 31.68 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.793e-06/0.9402, allocations: 0 / 1.157 GB, free: 31.68 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.9402, allocations: 0 / 1.157 GB, free: 31.68 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0007319/0.9409, allocations: 427.7 kB / 1.157 GB, free: 31.34 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.941, allocations: 8.969 kB / 1.157 GB, free: 31.34 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.941, allocations: 18.47 kB / 1.157 GB, free: 31.33 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.9412, allocations: 158.9 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.9412, allocations: 3.25 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.9412, allocations: 10.16 kB / 1.157 GB, free: 31.17 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005152/0.9417, allocations: 209 kB / 1.157 GB, free: 31.09 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.9417, allocations: 192 / 1.157 GB, free: 31.09 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.9418, allocations: 3.938 kB / 1.157 GB, free: 31.09 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.9418, allocations: 2.812 kB / 1.157 GB, free: 31.09 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006752/0.9424, allocations: 223.3 kB / 1.158 GB, free: 31.05 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007866/0.9432, allocations: 454.3 kB / 1.158 GB, free: 30.76 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.9436, allocations: 157.2 kB / 1.158 GB, free: 30.71 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003564/0.944, allocations: 133.5 kB / 1.158 GB, free: 30.68 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.944, allocations: 5.219 kB / 1.158 GB, free: 30.68 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.9441, allocations: 37.19 kB / 1.158 GB, free: 30.63 MB / 1.076 GB Notification: Performance of pre-optimization done (n=25): time 1.172e-06/0.9441, allocations: 0 / 1.158 GB, free: 30.63 MB / 1.076 GB Notification: Performance of matching and sorting (n=25): time 0.0013/0.9454, allocations: 485.4 kB / 1.159 GB, free: 30.5 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.9454, allocations: 55.41 kB / 1.159 GB, free: 30.44 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.944e-05/0.9455, allocations: 150.9 kB / 1.159 GB, free: 30.32 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.9455, allocations: 29.7 kB / 1.159 GB, free: 30.29 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.9455, allocations: 109.9 kB / 1.159 GB, free: 30.18 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.9456, allocations: 74.64 kB / 1.159 GB, free: 30.12 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.9456, allocations: 32.94 kB / 1.159 GB, free: 30.1 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.604e-05/0.9457, allocations: 331.6 kB / 1.16 GB, free: 29.78 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.9461, allocations: 130.1 kB / 1.16 GB, free: 29.76 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003523/0.9464, allocations: 130.2 kB / 1.16 GB, free: 29.73 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007208/0.9471, allocations: 300.6 kB / 1.16 GB, free: 29.66 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9471, allocations: 7.938 kB / 1.16 GB, free: 29.65 MB / 1.076 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007846/0.9479, allocations: 328.9 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.9479, allocations: 9.875 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.948, allocations: 0 / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.948, allocations: 3.031 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.9482, allocations: 38.95 kB / 1.16 GB, free: 29.55 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.9482, allocations: 3.938 kB / 1.16 GB, free: 29.54 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.9484, allocations: 38.09 kB / 1.16 GB, free: 29.53 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.9484, allocations: 3 kB / 1.16 GB, free: 29.53 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001022/0.9485, allocations: 145.8 kB / 1.161 GB, free: 29.4 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.9485, allocations: 13.69 kB / 1.161 GB, free: 29.39 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008667/0.9494, allocations: 358.8 kB / 1.161 GB, free: 29.28 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.9494, allocations: 6.188 kB / 1.161 GB, free: 29.28 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.9494, allocations: 0 / 1.161 GB, free: 29.28 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.9494, allocations: 7.922 kB / 1.161 GB, free: 29.27 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.9496, allocations: 192.6 kB / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.9496, allocations: 2.875 kB / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.9498, allocations: 36.88 kB / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.9498, allocations: 4 kB / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.9498, allocations: 0 / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.9498, allocations: 0 / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.9498, allocations: 4 kB / 1.161 GB, free: 29.11 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008106/0.9506, allocations: 443.1 kB / 1.162 GB, free: 28.89 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.9507, allocations: 21.66 kB / 1.162 GB, free: 28.88 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.9507, allocations: 0 / 1.162 GB, free: 28.88 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.9509, allocations: 30.67 kB / 1.162 GB, free: 28.88 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.352e-05/0.951, allocations: 14.31 kB / 1.162 GB, free: 28.87 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.951, allocations: 2.719 kB / 1.162 GB, free: 28.87 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.247e-05/0.951, allocations: 117.5 kB / 1.162 GB, free: 28.78 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.951, allocations: 4 kB / 1.162 GB, free: 28.78 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003203/0.9513, allocations: 40.86 kB / 1.162 GB, free: 28.77 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001923/0.9515, allocations: 122.4 kB / 1.162 GB, free: 28.68 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0008686/0.9524, allocations: 359.8 kB / 1.162 GB, free: 28.56 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9524, allocations: 0 / 1.162 GB, free: 28.56 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004221/0.9528, allocations: 225.4 kB / 1.163 GB, free: 28.46 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.9531, allocations: 17.88 kB / 1.163 GB, free: 28.46 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005465/0.9537, allocations: 362.9 kB / 1.163 GB, free: 28.23 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.438e-05/0.9538, allocations: 124.4 kB / 1.163 GB, free: 28.16 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.51e-05/0.9539, allocations: 16.72 kB / 1.163 GB, free: 28.15 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.897e-05/0.9539, allocations: 15.72 kB / 1.163 GB, free: 28.14 MB / 1.076 GB Notification: Performance of SimCode: time 3.01e-07/0.9539, allocations: 3.938 kB / 1.163 GB, free: 28.14 MB / 1.076 GB Notification: Performance of Templates: time 0.00503/0.9589, allocations: 2.152 MB / 1.165 GB, free: 27.92 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.965454184100963]