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.001848/0.001848, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.002056/0.002056, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 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.607/1.607, allocations: 177.1 MB / 203.1 MB, free: 5.289 MB / 186.7 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 3.376/3.376, allocations: 429.5 MB / 0.6729 GB, free: 4.039 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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 1.994e-06/1.994e-06, allocations: 0 / 0.8775 GB, free: 6.617 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.131e-05/3.33e-05, allocations: 5.938 kB / 0.8775 GB, free: 6.613 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002133/0.002166, allocations: 0.8307 MB / 0.8783 GB, free: 5.812 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001559/0.003725, allocations: 1.04 MB / 0.8794 GB, free: 4.762 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.79e-05/0.003783, allocations: 11.88 kB / 0.8794 GB, free: 4.75 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001106/0.003894, allocations: 11.86 kB / 0.8794 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.536e-05/0.003949, allocations: 17.06 kB / 0.8794 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004106/0.00436, allocations: 100.2 kB / 0.8795 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001782/0.004538, allocations: 129.2 kB / 0.8796 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001567/0.004695, allocations: 33.28 kB / 0.8796 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.00482, allocations: 63.88 kB / 0.8797 GB, free: 4.406 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.982e-05/0.004909, allocations: 51.86 kB / 0.8797 GB, free: 4.355 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.426e-05/0.004944, allocations: 12.56 kB / 0.8798 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.005122, allocations: 79.92 kB / 0.8798 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.005196, allocations: 45.19 kB / 0.8799 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.418e-05/0.005261, allocations: 39.84 kB / 0.8799 GB, free: 4.184 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.005616, allocations: 231.2 kB / 0.8801 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.00562, allocations: 3.938 kB / 0.8801 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.212e-06/0.005622, allocations: 0.6562 kB / 0.8801 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.678e-06/0.005626, allocations: 0.6562 kB / 0.8801 GB, free: 3.953 MB / 0.8386 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.001049/0.006676, allocations: 0.4923 MB / 0.8806 GB, free: 3.422 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.006713, allocations: 9.625 kB / 0.8806 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.006793, allocations: 24.84 kB / 0.8807 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000224/0.007017, allocations: 144.3 kB / 0.8808 GB, free: 3.223 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.007039, allocations: 12.36 kB / 0.8808 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.007057, allocations: 6.062 kB / 0.8808 GB, free: 3.207 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003817/0.007439, allocations: 119.1 kB / 0.8809 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.007449, allocations: 192 / 0.8809 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.007475, allocations: 7.25 kB / 0.8809 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.007484, allocations: 4.375 kB / 0.8809 GB, free: 3.078 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.007903, allocations: 111.9 kB / 0.881 GB, free: 2.969 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000824/0.008727, allocations: 457.6 kB / 0.8815 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.008999, allocations: 87.02 kB / 0.8816 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.009222, allocations: 72.94 kB / 0.8816 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.974e-05/0.009282, allocations: 11.98 kB / 0.8816 GB, free: 2.305 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.009324, allocations: 37.39 kB / 0.8817 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 1.132e-06/0.009326, allocations: 4 kB / 0.8817 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.00085/0.01018, allocations: 267.4 kB / 0.8819 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.929e-05/0.01022, allocations: 55.41 kB / 0.882 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.01043, allocations: 219.9 kB / 0.8822 GB, free: 1.691 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.01045, allocations: 25.7 kB / 0.8822 GB, free: 1.66 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.01056, allocations: 163.3 kB / 0.8824 GB, free: 1.496 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.185e-05/0.01064, allocations: 79.44 kB / 0.8825 GB, free: 1.418 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.457e-05/0.01073, allocations: 47.36 kB / 0.8825 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002882/0.01101, allocations: 0.5156 MB / 0.883 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.01123, allocations: 51.97 kB / 0.8831 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.01145, allocations: 64.61 kB / 0.8831 GB, free: 0.7227 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.01188, allocations: 143.8 kB / 0.8833 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.01188, allocations: 0 / 0.8833 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005588/0.01244, allocations: 201.4 kB / 0.8834 GB, free: 384 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.01245, allocations: 4 kB / 0.8835 GB, free: 380 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.01247, allocations: 4 kB / 0.8835 GB, free: 376 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.01249, allocations: 0 / 0.8835 GB, free: 376 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.01265, allocations: 31.92 kB / 0.8835 GB, free: 344 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.01266, allocations: 0 / 0.8835 GB, free: 344 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.01277, allocations: 27.86 kB / 0.8835 GB, free: 316 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.381e-05/0.0128, allocations: 0 / 0.8835 GB, free: 316 kB / 0.8386 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.0001603/0.01296, allocations: 168.5 kB / 0.8837 GB, free: 136 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.013, allocations: 15.91 kB / 0.8837 GB, free: 120 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006583/0.01366, allocations: 230.7 kB / 0.8839 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.01367, allocations: 0 / 0.8839 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.01367, allocations: 4 kB / 0.8839 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.01368, allocations: 3.984 kB / 0.8839 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.01394, allocations: 180.7 kB / 0.8841 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.01394, allocations: 0 / 0.8841 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001372/0.01408, allocations: 27.91 kB / 0.8841 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.01408, allocations: 4 kB / 0.8841 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.0141, allocations: 11.94 kB / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.0141, allocations: 0 / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.0141, allocations: 0 / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006543/0.01476, allocations: 355.6 kB / 0.8845 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.01478, allocations: 15.84 kB / 0.8845 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.0148, allocations: 0 / 0.8845 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.01494, allocations: 23.97 kB / 0.8845 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.216e-05/0.01502, allocations: 15.98 kB / 0.8845 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.01504, allocations: 4 kB / 0.8845 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001309/0.01517, allocations: 161.4 kB / 0.8847 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01517, allocations: 3.938 kB / 0.8847 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003101/0.01548, allocations: 35.94 kB / 0.8847 GB, free: 15 MB / 0.8542 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.0002856/0.01577, allocations: 131.2 kB / 0.8848 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006317/0.0164, allocations: 226.9 kB / 0.8851 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.0164, allocations: 0 / 0.8851 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.01674, allocations: 171 kB / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.01706, allocations: 34.16 kB / 0.8853 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006314/0.0177, allocations: 303 kB / 0.8855 GB, free: 14.08 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001332/0.01783, allocations: 114.9 kB / 0.8857 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.504e-05/0.01789, allocations: 7.984 kB / 0.8857 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.094e-05/0.01795, allocations: 20.5 kB / 0.8857 GB, free: 13.92 MB / 0.8542 GB Notification: Performance of SimCode: time 4.81e-07/0.01795, allocations: 0 / 0.8857 GB, free: 13.92 MB / 0.8542 GB Notification: Performance of Templates: time 0.006528/0.02447, allocations: 2.173 MB / 0.8878 GB, free: 11.78 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 240] 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.577487965929322]