Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001127/0.001127, allocations: 80.8 kB / 20.75 MB, free: 3.742 MB / 18.57 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.001424/0.001424, allocations: 161 kB / 24.16 MB, free: 336 kB / 18.57 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.007/1.007, allocations: 177.1 MB / 204.6 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.953/1.953, allocations: 377.9 MB / 0.624 GB, free: 8.336 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",fileNamePrefix="Buildings_12_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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 0.7601 GB, free: 6.547 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.419e-05/1.59e-05, allocations: 2.938 kB / 0.7601 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001351/0.001366, allocations: 0.8428 MB / 0.7609 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.002434, allocations: 1.069 MB / 0.762 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.7e-05/0.002481, allocations: 0 / 0.762 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.002583, allocations: 13.3 kB / 0.762 GB, free: 4.633 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 5.223e-05/0.002635, allocations: 28.38 kB / 0.762 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003494/0.002984, allocations: 91.77 kB / 0.7621 GB, free: 4.523 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.003116, allocations: 134.4 kB / 0.7622 GB, free: 4.402 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.003237, allocations: 25.95 kB / 0.7622 GB, free: 4.375 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 9.319e-05/0.00333, allocations: 76.98 kB / 0.7623 GB, free: 4.301 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 5.722e-05/0.003388, allocations: 47.88 kB / 0.7623 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.003408, allocations: 12 kB / 0.7624 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.00352, allocations: 88.7 kB / 0.7624 GB, free: 4.156 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 4.545e-05/0.003566, allocations: 43.89 kB / 0.7625 GB, free: 4.113 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 3.18e-05/0.003598, allocations: 32.8 kB / 0.7625 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001805/0.003778, allocations: 179.3 kB / 0.7627 GB, free: 3.906 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.00378, allocations: 4 kB / 0.7627 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of FrontEnd: time 6.11e-07/0.003781, allocations: 0.5312 kB / 0.7627 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.003785, allocations: 1.125 kB / 0.7627 GB, free: 3.902 MB / 0.7136 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.0003936/0.004179, allocations: 364.1 kB / 0.763 GB, free: 3.52 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.004208, allocations: 8.844 kB / 0.7631 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.004243, allocations: 16.92 kB / 0.7631 GB, free: 3.496 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.004371, allocations: 147.9 kB / 0.7632 GB, free: 3.328 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.004382, allocations: 8.375 kB / 0.7632 GB, free: 3.32 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.004395, allocations: 4.375 kB / 0.7632 GB, free: 3.316 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.004577, allocations: 132.2 kB / 0.7633 GB, free: 3.18 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.004585, allocations: 4.125 kB / 0.7634 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.004593, allocations: 384 / 0.7634 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.004603, allocations: 8.359 kB / 0.7634 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.533e-05/0.004649, allocations: 29.36 kB / 0.7634 GB, free: 3.141 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003503/0.004999, allocations: 299.1 kB / 0.7637 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.531e-05/0.005064, allocations: 88.23 kB / 0.7638 GB, free: 2.738 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.332e-05/0.005097, allocations: 28.86 kB / 0.7638 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.005139, allocations: 4 kB / 0.7638 GB, free: 2.703 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.005159, allocations: 34.55 kB / 0.7638 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=25): time 1.072e-06/0.00516, allocations: 0 / 0.7638 GB, free: 2.66 MB / 0.7136 GB Notification: Performance of matching and sorting (n=25): time 0.0001807/0.00534, allocations: 134 kB / 0.7639 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.005368, allocations: 51.41 kB / 0.764 GB, free: 2.465 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.213e-05/0.005441, allocations: 154 kB / 0.7641 GB, free: 2.305 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.005452, allocations: 25.7 kB / 0.7642 GB, free: 2.273 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.897e-05/0.005491, allocations: 117.7 kB / 0.7643 GB, free: 2.156 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.005531, allocations: 63.42 kB / 0.7643 GB, free: 2.094 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.604e-05/0.005567, allocations: 29.67 kB / 0.7644 GB, free: 2.059 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.885e-05/0.005646, allocations: 328 kB / 0.7647 GB, free: 1.73 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.073e-05/0.005677, allocations: 22.83 kB / 0.7647 GB, free: 1.707 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.484e-05/0.005702, allocations: 16.22 kB / 0.7647 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.964e-05/0.005771, allocations: 84 kB / 0.7648 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.005773, allocations: 0 / 0.7648 GB, free: 1.609 MB / 0.7136 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000103/0.005876, allocations: 101.6 kB / 0.7649 GB, free: 1.504 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.005887, allocations: 8 kB / 0.7649 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.005902, allocations: 3.984 kB / 0.7649 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.005914, allocations: 0 / 0.7649 GB, free: 1.492 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.264e-05/0.005997, allocations: 19.98 kB / 0.7649 GB, free: 1.473 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-06/0.006, allocations: 0 / 0.7649 GB, free: 1.473 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.543e-05/0.006045, allocations: 26.91 kB / 0.765 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.00606, allocations: 0 / 0.765 GB, free: 1.449 MB / 0.7136 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 8.063e-05/0.006141, allocations: 130.3 kB / 0.7651 GB, free: 1.312 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/0.006158, allocations: 4 kB / 0.7651 GB, free: 1.309 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.006302, allocations: 144.9 kB / 0.7652 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.006304, allocations: 1.5 kB / 0.7652 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.006306, allocations: 0 / 0.7652 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.006308, allocations: 0 / 0.7652 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.006423, allocations: 121.7 kB / 0.7653 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.006425, allocations: 0 / 0.7653 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-05/0.00648, allocations: 32.56 kB / 0.7654 GB, free: 0.9961 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.006483, allocations: 5.312 kB / 0.7654 GB, free: 0.9922 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.006489, allocations: 0 / 0.7654 GB, free: 0.9922 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.00649, allocations: 4 kB / 0.7654 GB, free: 0.9883 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.00649, allocations: 2.438 kB / 0.7654 GB, free: 0.9883 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001391/0.00663, allocations: 246.8 kB / 0.7656 GB, free: 0.7305 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.006645, allocations: 23.77 kB / 0.7656 GB, free: 0.707 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.006657, allocations: 4 kB / 0.7656 GB, free: 0.7031 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.433e-05/0.006712, allocations: 11.98 kB / 0.7657 GB, free: 0.6914 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.159e-05/0.006753, allocations: 15.98 kB / 0.7657 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.00676, allocations: 6.922 kB / 0.7657 GB, free: 0.6719 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.273e-05/0.006783, allocations: 28.83 kB / 0.7657 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006783, allocations: 4 kB / 0.7657 GB, free: 0.6367 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001577/0.00694, allocations: 39.95 kB / 0.7657 GB, free: 0.5977 MB / 0.7136 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.000133/0.007073, allocations: 109 kB / 0.7658 GB, free: 496 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001428/0.007216, allocations: 142.1 kB / 0.766 GB, free: 340 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.00722, allocations: 5.344 kB / 0.766 GB, free: 336 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.782e-05/0.007288, allocations: 108.2 kB / 0.7661 GB, free: 212 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001573/0.007445, allocations: 22.31 kB / 0.7661 GB, free: 192 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003464/0.007791, allocations: 293.5 kB / 0.7664 GB, free: 15.87 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.183e-05/0.007833, allocations: 79.62 kB / 0.7665 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.065e-05/0.007864, allocations: 10.05 kB / 0.7665 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.183e-05/0.007936, allocations: 71.36 kB / 0.7665 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of SimCode: time 5.41e-07/0.007936, allocations: 0 / 0.7665 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of Templates: time 0.003573/0.01151, allocations: 2.032 MB / 0.7685 GB, free: 13.78 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1565681248903275]