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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001695/0.001695, allocations: 193.8 kB / 16.25 MB, free: 6.633 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.303/1.303, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.711/2.711, allocations: 461.9 MB / 0.7343 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.00136, allocations: 71.25 kB / 0.8987 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4201, allocations: 157.4 MB / 1.052 GB, free: 8.621 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002217/0.4223, allocations: 0.8973 MB / 1.053 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.4236, allocations: 1.03 MB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.805e-05/0.4237, allocations: 0 / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001173/0.4238, allocations: 11.94 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.839e-05/0.4239, allocations: 19.8 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.4243, allocations: 79.91 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.4245, allocations: 119.6 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.4247, allocations: 53.08 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.648e-05/0.4247, allocations: 47.84 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.4248, allocations: 67.73 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.4249, allocations: 12 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.425, allocations: 67.89 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.442e-05/0.425, allocations: 39.84 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.4251, allocations: 59.61 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.4254, allocations: 207.6 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.4254, allocations: 3.938 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.923e-06/0.4254, allocations: 0 / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.4254, allocations: 0 / 1.055 GB, free: 5.906 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0008186/0.4262, allocations: 494.8 kB / 1.056 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.4263, allocations: 12.62 kB / 1.056 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.797e-05/0.4263, allocations: 42.73 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.283e-05/0.4264, allocations: 20.75 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.4266, allocations: 211.8 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.4266, allocations: 384 / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.4266, allocations: 12.38 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005279/0.4272, allocations: 206.6 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.4272, allocations: 3.938 kB / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.4272, allocations: 0 / 1.056 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.4272, allocations: 4 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006711/0.4279, allocations: 219.8 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008862/0.4288, allocations: 0.5236 MB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004255/0.4292, allocations: 174.5 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003789/0.4296, allocations: 152.8 kB / 1.057 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.85e-05/0.4297, allocations: 4 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.4297, allocations: 46.48 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.463e-06/0.4297, allocations: 0 / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001345/0.4311, allocations: 474.4 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.4311, allocations: 59.34 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.4313, allocations: 149.1 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.4313, allocations: 29.7 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.924e-05/0.4314, allocations: 116.5 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.358e-05/0.4314, allocations: 67.06 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.741e-05/0.4315, allocations: 37.64 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4317, allocations: 326.8 kB / 1.058 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.4321, allocations: 127.9 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.4324, allocations: 137.2 kB / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007036/0.4331, allocations: 298.8 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4331, allocations: 4 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007914/0.4339, allocations: 329.2 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.434, allocations: 6.031 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.434, allocations: 0 / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.434, allocations: 4 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.4342, allocations: 39.88 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.4343, allocations: 4 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001803/0.4344, allocations: 43.8 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.4345, allocations: 0 / 1.059 GB, free: 1.375 MB / 0.8106 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.0001628/0.4347, allocations: 140 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.632e-05/0.4347, allocations: 19.8 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008894/0.4356, allocations: 363.1 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4356, allocations: 3.938 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4356, allocations: 0 / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4356, allocations: 7.984 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.4359, allocations: 269.7 kB / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.4359, allocations: 0 / 1.06 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.4361, allocations: 31.95 kB / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.4362, allocations: 7.984 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.4362, allocations: 4 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.4362, allocations: 3.938 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4362, allocations: 3.938 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008414/0.437, allocations: 435.9 kB / 1.06 GB, free: 36 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.935e-05/0.4371, allocations: 92.86 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.4371, allocations: 8 kB / 1.061 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.4374, allocations: 31.89 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.086e-05/0.4374, allocations: 11.98 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.4375, allocations: 4 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.095e-05/0.4375, allocations: 111.2 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4375, allocations: 0 / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003138/0.4379, allocations: 44 kB / 1.061 GB, free: 15.72 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.001326/0.4392, allocations: 1.001 MB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009103/0.4401, allocations: 391.1 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4401, allocations: 0 / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004713/0.4406, allocations: 243.2 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003434/0.441, allocations: 25.47 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.4448, allocations: 2.379 MB / 1.065 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.4452, allocations: 0.7353 MB / 1.065 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.4453, allocations: 19.91 kB / 1.065 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.537e-05/0.4454, allocations: 43.42 kB / 1.065 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of SimCode: time 9.62e-07/0.4454, allocations: 0 / 1.065 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01498/0.4604, allocations: 3.542 MB / 1.069 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/0.4607, allocations: 209.8 kB / 1.069 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.948/2.409, allocations: 0 / 1.069 GB, free: 7.059 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sort.fmu > 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