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.00701/0.00701, allocations: 101.3 kB / 15.73 MB, free: 6.047 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.001363/0.001363, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.503/1.503, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.77/2.77, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 64.12 kB / 1.054 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.347, allocations: 157.4 MB / 1.207 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002568/0.3496, allocations: 0.8385 MB / 1.208 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001597/0.3512, allocations: 1.014 MB / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.283e-05/0.3514, allocations: 0 / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.3515, allocations: 15.86 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.882e-05/0.3516, allocations: 15.75 kB / 1.209 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.3521, allocations: 95.81 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.3524, allocations: 131.6 kB / 1.209 GB, free: 7.984 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3527, allocations: 53.09 kB / 1.209 GB, free: 7.934 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.3528, allocations: 51.83 kB / 1.209 GB, free: 7.883 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.3529, allocations: 59.75 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.173e-05/0.353, allocations: 12 kB / 1.21 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001933/0.3532, allocations: 91.84 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.093e-05/0.3533, allocations: 43.84 kB / 1.21 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.883e-05/0.3534, allocations: 59.61 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004138/0.3538, allocations: 215.4 kB / 1.21 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3538, allocations: 4 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.347e-06/0.3538, allocations: 4 kB / 1.21 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.3538, allocations: 3.938 kB / 1.21 GB, free: 7.398 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.001231/0.3551, allocations: 490.8 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.726e-05/0.3551, allocations: 8.625 kB / 1.21 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.776e-05/0.3552, allocations: 46.73 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.495e-05/0.3553, allocations: 24.66 kB / 1.211 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.3556, allocations: 207.8 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.3556, allocations: 8.375 kB / 1.211 GB, free: 6.531 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.3557, allocations: 4.375 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000617/0.3563, allocations: 200.1 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.3563, allocations: 3.938 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.3564, allocations: 12 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.3564, allocations: 0 / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007043/0.3571, allocations: 227.7 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.3582, allocations: 0.5197 MB / 1.212 GB, free: 5.52 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004663/0.3587, allocations: 174.4 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/0.3591, allocations: 152.8 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-05/0.3592, allocations: 15.98 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.3593, allocations: 30.56 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 1.784e-06/0.3593, allocations: 0 / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.0014/0.3607, allocations: 479.5 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.3607, allocations: 55.34 kB / 1.213 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.3609, allocations: 152.8 kB / 1.213 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.3609, allocations: 29.7 kB / 1.213 GB, free: 4.398 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.561e-05/0.361, allocations: 112.5 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.941e-05/0.3611, allocations: 71.06 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.737e-05/0.3612, allocations: 33.7 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3613, allocations: 326.8 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.3617, allocations: 135.8 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.362, allocations: 131.9 kB / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006772/0.3627, allocations: 302.7 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3627, allocations: 0 / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007939/0.3635, allocations: 333.2 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3636, allocations: 4 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.921e-05/0.3636, allocations: 4 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.3636, allocations: 0 / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.3638, allocations: 39.89 kB / 1.214 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3638, allocations: 4 kB / 1.214 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.364, allocations: 35.8 kB / 1.214 GB, free: 2.867 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.3641, allocations: 8 kB / 1.214 GB, free: 2.859 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.000203/0.3643, allocations: 141.8 kB / 1.214 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.38e-05/0.3643, allocations: 11.81 kB / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00092/0.3653, allocations: 366.3 kB / 1.215 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.3653, allocations: 7.938 kB / 1.215 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3653, allocations: 4 kB / 1.215 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3653, allocations: 4 kB / 1.215 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003485/0.3657, allocations: 261.4 kB / 1.215 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.3657, allocations: 3.984 kB / 1.215 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.3659, allocations: 39.95 kB / 1.215 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3659, allocations: 0 / 1.215 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.3659, allocations: 0 / 1.215 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.3659, allocations: 3.938 kB / 1.215 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3659, allocations: 4 kB / 1.215 GB, free: 1.965 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008356/0.3668, allocations: 443.1 kB / 1.215 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.3668, allocations: 92.86 kB / 1.215 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3669, allocations: 0 / 1.215 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.367, allocations: 35.89 kB / 1.216 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.288e-05/0.3671, allocations: 11.98 kB / 1.216 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.3671, allocations: 4 kB / 1.216 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.645e-05/0.3672, allocations: 107.2 kB / 1.216 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3672, allocations: 4 kB / 1.216 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003048/0.3675, allocations: 43.91 kB / 1.216 GB, free: 1.203 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.001357/0.3689, allocations: 0.9957 MB / 1.217 GB, free: 188 kB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008674/0.3698, allocations: 383.2 kB / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3698, allocations: 0 / 1.217 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.3702, allocations: 243.2 kB / 1.217 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.3706, allocations: 24.7 kB / 1.217 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003467/0.3741, allocations: 2.344 MB / 1.22 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.3744, allocations: 0.7346 MB / 1.22 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.186e-05/0.3745, allocations: 19.97 kB / 1.22 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.853e-05/0.3746, allocations: 43.42 kB / 1.22 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of SimCode: time 3.71e-07/0.3746, allocations: 0 / 1.22 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.3972, allocations: 3.939 MB / 1.224 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.199, allocations: 27.36 kB / 1.224 GB, free: 8.418 MB / 0.9825 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