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.001035/0.001035, allocations: 92.16 kB / 16.02 MB, free: 76 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.001404/0.001404, allocations: 182.9 kB / 16.92 MB, free: 6.926 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.413/1.413, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.748/2.748, allocations: 462.6 MB / 0.737 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.000361, allocations: 15.56 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3082, allocations: 159.6 MB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001043/0.3093, allocations: 0.5468 MB / 1.06 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3108, allocations: 1.018 MB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.872e-05/0.3109, allocations: 0 / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.311, allocations: 3.938 kB / 1.061 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.963e-05/0.3111, allocations: 23.84 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003479/0.3114, allocations: 71.8 kB / 1.061 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.3116, allocations: 115.6 kB / 1.061 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.3118, allocations: 57.36 kB / 1.061 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.307e-05/0.3119, allocations: 35.84 kB / 1.061 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.715e-05/0.3119, allocations: 51.77 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.312, allocations: 4 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.3121, allocations: 55.89 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.827e-05/0.3122, allocations: 23.92 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.715e-05/0.3122, allocations: 77.3 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.3124, allocations: 135.9 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3124, allocations: 4 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3124, allocations: 0 / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.3125, allocations: 0 / 1.061 GB, free: 2.742 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.000861/0.3133, allocations: 479 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3134, allocations: 15.97 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.3134, allocations: 12.75 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.3136, allocations: 209.3 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.3137, allocations: 8.375 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.3137, allocations: 8.375 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.3143, allocations: 215.7 kB / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.3144, allocations: 192 / 1.062 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.3144, allocations: 11.92 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.77e-05/0.3144, allocations: 12 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000804/0.3152, allocations: 259.8 kB / 1.063 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/0.3162, allocations: 480.3 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004666/0.3167, allocations: 170.4 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004339/0.3172, allocations: 156.7 kB / 1.063 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.3172, allocations: 4 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3172, allocations: 38.55 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.3172, allocations: 4 kB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001423/0.3187, allocations: 477.4 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.3187, allocations: 51.41 kB / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.3188, allocations: 145 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3189, allocations: 37.69 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/0.319, allocations: 108.3 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.058e-05/0.319, allocations: 51.2 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.319, allocations: 13.72 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3192, allocations: 326.8 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/0.3196, allocations: 135.9 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.32, allocations: 143.9 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/0.3208, allocations: 294.5 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3209, allocations: 3.938 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009073/0.3218, allocations: 344.1 kB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3218, allocations: 4 kB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3218, allocations: 0 / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.3218, allocations: 0 / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.3221, allocations: 55.89 kB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.3221, allocations: 0 / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.3223, allocations: 51.8 kB / 1.066 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.3224, allocations: 4 kB / 1.066 GB, free: 14.28 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: 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.0001009/0.3225, allocations: 125.8 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.689e-05/0.3225, allocations: 11.81 kB / 1.066 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.08e-05/0.3226, allocations: 20.83 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.693e-05/0.3226, allocations: 11.98 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3226, allocations: 0 / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3226, allocations: 3.938 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/0.3229, allocations: 225.5 kB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3229, allocations: 4 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.3231, allocations: 51.95 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.3231, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.3232, allocations: 3.984 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.3232, allocations: 0 / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.3232, allocations: 7.938 kB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009567/0.3241, allocations: 435 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.164e-05/0.3242, allocations: 92.95 kB / 1.067 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.3242, allocations: 0 / 1.067 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.3245, allocations: 43.95 kB / 1.067 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.3245, allocations: 19.91 kB / 1.067 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.3246, allocations: 4 kB / 1.067 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.23e-05/0.3246, allocations: 103.3 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3246, allocations: 4 kB / 1.067 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003136/0.325, allocations: 47.89 kB / 1.067 GB, free: 12.99 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: 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.0002509/0.3252, allocations: 119.2 kB / 1.067 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009298/0.3262, allocations: 308 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3262, allocations: 0 / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004637/0.3267, allocations: 160 kB / 1.067 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.327, allocations: 17.52 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000622/0.3277, allocations: 415.6 kB / 1.068 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.3279, allocations: 0.72 MB / 1.068 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.551e-05/0.328, allocations: 15.42 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.328, allocations: 7.938 kB / 1.068 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of Templates: time 0.003936/0.332, allocations: 1.853 MB / 1.07 GB, free: 9.348 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