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.00114/0.00114, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.313/1.313, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.631/2.631, allocations: 461.9 MB / 0.7347 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 66.05 kB / 0.8992 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3254, allocations: 157.4 MB / 1.053 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002085/0.3275, allocations: 0.8403 MB / 1.054 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00114/0.3286, allocations: 1.018 MB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.673e-05/0.3287, allocations: 0 / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.3288, allocations: 15.81 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.478e-05/0.3289, allocations: 27.78 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3293, allocations: 83.78 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001512/0.3295, allocations: 127.7 kB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.3297, allocations: 53.08 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.106e-05/0.3297, allocations: 47.84 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.725e-05/0.3298, allocations: 63.69 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.3299, allocations: 16 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001223/0.33, allocations: 63.95 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.26e-05/0.3301, allocations: 43.83 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.742e-05/0.3301, allocations: 59.61 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.3304, allocations: 211.5 kB / 1.056 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3304, allocations: 3.938 kB / 1.056 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3304, allocations: 0 / 1.056 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.3304, allocations: 0 / 1.056 GB, free: 5.543 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.0008474/0.3313, allocations: 486.8 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3313, allocations: 8.625 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.499e-05/0.3314, allocations: 50.73 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.513e-05/0.3314, allocations: 16.75 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.3317, allocations: 219.8 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.235e-06/0.3317, allocations: 384 / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.3317, allocations: 8.375 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005424/0.3322, allocations: 206.7 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3323, allocations: 3.938 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.3323, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3323, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007053/0.333, allocations: 224.9 kB / 1.057 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008821/0.3339, allocations: 0.5197 MB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004197/0.3343, allocations: 178.4 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003887/0.3347, allocations: 152.8 kB / 1.058 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.087e-05/0.3348, allocations: 7.984 kB / 1.058 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.3348, allocations: 38.64 kB / 1.058 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.232e-06/0.3348, allocations: 0 / 1.058 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001328/0.3361, allocations: 474.6 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3362, allocations: 55.34 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.3363, allocations: 152.9 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.3364, allocations: 33.64 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.566e-05/0.3364, allocations: 112.5 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.326e-05/0.3365, allocations: 70.94 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.286e-05/0.3366, allocations: 33.7 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3367, allocations: 326.8 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004281/0.3372, allocations: 131.8 kB / 1.059 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.3375, allocations: 136.5 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/0.3383, allocations: 299.7 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3383, allocations: 0 / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008066/0.3391, allocations: 329.9 kB / 1.06 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3391, allocations: 4 kB / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.3392, allocations: 0 / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3392, allocations: 0 / 1.06 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.3394, allocations: 43.83 kB / 1.06 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3394, allocations: 0 / 1.06 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.3396, allocations: 47.8 kB / 1.06 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.3397, allocations: 0 / 1.06 GB, free: 1.02 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.000137/0.3398, allocations: 137.8 kB / 1.06 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.3398, allocations: 15.81 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008981/0.3407, allocations: 371.9 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3408, allocations: 3.938 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3408, allocations: 0 / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3408, allocations: 0 / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.341, allocations: 273.7 kB / 1.06 GB, free: 176 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.341, allocations: 7.984 kB / 1.06 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.3412, allocations: 31.95 kB / 1.061 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3412, allocations: 0 / 1.061 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.3413, allocations: 4 kB / 1.061 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3413, allocations: 7.938 kB / 1.061 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3413, allocations: 4 kB / 1.061 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008767/0.3422, allocations: 431.1 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.841e-05/0.3422, allocations: 92.86 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.3423, allocations: 4 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.3425, allocations: 35.88 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.3425, allocations: 15.98 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.3425, allocations: 0 / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.576e-05/0.3426, allocations: 123.7 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3426, allocations: 0 / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002875/0.3429, allocations: 40 kB / 1.061 GB, free: 15.36 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.001271/0.3442, allocations: 0.9944 MB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009076/0.3451, allocations: 395.1 kB / 1.063 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.3451, allocations: 0 / 1.063 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004657/0.3456, allocations: 243.2 kB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.3459, allocations: 24.64 kB / 1.063 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.3493, allocations: 2.32 MB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.3496, allocations: 0.7334 MB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.508e-05/0.3497, allocations: 23.91 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/0.3498, allocations: 43.42 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.3498, allocations: 0 / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04512/0.3949, allocations: 3.889 MB / 1.07 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/7.876, allocations: 15.78 kB / 1.07 GB, free: 6.625 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