Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001111/0.001112, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.01/0.01, allocations: 171.6 kB / 16.27 MB, free: 6.328 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.614/1.614, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.067/3.067, allocations: 470.6 MB / 0.7442 GB, free: 8.805 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003833, allocations: 16.62 kB / 0.9123 GB, free: 34.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3606, allocations: 161.4 MB / 1.07 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001301/0.3619, allocations: 0.5526 MB / 1.07 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.3635, allocations: 1.026 MB / 1.071 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.748e-05/0.3635, allocations: 4 kB / 1.071 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.3637, allocations: 11.92 kB / 1.071 GB, free: 9.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.405e-05/0.3637, allocations: 15.84 kB / 1.071 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.3641, allocations: 67.88 kB / 1.072 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.3643, allocations: 123.6 kB / 1.072 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.3645, allocations: 53.06 kB / 1.072 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.999e-05/0.3645, allocations: 39.84 kB / 1.072 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.309e-05/0.3646, allocations: 43.77 kB / 1.072 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.008e-05/0.3647, allocations: 4 kB / 1.072 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.3648, allocations: 59.89 kB / 1.072 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.3649, allocations: 31.86 kB / 1.072 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.109e-05/0.365, allocations: 77.3 kB / 1.072 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002747/0.3652, allocations: 199.6 kB / 1.072 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3652, allocations: 0 / 1.072 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3653, allocations: 0 / 1.072 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.3653, allocations: 0 / 1.072 GB, free: 9.047 MB / 0.8262 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.001082/0.3664, allocations: 0.4911 MB / 1.073 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.472e-05/0.3664, allocations: 12.02 kB / 1.073 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.3665, allocations: 20.69 kB / 1.073 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.3669, allocations: 210.4 kB / 1.073 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.3669, allocations: 12.38 kB / 1.073 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.3669, allocations: 4.375 kB / 1.073 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008857/0.3678, allocations: 226.1 kB / 1.073 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.3679, allocations: 192 / 1.073 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.239e-05/0.3679, allocations: 11.94 kB / 1.073 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.3679, allocations: 0 / 1.073 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008619/0.3688, allocations: 287.6 kB / 1.073 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.37, allocations: 0.5432 MB / 1.074 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006167/0.3706, allocations: 198.5 kB / 1.074 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.3711, allocations: 180.8 kB / 1.074 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.119e-05/0.3712, allocations: 4 kB / 1.074 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.3712, allocations: 42.55 kB / 1.074 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.3712, allocations: 0 / 1.074 GB, free: 6.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001617/0.3728, allocations: 0.5453 MB / 1.075 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.3729, allocations: 55.34 kB / 1.075 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.3731, allocations: 154.2 kB / 1.075 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.3731, allocations: 25.7 kB / 1.075 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.223e-05/0.3732, allocations: 108.5 kB / 1.075 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.575e-05/0.3733, allocations: 67.08 kB / 1.075 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.674e-05/0.3733, allocations: 25.7 kB / 1.075 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001745/0.3735, allocations: 330.8 kB / 1.076 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.374, allocations: 155.9 kB / 1.076 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/0.3745, allocations: 163.9 kB / 1.076 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009611/0.3755, allocations: 352.1 kB / 1.076 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3755, allocations: 3.938 kB / 1.076 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001226/0.3767, allocations: 393.1 kB / 1.077 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.3768, allocations: 7.984 kB / 1.077 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.3768, allocations: 0 / 1.077 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.3768, allocations: 4 kB / 1.077 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.3771, allocations: 47.95 kB / 1.077 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.3771, allocations: 3.938 kB / 1.077 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.3774, allocations: 55.8 kB / 1.077 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.3775, allocations: 8 kB / 1.077 GB, free: 4.141 MB / 0.8262 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.0002294/0.3778, allocations: 133.8 kB / 1.077 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.3778, allocations: 11.81 kB / 1.077 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.379, allocations: 424.1 kB / 1.077 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.379, allocations: 4 kB / 1.077 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.3791, allocations: 3.938 kB / 1.077 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.3791, allocations: 0 / 1.077 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004794/0.3796, allocations: 277.7 kB / 1.078 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.3796, allocations: 3.938 kB / 1.078 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002428/0.3798, allocations: 55.95 kB / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3798, allocations: 0 / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.3798, allocations: 0 / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3799, allocations: 0 / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/0.3799, allocations: 7.938 kB / 1.078 GB, free: 3.176 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.3809, allocations: 494.7 kB / 1.078 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.381, allocations: 92.91 kB / 1.078 GB, free: 2.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.3811, allocations: 4 kB / 1.078 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.3813, allocations: 43.95 kB / 1.078 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-05/0.3814, allocations: 15.92 kB / 1.078 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.3814, allocations: 4 kB / 1.078 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001081/0.3815, allocations: 113.9 kB / 1.078 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3815, allocations: 0 / 1.078 GB, free: 2.395 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003317/0.3819, allocations: 43.94 kB / 1.078 GB, free: 2.352 MB / 0.8262 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.0003135/0.3822, allocations: 124.4 kB / 1.079 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001149/0.3834, allocations: 435.1 kB / 1.079 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3834, allocations: 0 / 1.079 GB, free: 1.785 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00054/0.3839, allocations: 267.3 kB / 1.079 GB, free: 1.512 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.3843, allocations: 21.09 kB / 1.079 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007513/0.385, allocations: 406.6 kB / 1.08 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000578/0.3856, allocations: 0.7393 MB / 1.08 GB, free: 308 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.207e-05/0.3857, allocations: 11.98 kB / 1.08 GB, free: 296 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.3858, allocations: 11.44 kB / 1.08 GB, free: 284 kB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.3858, allocations: 0 / 1.08 GB, free: 284 kB / 0.8262 GB Notification: Performance of Templates: time 0.005723/0.3915, allocations: 1.69 MB / 1.082 GB, free: 14.6 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches