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.004866/0.004866, allocations: 106.1 kB / 15.73 MB, free: 6 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.001068/0.001068, allocations: 192.2 kB / 16.67 MB, free: 5.922 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.648/2.648, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 71.89 kB / 1.054 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9809/0.9825, allocations: 157.4 MB / 1.207 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002053/0.9846, allocations: 0.8359 MB / 1.208 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.9862, allocations: 1.014 MB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.881e-05/0.9863, allocations: 0 / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.9864, allocations: 15.86 kB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.274e-05/0.9865, allocations: 19.78 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.9869, allocations: 91.72 kB / 1.209 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.9871, allocations: 119.7 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.9873, allocations: 61.08 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.614e-05/0.9874, allocations: 51.77 kB / 1.209 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.837e-05/0.9875, allocations: 63.75 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.9876, allocations: 12 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.9877, allocations: 83.92 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.9878, allocations: 39.84 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.9879, allocations: 71.58 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002574/0.9881, allocations: 209.4 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.9882, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9882, allocations: 4 kB / 1.21 GB, free: 10.87 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.9882, allocations: 4 kB / 1.21 GB, free: 10.87 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.0008487/0.989, allocations: 490.7 kB / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.9891, allocations: 8.031 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.05e-05/0.9891, allocations: 42.73 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.9892, allocations: 20.66 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.9894, allocations: 210.5 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.9894, allocations: 8.375 kB / 1.211 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.9895, allocations: 8.375 kB / 1.211 GB, free: 10 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005655/0.99, allocations: 206 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.99, allocations: 3.938 kB / 1.211 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.9901, allocations: 3.984 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.9901, allocations: 8 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007335/0.9908, allocations: 219.8 kB / 1.211 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009363/0.9918, allocations: 0.5313 MB / 1.212 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004817/0.9923, allocations: 162.5 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004076/0.9927, allocations: 164.7 kB / 1.212 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 5.822e-05/0.9927, allocations: 4 kB / 1.212 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.9928, allocations: 34.56 kB / 1.212 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 1.493e-06/0.9928, allocations: 0 / 1.212 GB, free: 8.602 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.001405/0.9942, allocations: 486.2 kB / 1.212 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.9942, allocations: 55.34 kB / 1.213 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.9944, allocations: 146.2 kB / 1.213 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.9944, allocations: 25.7 kB / 1.213 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.376e-05/0.9945, allocations: 112.5 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.9946, allocations: 74.89 kB / 1.213 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.744e-05/0.9946, allocations: 29.7 kB / 1.213 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001876/0.9948, allocations: 326.8 kB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.9952, allocations: 135.8 kB / 1.213 GB, free: 7.184 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003756/0.9956, allocations: 139.2 kB / 1.213 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007875/0.9964, allocations: 304.5 kB / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.9964, allocations: 0 / 1.214 GB, free: 6.75 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008457/0.9973, allocations: 323.9 kB / 1.214 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.9973, allocations: 5.719 kB / 1.214 GB, free: 6.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.9973, allocations: 7.984 kB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.9973, allocations: 0 / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.9976, allocations: 43.83 kB / 1.214 GB, free: 6.375 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.9976, allocations: 4 kB / 1.214 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001742/0.9978, allocations: 35.86 kB / 1.214 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.9978, allocations: 8 kB / 1.214 GB, free: 6.328 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.0001404/0.9979, allocations: 139.5 kB / 1.214 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.701e-05/0.998, allocations: 11.81 kB / 1.214 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009923/0.999, allocations: 358.5 kB / 1.215 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.999, allocations: 7.938 kB / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.999, allocations: 0 / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.999, allocations: 0 / 1.215 GB, free: 5.805 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.9993, allocations: 277.4 kB / 1.215 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.9993, allocations: 0 / 1.215 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.9995, allocations: 39.89 kB / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.9996, allocations: 0 / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.9996, allocations: 0 / 1.215 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.84e-06/0.9996, allocations: 3.938 kB / 1.215 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.9996, allocations: 0 / 1.215 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009836/1.001, allocations: 450.3 kB / 1.215 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/1.001, allocations: 96.86 kB / 1.215 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/1.001, allocations: 3.984 kB / 1.215 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/1.001, allocations: 27.91 kB / 1.216 GB, free: 4.844 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.233e-05/1.001, allocations: 15.97 kB / 1.216 GB, free: 4.828 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/1.001, allocations: 4 kB / 1.216 GB, free: 4.824 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.298e-05/1.001, allocations: 109.3 kB / 1.216 GB, free: 4.719 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.996e-06/1.001, allocations: 0 / 1.216 GB, free: 4.719 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003083/1.001, allocations: 51.77 kB / 1.216 GB, free: 4.668 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.001475/1.003, allocations: 0.9855 MB / 1.217 GB, free: 3.656 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001401/1.004, allocations: 391.1 kB / 1.217 GB, free: 3.262 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.004, allocations: 0 / 1.217 GB, free: 3.262 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007312/1.005, allocations: 231.3 kB / 1.217 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005036/1.006, allocations: 28.64 kB / 1.217 GB, free: 2.996 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005926/1.011, allocations: 2.357 MB / 1.22 GB, free: 0.5625 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/1.012, allocations: 0.7353 MB / 1.22 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.242e-05/1.012, allocations: 15.98 kB / 1.22 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.323e-05/1.012, allocations: 43.42 kB / 1.22 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of SimCode: time 6.51e-07/1.012, allocations: 0 / 1.22 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/1.037, allocations: 4.003 MB / 1.224 GB, free: 11.84 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.62/8.657, allocations: 14.56 kB / 1.224 GB, free: 11.83 MB / 0.9512 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