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.00854/0.00854, allocations: 99.53 kB / 15.73 MB, free: 6.004 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.001716/0.001716, allocations: 188.8 kB / 16.67 MB, free: 5.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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.152 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 2.842/2.842, allocations: 469.8 MB / 0.7425 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 72.08 kB / 1.065 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3714, allocations: 159.1 MB / 1.221 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002003/0.3734, allocations: 0.8441 MB / 1.221 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.3747, allocations: 1.01 MB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.502e-05/0.3747, allocations: 0 / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.3748, allocations: 15.81 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.242e-05/0.3749, allocations: 23.8 kB / 1.223 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.3753, allocations: 91.81 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.3755, allocations: 119.6 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.3756, allocations: 57.02 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.302e-05/0.3757, allocations: 47.84 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.486e-05/0.3758, allocations: 67.73 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.3758, allocations: 8 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.3759, allocations: 95.84 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.376, allocations: 35.86 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.858e-05/0.3761, allocations: 67.53 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.3763, allocations: 215 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3763, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.123e-06/0.3763, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.8e-06/0.3763, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 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.0008162/0.3771, allocations: 0.4929 MB / 1.224 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.3772, allocations: 8.031 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/0.3772, allocations: 20.8 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001998/0.3774, allocations: 208 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.3775, allocations: 8.375 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.3775, allocations: 4.375 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.378, allocations: 202.1 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.378, allocations: 3.938 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.378, allocations: 4 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.378, allocations: 4 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006649/0.3787, allocations: 231.6 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009044/0.3796, allocations: 0.5237 MB / 1.225 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004047/0.38, allocations: 150.4 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003696/0.3804, allocations: 144.7 kB / 1.225 GB, free: 8.934 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.135e-05/0.3804, allocations: 4 kB / 1.225 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.3805, allocations: 38.55 kB / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.272e-06/0.3805, allocations: 0 / 1.225 GB, free: 8.883 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.00128/0.3817, allocations: 470.7 kB / 1.226 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.3818, allocations: 63.34 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.3819, allocations: 152.4 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.3819, allocations: 29.7 kB / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.384e-05/0.382, allocations: 108.6 kB / 1.226 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.192e-05/0.3821, allocations: 71.39 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.218e-05/0.3821, allocations: 33.7 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001177/0.3823, allocations: 330.8 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003693/0.3826, allocations: 132.1 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003694/0.383, allocations: 136.9 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007009/0.3837, allocations: 292.6 kB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3837, allocations: 4 kB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008105/0.3845, allocations: 337.2 kB / 1.227 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.3845, allocations: 7.938 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.27e-05/0.3846, allocations: 4 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.3846, allocations: 0 / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.3848, allocations: 39.89 kB / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3848, allocations: 240 / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.385, allocations: 43.84 kB / 1.227 GB, free: 6.621 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.385, allocations: 4 kB / 1.227 GB, free: 6.617 MB / 0.9825 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.0001704/0.3852, allocations: 138.4 kB / 1.228 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.271e-05/0.3852, allocations: 19.89 kB / 1.228 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009166/0.3861, allocations: 354.5 kB / 1.228 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.3861, allocations: 7.922 kB / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3862, allocations: 0 / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3862, allocations: 7.984 kB / 1.228 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003121/0.3865, allocations: 265.5 kB / 1.228 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.3865, allocations: 0 / 1.228 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.3867, allocations: 31.95 kB / 1.228 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3867, allocations: 8 kB / 1.228 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.3867, allocations: 3.984 kB / 1.228 GB, free: 5.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.3867, allocations: 4.016 kB / 1.228 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3867, allocations: 7.922 kB / 1.228 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008487/0.3875, allocations: 445.5 kB / 1.229 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.3876, allocations: 92.95 kB / 1.229 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.3876, allocations: 8 kB / 1.229 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.3878, allocations: 31.89 kB / 1.229 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.3879, allocations: 15.98 kB / 1.229 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.3879, allocations: 4 kB / 1.229 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.711e-05/0.388, allocations: 108.3 kB / 1.229 GB, free: 5 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.388, allocations: 0 / 1.229 GB, free: 5 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003274/0.3883, allocations: 47.89 kB / 1.229 GB, free: 4.953 MB / 0.9825 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.0003308/0.3887, allocations: 127.2 kB / 1.229 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008821/0.3895, allocations: 363 kB / 1.229 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3895, allocations: 0 / 1.229 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004234/0.39, allocations: 223.3 kB / 1.23 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.3903, allocations: 16 kB / 1.23 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007863/0.3911, allocations: 351.2 kB / 1.23 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.3914, allocations: 0.7338 MB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.721e-05/0.3915, allocations: 15.92 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.3915, allocations: 15.44 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of SimCode: time 2.9e-07/0.3915, allocations: 0 / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of Templates: time 0.005341/0.3969, allocations: 2.06 MB / 1.233 GB, free: 1 MB / 0.9825 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=480 -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