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 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.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.",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.",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.001497/0.001497, allocations: 100.1 kB / 15.88 MB, free: 12 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.001543/0.001544, allocations: 199.5 kB / 16.79 MB, free: 6.809 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.397/1.397, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.861/2.861, allocations: 461.8 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002179/0.00218, allocations: 70.62 kB / 0.8991 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3363, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002181/0.3385, allocations: 0.8879 MB / 1.054 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.3399, allocations: 1.026 MB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.368e-05/0.34, allocations: 4 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.3401, allocations: 7.875 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.918e-05/0.3402, allocations: 19.86 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003178/0.3405, allocations: 67.86 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.3407, allocations: 111.7 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.3408, allocations: 53.38 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.303e-05/0.3409, allocations: 51.77 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.449e-05/0.341, allocations: 63.73 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.424e-05/0.341, allocations: 4 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.3412, allocations: 51.97 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.539e-05/0.3412, allocations: 35.91 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.3413, allocations: 51.59 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.3415, allocations: 136 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3415, allocations: 0 / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.485e-06/0.3415, allocations: 0 / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.3415, allocations: 7.938 kB / 1.055 GB, free: 5.719 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008275/0.3424, allocations: 472.6 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3424, allocations: 11.97 kB / 1.056 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.3425, allocations: 16.75 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.3427, allocations: 212.7 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.3428, allocations: 8.375 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.3428, allocations: 8.375 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005604/0.3433, allocations: 182 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.3434, allocations: 192 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.3434, allocations: 3.938 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/0.3434, allocations: 15.98 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007046/0.3441, allocations: 203.7 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009614/0.3451, allocations: 456.4 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004248/0.3456, allocations: 142.5 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000391/0.346, allocations: 132.7 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.346, allocations: 0 / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.346, allocations: 38.56 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.346, allocations: 0 / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001292/0.3473, allocations: 401.2 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.3474, allocations: 51.41 kB / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.3475, allocations: 156.8 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.3475, allocations: 29.7 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.395e-05/0.3476, allocations: 108.4 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.3477, allocations: 51.2 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.3477, allocations: 25.7 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.3479, allocations: 326.8 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003672/0.3482, allocations: 111.9 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.3486, allocations: 111.9 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007081/0.3493, allocations: 242.8 kB / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3493, allocations: 0 / 1.059 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007831/0.3501, allocations: 285.3 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3501, allocations: 5.562 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.3502, allocations: 0 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3502, allocations: 0 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.3504, allocations: 39.95 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.3504, allocations: 0 / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.3506, allocations: 39.8 kB / 1.059 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.3507, allocations: 4 kB / 1.059 GB, free: 1.688 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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 0.0001315/0.3508, allocations: 125.8 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.718e-05/0.3508, allocations: 11.81 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.3509, allocations: 20.84 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/0.3509, allocations: 11.98 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3509, allocations: 0 / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3509, allocations: 3.938 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.3512, allocations: 225.5 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3512, allocations: 0 / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.3514, allocations: 35.95 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3515, allocations: 0 / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.3515, allocations: 0 / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.3515, allocations: 4 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3515, allocations: 3.938 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008438/0.3523, allocations: 385.2 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.954e-05/0.3524, allocations: 88.95 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.27e-05/0.3524, allocations: 4 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.3526, allocations: 27.95 kB / 1.06 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.62e-05/0.3527, allocations: 19.86 kB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.3527, allocations: 7.984 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.719e-05/0.3528, allocations: 109.9 kB / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3528, allocations: 0 / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002974/0.3531, allocations: 35.91 kB / 1.06 GB, free: 0.5 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 (7): * Single equations (assignments): 5 * Array equations: 2 * 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.0002223/0.3534, allocations: 123.2 kB / 1.06 GB, free: 380 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008136/0.3542, allocations: 255.8 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.3542, allocations: 3.938 kB / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.3546, allocations: 135.9 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.3551, allocations: 15.98 kB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006816/0.3557, allocations: 406.2 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3561, allocations: 0.7238 MB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.202e-05/0.3562, allocations: 11.44 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3562, allocations: 4 kB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of Templates: time 0.003822/0.36, allocations: 1.872 MB / 1.064 GB, free: 12.92 MB / 0.8262 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