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.007684/0.007684, allocations: 98.41 kB / 15.73 MB, free: 6.016 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.001282/0.001282, allocations: 194.2 kB / 16.67 MB, free: 5.949 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.505/1.505, allocations: 222.9 MB / 240.4 MB, free: 4.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.839/2.839, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 68.12 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3727, allocations: 157.4 MB / 1.208 GB, free: 9.609 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002082/0.3748, allocations: 0.8401 MB / 1.209 GB, free: 8.77 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001283/0.3761, allocations: 1.01 MB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.88e-05/0.3762, allocations: 0 / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.3763, allocations: 23.8 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.199e-05/0.3764, allocations: 15.8 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000392/0.3768, allocations: 91.83 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.377, allocations: 127.6 kB / 1.21 GB, free: 7.492 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.3772, allocations: 57.09 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.052e-05/0.3773, allocations: 51.81 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.024e-05/0.3773, allocations: 63.75 kB / 1.21 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.427e-05/0.3774, allocations: 12 kB / 1.21 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000144/0.3775, allocations: 87.86 kB / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.815e-05/0.3776, allocations: 39.84 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.536e-05/0.3777, allocations: 63.59 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.3779, allocations: 211.2 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3779, allocations: 4 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.864e-06/0.3779, allocations: 4 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.78e-06/0.3779, allocations: 0 / 1.21 GB, free: 6.91 MB / 0.9669 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.0008645/0.3788, allocations: 494.7 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3789, allocations: 8.625 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.3e-05/0.3789, allocations: 20.66 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000191/0.3791, allocations: 211.8 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.3791, allocations: 8.375 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.3792, allocations: 4.375 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005574/0.3797, allocations: 208.3 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3797, allocations: 192 / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.3798, allocations: 7.938 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3798, allocations: 8 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007238/0.3805, allocations: 215.8 kB / 1.212 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008922/0.3814, allocations: 0.5236 MB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.3819, allocations: 170.5 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004089/0.3823, allocations: 152.7 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 6.353e-05/0.3823, allocations: 8 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.3824, allocations: 38.56 kB / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 1.302e-06/0.3824, allocations: 0 / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001353/0.3837, allocations: 481.2 kB / 1.213 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.3838, allocations: 59.34 kB / 1.213 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.3839, allocations: 152.8 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3839, allocations: 25.7 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.384, allocations: 112.5 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.3841, allocations: 71.08 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.853e-05/0.3841, allocations: 33.7 kB / 1.213 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.3842, allocations: 330.8 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003956/0.3846, allocations: 131.9 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003731/0.385, allocations: 131.9 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007727/0.3858, allocations: 298.7 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3858, allocations: 3.938 kB / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008648/0.3867, allocations: 337.2 kB / 1.214 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3867, allocations: 7.984 kB / 1.214 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.3867, allocations: 0 / 1.214 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.3868, allocations: 4 kB / 1.214 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.387, allocations: 31.95 kB / 1.215 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.387, allocations: 7.938 kB / 1.215 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.3872, allocations: 39.8 kB / 1.215 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.3872, allocations: 0 / 1.215 GB, free: 2.422 MB / 0.9669 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.0001341/0.3874, allocations: 138.9 kB / 1.215 GB, free: 2.277 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.663e-05/0.3874, allocations: 15.81 kB / 1.215 GB, free: 2.262 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009301/0.3883, allocations: 362.4 kB / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3884, allocations: 0 / 1.215 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3884, allocations: 3.938 kB / 1.215 GB, free: 1.898 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.3884, allocations: 8 kB / 1.215 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.3886, allocations: 265.4 kB / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.3887, allocations: 8 kB / 1.215 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001964/0.3889, allocations: 35.95 kB / 1.215 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3889, allocations: 4 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.3889, allocations: 0 / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3889, allocations: 0 / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3889, allocations: 3.938 kB / 1.215 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008907/0.3898, allocations: 443 kB / 1.216 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.3898, allocations: 92.91 kB / 1.216 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.3899, allocations: 4 kB / 1.216 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/0.3901, allocations: 31.95 kB / 1.216 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.39e-05/0.3902, allocations: 15.92 kB / 1.216 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.3902, allocations: 0 / 1.216 GB, free: 0.9219 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.379e-05/0.3903, allocations: 111.2 kB / 1.216 GB, free: 0.8125 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3903, allocations: 0 / 1.216 GB, free: 0.8125 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002934/0.3906, allocations: 51.84 kB / 1.216 GB, free: 0.7617 MB / 0.9669 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.0002459/0.3908, allocations: 116.8 kB / 1.216 GB, free: 0.6406 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0009488/0.3918, allocations: 387.1 kB / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3918, allocations: 0 / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004562/0.3923, allocations: 231.3 kB / 1.217 GB, free: 12 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3926, allocations: 28.73 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000579/0.3932, allocations: 353.5 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.3935, allocations: 0.7335 MB / 1.218 GB, free: 14.85 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.718e-05/0.3936, allocations: 15.98 kB / 1.218 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.012e-05/0.3936, allocations: 15.44 kB / 1.218 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.3936, allocations: 0 / 1.218 GB, free: 14.82 MB / 0.9825 GB Notification: Performance of Templates: time 0.004839/0.3985, allocations: 2.102 MB / 1.22 GB, free: 12.74 MB / 0.9825 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/jenkins/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