Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.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.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001733/0.001739, allocations: 104.9 kB / 16.41 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.002066/0.002067, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.703/2.703, allocations: 472.7 MB / 0.746 GB, free: 460 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001452, allocations: 71.89 kB / 1.07 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9145/0.916, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002528/0.9185, allocations: 0.8329 MB / 1.227 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.9202, allocations: 1.006 MB / 1.228 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.9203, allocations: 7.938 kB / 1.228 GB, free: 11.64 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.9205, allocations: 15.86 kB / 1.228 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.473e-05/0.9206, allocations: 19.8 kB / 1.228 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004852/0.9211, allocations: 83.83 kB / 1.228 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.9213, allocations: 131.6 kB / 1.228 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000197/0.9215, allocations: 53.09 kB / 1.229 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.9216, allocations: 51.83 kB / 1.229 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.304e-05/0.9217, allocations: 63.75 kB / 1.229 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.9218, allocations: 8 kB / 1.229 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.922, allocations: 87.86 kB / 1.229 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.922, allocations: 43.84 kB / 1.229 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.291e-05/0.9221, allocations: 59.59 kB / 1.229 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003687/0.9225, allocations: 219.6 kB / 1.229 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.9225, allocations: 4 kB / 1.229 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.304e-06/0.9225, allocations: 0 / 1.229 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.081e-05/0.9225, allocations: 0 / 1.229 GB, free: 10.82 MB / 0.9512 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.0009626/0.9235, allocations: 498.5 kB / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.9236, allocations: 8.031 kB / 1.23 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.9236, allocations: 20.8 kB / 1.23 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003336/0.924, allocations: 212.1 kB / 1.23 GB, free: 10 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.924, allocations: 12.31 kB / 1.23 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.924, allocations: 4.375 kB / 1.23 GB, free: 9.988 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000595/0.9246, allocations: 213.8 kB / 1.23 GB, free: 9.773 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.9247, allocations: 4.172 kB / 1.23 GB, free: 9.77 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.099e-05/0.9247, allocations: 11.94 kB / 1.23 GB, free: 9.758 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.9247, allocations: 4 kB / 1.23 GB, free: 9.754 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006976/0.9254, allocations: 219.8 kB / 1.23 GB, free: 9.539 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009758/0.9264, allocations: 0.5198 MB / 1.231 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.9268, allocations: 174.4 kB / 1.231 GB, free: 8.789 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003743/0.9272, allocations: 156.7 kB / 1.231 GB, free: 8.633 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.82e-05/0.9273, allocations: 8 kB / 1.231 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.9273, allocations: 34.56 kB / 1.231 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 2.255e-06/0.9273, allocations: 0 / 1.231 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001356/0.9287, allocations: 479.6 kB / 1.231 GB, free: 8.109 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.9287, allocations: 51.41 kB / 1.232 GB, free: 8.047 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.9289, allocations: 156 kB / 1.232 GB, free: 7.887 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.9289, allocations: 29.7 kB / 1.232 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.866e-05/0.929, allocations: 108.6 kB / 1.232 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.809e-05/0.9291, allocations: 75.39 kB / 1.232 GB, free: 7.668 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-05/0.9292, allocations: 33.7 kB / 1.232 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.9294, allocations: 326.8 kB / 1.232 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004568/0.9298, allocations: 132.1 kB / 1.232 GB, free: 7.172 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.9302, allocations: 135.8 kB / 1.232 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008091/0.931, allocations: 307.8 kB / 1.233 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.9311, allocations: 0 / 1.233 GB, free: 6.738 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008052/0.9319, allocations: 329.3 kB / 1.233 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.9319, allocations: 5.25 kB / 1.233 GB, free: 6.406 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.9319, allocations: 7.984 kB / 1.233 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.9319, allocations: 0 / 1.233 GB, free: 6.398 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.9322, allocations: 35.95 kB / 1.233 GB, free: 6.363 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.9322, allocations: 3.938 kB / 1.233 GB, free: 6.359 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.9324, allocations: 39.84 kB / 1.233 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.9324, allocations: 4 kB / 1.233 GB, free: 6.316 MB / 0.9512 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.0001442/0.9325, allocations: 144.2 kB / 1.233 GB, free: 6.172 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.9326, allocations: 15.84 kB / 1.233 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009025/0.9335, allocations: 354.6 kB / 1.234 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.9335, allocations: 0 / 1.234 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.9335, allocations: 4 kB / 1.234 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.584e-05/0.9336, allocations: 104.9 kB / 1.234 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.9336, allocations: 0 / 1.234 GB, free: 5.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.9338, allocations: 31.95 kB / 1.234 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.212e-05/0.9339, allocations: 11.98 kB / 1.234 GB, free: 5.633 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009985/0.9349, allocations: 444.5 kB / 1.234 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008862/0.9358, allocations: 0.511 MB / 1.235 GB, free: 4.664 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003911/0.9362, allocations: 159.9 kB / 1.235 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001433/0.9364, allocations: 108.3 kB / 1.235 GB, free: 4.402 MB / 0.9512 GB Notification: Performance of Backend: time 7.72e-07/0.9364, allocations: 0 / 1.235 GB, free: 4.402 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009367/0.9373, allocations: 345.5 kB / 1.235 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0008435/0.9382, allocations: 0.7887 MB / 1.236 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of Templates: time 0.006536/0.9447, allocations: 2.459 MB / 1.239 GB, free: 0.7695 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches