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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001785/0.001785, allocations: 106.6 kB / 16.41 MB, free: 6.453 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.001981/0.001981, allocations: 192.2 kB / 17.34 MB, free: 5.719 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 / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.657/2.657, allocations: 461.9 MB / 0.7354 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001517, allocations: 63.91 kB / 1.055 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.058, allocations: 157.4 MB / 1.208 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002267/1.06, allocations: 0.8385 MB / 1.209 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001496/1.062, allocations: 1.018 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.622e-05/1.062, allocations: 4 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000122/1.062, allocations: 11.86 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.703e-05/1.062, allocations: 23.8 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004694/1.062, allocations: 87.77 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001783/1.063, allocations: 127.7 kB / 1.211 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/1.063, allocations: 49.09 kB / 1.211 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.996e-05/1.063, allocations: 59.77 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.794e-05/1.063, allocations: 55.77 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/1.063, allocations: 8 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/1.063, allocations: 91.91 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.241e-05/1.063, allocations: 43.83 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.759e-05/1.063, allocations: 63.59 kB / 1.211 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002977/1.064, allocations: 215 kB / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/1.064, allocations: 0 / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.546e-06/1.064, allocations: 0 / 1.211 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.394e-05/1.064, allocations: 7.938 kB / 1.211 GB, free: 10.86 MB / 0.9356 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.0009177/1.065, allocations: 484.6 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/1.065, allocations: 8.031 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/1.065, allocations: 20.75 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002147/1.065, allocations: 210.2 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/1.065, allocations: 4.375 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/1.065, allocations: 12.38 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000613/1.066, allocations: 206 kB / 1.212 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/1.066, allocations: 192 / 1.212 GB, free: 9.84 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.405e-05/1.066, allocations: 11.92 kB / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/1.066, allocations: 0 / 1.212 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007636/1.066, allocations: 223.8 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/1.067, allocations: 0.5313 MB / 1.213 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004552/1.068, allocations: 162.5 kB / 1.213 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/1.068, allocations: 160.7 kB / 1.213 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.454e-05/1.068, allocations: 12 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/1.069, allocations: 34.56 kB / 1.213 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/1.069, allocations: 4 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.001464/1.07, allocations: 481.5 kB / 1.214 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/1.07, allocations: 55.34 kB / 1.214 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/1.07, allocations: 148.5 kB / 1.214 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/1.07, allocations: 29.64 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.367e-05/1.07, allocations: 112.5 kB / 1.214 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.432e-05/1.07, allocations: 66.95 kB / 1.214 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-05/1.07, allocations: 37.7 kB / 1.214 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001335/1.071, allocations: 322.8 kB / 1.214 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004067/1.071, allocations: 131.9 kB / 1.214 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/1.071, allocations: 139.8 kB / 1.215 GB, free: 7.098 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007988/1.072, allocations: 300.5 kB / 1.215 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/1.072, allocations: 0 / 1.215 GB, free: 6.801 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008598/1.073, allocations: 324.8 kB / 1.215 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/1.073, allocations: 4 kB / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/1.073, allocations: 4 kB / 1.215 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/1.073, allocations: 0 / 1.215 GB, free: 6.473 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000236/1.073, allocations: 35.95 kB / 1.215 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/1.073, allocations: 15.86 kB / 1.215 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/1.074, allocations: 35.81 kB / 1.215 GB, free: 6.387 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/1.074, allocations: 7.984 kB / 1.215 GB, free: 6.379 MB / 0.9356 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.0001435/1.074, allocations: 137.8 kB / 1.215 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.688e-05/1.074, allocations: 7.906 kB / 1.215 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009569/1.075, allocations: 366.4 kB / 1.216 GB, free: 5.859 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/1.075, allocations: 4 kB / 1.216 GB, free: 5.855 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/1.075, allocations: 7.938 kB / 1.216 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/1.075, allocations: 0 / 1.216 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002863/1.075, allocations: 265.4 kB / 1.216 GB, free: 5.539 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.393e-06/1.075, allocations: 4 kB / 1.216 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002141/1.075, allocations: 39.89 kB / 1.216 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/1.075, allocations: 0 / 1.216 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/1.075, allocations: 4 kB / 1.216 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/1.075, allocations: 0 / 1.216 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/1.075, allocations: 4.25 kB / 1.216 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009169/1.076, allocations: 446.8 kB / 1.216 GB, free: 5.039 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.226e-05/1.076, allocations: 92.86 kB / 1.217 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/1.076, allocations: 4 kB / 1.217 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/1.077, allocations: 27.95 kB / 1.217 GB, free: 4.898 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.172e-05/1.077, allocations: 15.92 kB / 1.217 GB, free: 4.883 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/1.077, allocations: 7.984 kB / 1.217 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.575e-05/1.077, allocations: 109.5 kB / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of sort global known variables: time 4.91e-07/1.077, allocations: 0 / 1.217 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003004/1.077, allocations: 43.91 kB / 1.217 GB, free: 4.727 MB / 0.9356 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.0002565/1.077, allocations: 132.5 kB / 1.217 GB, free: 4.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009719/1.078, allocations: 387.2 kB / 1.217 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.078, allocations: 0 / 1.217 GB, free: 4.199 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000483/1.079, allocations: 243.1 kB / 1.217 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/1.079, allocations: 19.98 kB / 1.218 GB, free: 3.93 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007187/1.08, allocations: 381.1 kB / 1.218 GB, free: 3.52 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/1.08, allocations: 0.7314 MB / 1.219 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/1.08, allocations: 11.44 kB / 1.219 GB, free: 2.75 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/1.08, allocations: 0 / 1.219 GB, free: 2.75 MB / 0.9356 GB Notification: Performance of Templates: time 0.00456/1.085, allocations: 2.059 MB / 1.221 GB, free: 0.7031 MB / 0.9356 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