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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001951/0.001951, allocations: 84.05 kB / 19.18 MB, free: 2.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002354/0.002354, allocations: 168.2 kB / 22.46 MB, free: 5.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.948/2.948, allocations: 389 MB / 0.633 GB, free: 1.016 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 1 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.727e-05/2.938e-05, allocations: 5.797 kB / 1 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001996/0.002025, allocations: 0.8176 MB / 1.001 GB, free: 6.422 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001562/0.003587, allocations: 1.026 MB / 1.002 GB, free: 5.383 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/0.003663, allocations: 4 kB / 1.002 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.003787, allocations: 11.81 kB / 1.002 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.122e-05/0.003848, allocations: 27.78 kB / 1.002 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.004268, allocations: 99.75 kB / 1.002 GB, free: 5.242 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.004437, allocations: 123.6 kB / 1.002 GB, free: 5.121 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.004591, allocations: 37.22 kB / 1.002 GB, free: 5.082 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.00471, allocations: 75.86 kB / 1.002 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.045e-05/0.0048, allocations: 39.89 kB / 1.002 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.685e-05/0.004827, allocations: 8 kB / 1.002 GB, free: 4.961 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.005001, allocations: 91.91 kB / 1.003 GB, free: 4.871 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.406e-05/0.005065, allocations: 43.83 kB / 1.003 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.804e-05/0.005123, allocations: 31.92 kB / 1.003 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.005428, allocations: 223.2 kB / 1.003 GB, free: 4.578 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.00543, allocations: 4 kB / 1.003 GB, free: 4.574 MB / 0.9512 GB Notification: Performance of FrontEnd: time 8.32e-07/0.005431, allocations: 0 / 1.003 GB, free: 4.574 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.005436, allocations: 4 kB / 1.003 GB, free: 4.57 MB / 0.9512 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.0008726/0.006308, allocations: 417.4 kB / 1.003 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.006349, allocations: 12.03 kB / 1.003 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.314e-05/0.006402, allocations: 16.8 kB / 1.003 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.006635, allocations: 157.5 kB / 1.003 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.006651, allocations: 4.375 kB / 1.003 GB, free: 3.918 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.006673, allocations: 12.36 kB / 1.003 GB, free: 3.906 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005946/0.007267, allocations: 205.9 kB / 1.004 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.007277, allocations: 192 / 1.004 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.007291, allocations: 384 / 1.004 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.007298, allocations: 8.312 kB / 1.004 GB, free: 3.691 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007765/0.008074, allocations: 227.7 kB / 1.004 GB, free: 3.469 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009439/0.009018, allocations: 463.9 kB / 1.004 GB, free: 2.984 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.009488, allocations: 150.5 kB / 1.004 GB, free: 2.828 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004226/0.009911, allocations: 140.7 kB / 1.005 GB, free: 2.688 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.009965, allocations: 4 kB / 1.005 GB, free: 2.684 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.009997, allocations: 30.56 kB / 1.005 GB, free: 2.645 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 1.523e-06/0.009998, allocations: 0 / 1.005 GB, free: 2.645 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001538/0.01154, allocations: 485.3 kB / 1.005 GB, free: 2.164 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.01158, allocations: 55.41 kB / 1.005 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.01173, allocations: 149 kB / 1.005 GB, free: 1.945 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.01176, allocations: 29.7 kB / 1.005 GB, free: 1.91 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.151e-05/0.01183, allocations: 104.6 kB / 1.005 GB, free: 1.805 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.465e-05/0.01191, allocations: 75.33 kB / 1.005 GB, free: 1.73 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.887e-05/0.01198, allocations: 29.7 kB / 1.005 GB, free: 1.695 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.01214, allocations: 330.8 kB / 1.006 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004324/0.01257, allocations: 135.9 kB / 1.006 GB, free: 1.23 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.013, allocations: 127.9 kB / 1.006 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008557/0.01385, allocations: 305.4 kB / 1.006 GB, free: 0.8047 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01385, allocations: 7.938 kB / 1.006 GB, free: 0.7969 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009472/0.0148, allocations: 325.4 kB / 1.007 GB, free: 484 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.01482, allocations: 7.938 kB / 1.007 GB, free: 476 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.01484, allocations: 4 kB / 1.007 GB, free: 472 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.01485, allocations: 0 / 1.007 GB, free: 472 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000237/0.01509, allocations: 39.95 kB / 1.007 GB, free: 432 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.01509, allocations: 0 / 1.007 GB, free: 432 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.01529, allocations: 43.84 kB / 1.007 GB, free: 388 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.01532, allocations: 4 kB / 1.007 GB, free: 384 kB / 0.9512 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.0001716/0.01549, allocations: 142.3 kB / 1.007 GB, free: 232 kB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.01554, allocations: 15.86 kB / 1.007 GB, free: 216 kB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.01659, allocations: 362.6 kB / 1.007 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.01659, allocations: 4 kB / 1.007 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.0166, allocations: 0 / 1.007 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.0166, allocations: 4 kB / 1.007 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000253/0.01686, allocations: 193.1 kB / 1.007 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.01686, allocations: 0 / 1.007 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.01709, allocations: 35.95 kB / 1.007 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.01709, allocations: 0 / 1.007 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.0171, allocations: 0 / 1.007 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.01711, allocations: 4 kB / 1.007 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.01711, allocations: 0 / 1.007 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.01814, allocations: 446.9 kB / 1.008 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 2.137e-05/0.01817, allocations: 19.78 kB / 1.008 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.584e-05/0.01819, allocations: 4 kB / 1.008 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.01841, allocations: 35.95 kB / 1.008 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/0.01848, allocations: 15.97 kB / 1.008 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.01849, allocations: 0 / 1.008 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.59e-05/0.01858, allocations: 110.3 kB / 1.008 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.01858, allocations: 0 / 1.008 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003179/0.0189, allocations: 43.92 kB / 1.008 GB, free: 14.91 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.0002564/0.01915, allocations: 128.6 kB / 1.008 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001/0.02015, allocations: 367.1 kB / 1.009 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.02016, allocations: 4 kB / 1.009 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004921/0.02065, allocations: 215.3 kB / 1.009 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.02097, allocations: 21.8 kB / 1.009 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006685/0.02164, allocations: 359.3 kB / 1.009 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.02177, allocations: 114.9 kB / 1.009 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.792e-05/0.02184, allocations: 11.98 kB / 1.009 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.86e-05/0.0219, allocations: 16.5 kB / 1.009 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of SimCode: time 4.01e-07/0.0219, allocations: 11.94 kB / 1.009 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of Templates: time 0.005916/0.02781, allocations: 2.162 MB / 1.011 GB, free: 11.48 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.50376284494996]