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.001504/0.001504, allocations: 102.6 kB / 16.45 MB, free: 6.449 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.001813/0.001813, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.609/1.609, allocations: 230.6 MB / 252.8 MB, free: 9.129 MB / 206.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 3.326/3.326, allocations: 0.4899 GB / 0.7915 GB, free: 33.45 MB / 0.6231 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.002102/0.002102, allocations: 69.34 kB / 1.149 GB, free: 26.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4087, allocations: 176.1 MB / 1.321 GB, free: 2.773 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002306/0.411, allocations: 0.8455 MB / 1.322 GB, free: 1.926 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001554/0.4126, allocations: 1.038 MB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.986e-05/0.4126, allocations: 7.938 kB / 1.323 GB, free: 0.8672 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.4128, allocations: 15.86 kB / 1.323 GB, free: 0.8516 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.568e-05/0.4128, allocations: 19.8 kB / 1.323 GB, free: 0.832 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.4133, allocations: 87.83 kB / 1.323 GB, free: 0.7461 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.4135, allocations: 123.6 kB / 1.323 GB, free: 0.625 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.4136, allocations: 41.11 kB / 1.323 GB, free: 0.582 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.893e-05/0.4137, allocations: 51.83 kB / 1.323 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.4138, allocations: 67.73 kB / 1.324 GB, free: 476 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.452e-05/0.4139, allocations: 8 kB / 1.324 GB, free: 468 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.414, allocations: 91.84 kB / 1.324 GB, free: 376 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 6.426e-05/0.4141, allocations: 47.78 kB / 1.324 GB, free: 328 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.639e-05/0.4142, allocations: 59.55 kB / 1.324 GB, free: 268 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0003151/0.4145, allocations: 215 kB / 1.324 GB, free: 52 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.4145, allocations: 0 / 1.324 GB, free: 52 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4145, allocations: 4 kB / 1.324 GB, free: 48 kB / 1.014 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.4145, allocations: 0 / 1.324 GB, free: 48 kB / 1.014 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.001016/0.4155, allocations: 0.4908 MB / 1.324 GB, free: 15.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.4156, allocations: 15.98 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.11e-05/0.4156, allocations: 12.84 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.4159, allocations: 205.1 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.4159, allocations: 12.38 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.4159, allocations: 4.375 kB / 1.325 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006178/0.4165, allocations: 202 kB / 1.325 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.4165, allocations: 4.188 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.4165, allocations: 7.938 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4166, allocations: 4 kB / 1.325 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008106/0.4174, allocations: 223.5 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.4184, allocations: 0.5237 MB / 1.326 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.4189, allocations: 158.4 kB / 1.326 GB, free: 14.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004218/0.4193, allocations: 140.8 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.774e-05/0.4194, allocations: 7.938 kB / 1.326 GB, free: 13.9 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.4194, allocations: 38.55 kB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.4194, allocations: 0 / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of matching and sorting (n=25): time 0.001569/0.421, allocations: 475 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.999e-05/0.421, allocations: 55.34 kB / 1.326 GB, free: 13.32 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/0.4212, allocations: 148.3 kB / 1.327 GB, free: 13.16 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.4212, allocations: 29.7 kB / 1.327 GB, free: 13.13 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.322e-05/0.4213, allocations: 116.5 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.114e-05/0.4214, allocations: 71.48 kB / 1.327 GB, free: 12.94 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.977e-05/0.4214, allocations: 33.7 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.4216, allocations: 326.8 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004323/0.422, allocations: 128.1 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/0.4225, allocations: 141.8 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008773/0.4234, allocations: 306.3 kB / 1.328 GB, free: 12.01 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.4234, allocations: 0 / 1.328 GB, free: 12.01 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001009/0.4244, allocations: 335.4 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.4244, allocations: 4 kB / 1.328 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/0.4244, allocations: 4 kB / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.31e-05/0.4244, allocations: 0 / 1.328 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002634/0.4247, allocations: 31.95 kB / 1.328 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.4247, allocations: 7.938 kB / 1.328 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.4249, allocations: 43.84 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.425, allocations: 7.938 kB / 1.328 GB, free: 11.58 MB / 1.029 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.000211/0.4252, allocations: 137.8 kB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.4252, allocations: 19.88 kB / 1.328 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.4263, allocations: 358.5 kB / 1.329 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.4264, allocations: 4 kB / 1.329 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.4264, allocations: 7.922 kB / 1.329 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.4264, allocations: 4 kB / 1.329 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003715/0.4268, allocations: 265.8 kB / 1.329 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.4268, allocations: 0 / 1.329 GB, free: 10.74 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002153/0.427, allocations: 35.95 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.427, allocations: 3.984 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.427, allocations: 0 / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.427, allocations: 0 / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.427, allocations: 3.938 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.428, allocations: 448.3 kB / 1.329 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.891e-05/0.4281, allocations: 96.95 kB / 1.329 GB, free: 10.13 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.4282, allocations: 4 kB / 1.329 GB, free: 10.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.4284, allocations: 27.95 kB / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.902e-05/0.4285, allocations: 15.92 kB / 1.329 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.4285, allocations: 4 kB / 1.329 GB, free: 10.08 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001004/0.4286, allocations: 109.1 kB / 1.33 GB, free: 9.973 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4286, allocations: 0 / 1.33 GB, free: 9.973 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000345/0.4289, allocations: 43.94 kB / 1.33 GB, free: 9.93 MB / 1.029 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.0003609/0.4293, allocations: 124.8 kB / 1.33 GB, free: 9.801 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.001078/0.4304, allocations: 371 kB / 1.33 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4304, allocations: 0 / 1.33 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005023/0.4309, allocations: 219.3 kB / 1.33 GB, free: 9.199 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.4312, allocations: 23.98 kB / 1.33 GB, free: 9.176 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007109/0.4319, allocations: 358.9 kB / 1.331 GB, free: 8.793 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.4323, allocations: 0.7314 MB / 1.331 GB, free: 8.035 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.537e-05/0.4324, allocations: 15.98 kB / 1.331 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.302e-05/0.4325, allocations: 15.44 kB / 1.331 GB, free: 8.004 MB / 1.029 GB Notification: Performance of SimCode: time 3.61e-07/0.4325, allocations: 0 / 1.331 GB, free: 8.004 MB / 1.029 GB Notification: Performance of Templates: time 0.006431/0.4389, allocations: 2.056 MB / 1.333 GB, free: 5.965 MB / 1.029 GB " [Timeout remaining time 300] 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 -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/jenkins/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: 9.736066636629403]