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.001968/0.001968, allocations: 80.59 kB / 19.18 MB, free: 2.527 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.002445/0.002445, allocations: 169 kB / 22.46 MB, free: 5.355 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.617/1.617, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.933/2.933, allocations: 377.8 MB / 0.6221 GB, free: 12.58 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.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_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.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_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.286e-06/3.286e-06, allocations: 0 / 0.9815 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.786e-05/4.115e-05, allocations: 2.281 kB / 0.9815 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002182/0.002223, allocations: 0.8079 MB / 0.9823 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.0038, allocations: 1.034 MB / 0.9833 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.786e-05/0.003868, allocations: 4 kB / 0.9833 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.004003, allocations: 11.86 kB / 0.9833 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.474e-05/0.004068, allocations: 27.73 kB / 0.9833 GB, free: 10 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.004556, allocations: 91.77 kB / 0.9834 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.00481, allocations: 119.6 kB / 0.9835 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.005004, allocations: 45.12 kB / 0.9836 GB, free: 9.75 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.005125, allocations: 67.88 kB / 0.9837 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.005227, allocations: 47.88 kB / 0.9837 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.006e-05/0.005257, allocations: 8 kB / 0.9837 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.00544, allocations: 91.84 kB / 0.9838 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.814e-05/0.005508, allocations: 43.84 kB / 0.9838 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.967e-05/0.005568, allocations: 35.84 kB / 0.9839 GB, free: 9.461 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003456/0.005914, allocations: 231.1 kB / 0.9841 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.00592, allocations: 0 / 0.9841 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.623e-06/0.005922, allocations: 0 / 0.9841 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.649e-05/0.005938, allocations: 4 kB / 0.9841 GB, free: 9.23 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.001053/0.006992, allocations: 421.4 kB / 0.9845 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/0.007053, allocations: 12.03 kB / 0.9845 GB, free: 8.773 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.186e-05/0.007125, allocations: 16.8 kB / 0.9845 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.007402, allocations: 153.5 kB / 0.9847 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.007415, allocations: 4.375 kB / 0.9847 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.593e-05/0.007441, allocations: 12.38 kB / 0.9847 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005875/0.008028, allocations: 198.1 kB / 0.9849 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.008041, allocations: 4.172 kB / 0.9849 GB, free: 8.363 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.008061, allocations: 4.375 kB / 0.9849 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.00807, allocations: 4.375 kB / 0.9849 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007388/0.008809, allocations: 223.7 kB / 0.9851 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009557/0.009765, allocations: 460 kB / 0.9855 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004548/0.01022, allocations: 154.3 kB / 0.9857 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004308/0.01065, allocations: 144.7 kB / 0.9858 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.51e-05/0.01072, allocations: 4 kB / 0.9858 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/0.01077, allocations: 30.56 kB / 0.9859 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 1.823e-06/0.01077, allocations: 0 / 0.9859 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.00159/0.01236, allocations: 475.9 kB / 0.9863 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.282e-05/0.01241, allocations: 51.41 kB / 0.9864 GB, free: 6.777 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.0126, allocations: 156.1 kB / 0.9865 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.01263, allocations: 25.7 kB / 0.9865 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.553e-05/0.01273, allocations: 108.6 kB / 0.9866 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.88e-05/0.01281, allocations: 83.33 kB / 0.9867 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.277e-05/0.01289, allocations: 33.7 kB / 0.9867 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.01306, allocations: 330.8 kB / 0.9871 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004435/0.0135, allocations: 132.1 kB / 0.9872 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/0.01391, allocations: 135.8 kB / 0.9873 GB, free: 5.762 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008698/0.01478, allocations: 299.2 kB / 0.9876 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.01478, allocations: 0 / 0.9876 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009437/0.01572, allocations: 334 kB / 0.9879 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.01575, allocations: 4 kB / 0.9879 GB, free: 5.133 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.478e-05/0.01577, allocations: 4 kB / 0.9879 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.0158, allocations: 0 / 0.9879 GB, free: 5.129 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.01605, allocations: 35.89 kB / 0.988 GB, free: 5.094 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.01606, allocations: 3.984 kB / 0.988 GB, free: 5.09 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.01626, allocations: 43.86 kB / 0.988 GB, free: 5.047 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.0163, allocations: 4 kB / 0.988 GB, free: 5.043 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.0001968/0.01649, allocations: 141.8 kB / 0.9881 GB, free: 4.895 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.01654, allocations: 15.84 kB / 0.9882 GB, free: 4.879 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.01763, allocations: 357.5 kB / 0.9885 GB, free: 4.527 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.01764, allocations: 4 kB / 0.9885 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.01764, allocations: 0 / 0.9885 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01765, allocations: 0 / 0.9885 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.01793, allocations: 197.1 kB / 0.9887 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.01794, allocations: 0 / 0.9887 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002102/0.01815, allocations: 43.89 kB / 0.9887 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.01815, allocations: 0 / 0.9887 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.01816, allocations: 3.938 kB / 0.9887 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.01816, allocations: 0 / 0.9887 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01816, allocations: 4 kB / 0.9887 GB, free: 4.25 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.01918, allocations: 439.1 kB / 0.9892 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.0192, allocations: 15.84 kB / 0.9892 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.01922, allocations: 0 / 0.9892 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.01943, allocations: 31.95 kB / 0.9892 GB, free: 3.758 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.155e-05/0.0195, allocations: 19.97 kB / 0.9892 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.01951, allocations: 4 kB / 0.9892 GB, free: 3.734 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.576e-05/0.01961, allocations: 112.9 kB / 0.9893 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.01961, allocations: 0 / 0.9893 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000319/0.01992, allocations: 47.83 kB / 0.9894 GB, free: 3.578 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.0002705/0.0202, allocations: 122.4 kB / 0.9895 GB, free: 3.453 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00101/0.0212, allocations: 371.1 kB / 0.9899 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.02121, allocations: 0 / 0.9899 GB, free: 3.078 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.02171, allocations: 227.2 kB / 0.9901 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.02205, allocations: 23.14 kB / 0.9901 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007509/0.0228, allocations: 348.5 kB / 0.9904 GB, free: 2.461 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001558/0.02296, allocations: 126.9 kB / 0.9906 GB, free: 2.309 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.051e-05/0.02304, allocations: 15.97 kB / 0.9906 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.02309, allocations: 12.5 kB / 0.9906 GB, free: 2.281 MB / 0.9356 GB Notification: Performance of SimCode: time 9.92e-07/0.02309, allocations: 0 / 0.9906 GB, free: 2.281 MB / 0.9356 GB Notification: Performance of Templates: time 0.006397/0.02948, allocations: 2.167 MB / 0.9927 GB, free: 160 kB / 0.9356 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.45607365295291]