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.001391/0.001391, allocations: 88.72 kB / 19.44 MB, free: 356 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.00157/0.00157, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.477/1.477, allocations: 177.1 MB / 203.1 MB, free: 5.598 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.236/3.236, allocations: 429.6 MB / 0.673 GB, free: 3.871 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 2.023e-06/2.023e-06, allocations: 0.875 kB / 0.8777 GB, free: 6.402 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.619e-05, allocations: 2.312 kB / 0.8777 GB, free: 6.398 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001957/0.001983, allocations: 0.8176 MB / 0.8785 GB, free: 5.609 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.003561, allocations: 1.032 MB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.958e-05/0.00361, allocations: 0 / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.00372, allocations: 11.86 kB / 0.8795 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.731e-05/0.003777, allocations: 24.89 kB / 0.8795 GB, free: 4.531 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004595/0.004237, allocations: 100.2 kB / 0.8796 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001918/0.004429, allocations: 121.4 kB / 0.8797 GB, free: 4.316 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.004566, allocations: 33.28 kB / 0.8797 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003406/0.004907, allocations: 71.81 kB / 0.8798 GB, free: 4.215 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.747e-05/0.004994, allocations: 51.86 kB / 0.8799 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.04e-05/0.005025, allocations: 12 kB / 0.8799 GB, free: 4.152 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001681/0.005193, allocations: 89.19 kB / 0.88 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.782e-05/0.005271, allocations: 39.86 kB / 0.88 GB, free: 4.027 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.195e-05/0.005343, allocations: 39.89 kB / 0.88 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003375/0.00568, allocations: 227.2 kB / 0.8803 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.265e-06/0.005682, allocations: 0.7188 kB / 0.8803 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.71e-07/0.005683, allocations: 0 / 0.8803 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.005687, allocations: 0.6562 kB / 0.8803 GB, free: 3.766 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.0009255/0.006612, allocations: 421.1 kB / 0.8807 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.006648, allocations: 12.02 kB / 0.8807 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.873e-05/0.006717, allocations: 20.78 kB / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002167/0.006934, allocations: 152.3 kB / 0.8808 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.006948, allocations: 4.375 kB / 0.8808 GB, free: 3.117 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.006971, allocations: 8.375 kB / 0.8808 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006304/0.007601, allocations: 205.5 kB / 0.881 GB, free: 2.906 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.007617, allocations: 8.125 kB / 0.8811 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.007631, allocations: 1.094 kB / 0.8811 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.007642, allocations: 8.359 kB / 0.8811 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008344/0.008476, allocations: 226.7 kB / 0.8813 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.009501, allocations: 460 kB / 0.8817 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004836/0.009984, allocations: 150.5 kB / 0.8819 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004541/0.01044, allocations: 132.8 kB / 0.882 GB, free: 1.902 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.477e-05/0.01049, allocations: 11.98 kB / 0.882 GB, free: 1.891 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.01053, allocations: 30.56 kB / 0.882 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/0.01053, allocations: 0 / 0.882 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.001554/0.01208, allocations: 491.1 kB / 0.8825 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.01213, allocations: 51.41 kB / 0.8825 GB, free: 1.305 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.01229, allocations: 146.3 kB / 0.8827 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.01232, allocations: 29.69 kB / 0.8827 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.71e-05/0.0124, allocations: 108.5 kB / 0.8828 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.01248, allocations: 71.44 kB / 0.8829 GB, free: 0.9336 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.191e-05/0.01256, allocations: 37.7 kB / 0.8829 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001963/0.01275, allocations: 326.8 kB / 0.8832 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.01321, allocations: 135.9 kB / 0.8834 GB, free: 440 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004243/0.01364, allocations: 132.5 kB / 0.8835 GB, free: 308 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008922/0.01453, allocations: 296.8 kB / 0.8838 GB, free: 8 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.01453, allocations: 0 / 0.8838 GB, free: 8 kB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001018/0.01555, allocations: 341.2 kB / 0.8841 GB, free: 15.67 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.01557, allocations: 4 kB / 0.8841 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.01558, allocations: 4 kB / 0.8841 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.0156, allocations: 0 / 0.8841 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.01584, allocations: 35.95 kB / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.01585, allocations: 4 kB / 0.8841 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.01606, allocations: 35.84 kB / 0.8842 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.01609, allocations: 11.94 kB / 0.8842 GB, free: 15.57 MB / 0.8542 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.0001644/0.01625, allocations: 148 kB / 0.8843 GB, free: 15.42 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.484e-05/0.0163, allocations: 11.91 kB / 0.8843 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.01737, allocations: 370.5 kB / 0.8847 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.01738, allocations: 0 / 0.8847 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.01738, allocations: 0 / 0.8847 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.01739, allocations: 0 / 0.8847 GB, free: 15.04 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002801/0.01767, allocations: 197.4 kB / 0.8849 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.01767, allocations: 3.984 kB / 0.8849 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002253/0.0179, allocations: 35.95 kB / 0.8849 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.0179, allocations: 0 / 0.8849 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.01791, allocations: 0 / 0.8849 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.01791, allocations: 4 kB / 0.8849 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.01792, allocations: 0 / 0.8849 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.01898, allocations: 439.1 kB / 0.8853 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.01901, allocations: 23.84 kB / 0.8854 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.01903, allocations: 4 kB / 0.8854 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.01926, allocations: 31.95 kB / 0.8854 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.01933, allocations: 11.98 kB / 0.8854 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.01935, allocations: 7.984 kB / 0.8854 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.844e-05/0.01945, allocations: 109.5 kB / 0.8855 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01945, allocations: 0 / 0.8855 GB, free: 14.14 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003216/0.01977, allocations: 39.94 kB / 0.8856 GB, free: 14.1 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.0002604/0.02003, allocations: 131.2 kB / 0.8857 GB, free: 13.96 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001041/0.02107, allocations: 367 kB / 0.886 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.02107, allocations: 0 / 0.886 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005224/0.0216, allocations: 219.3 kB / 0.8862 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003555/0.02195, allocations: 34.91 kB / 0.8863 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006784/0.02263, allocations: 361.3 kB / 0.8866 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.02299, allocations: 114.9 kB / 0.8867 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.841e-05/0.02307, allocations: 15.98 kB / 0.8867 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.02313, allocations: 24.44 kB / 0.8868 GB, free: 12.79 MB / 0.8542 GB Notification: Performance of SimCode: time 4.01e-07/0.02313, allocations: 0 / 0.8868 GB, free: 12.79 MB / 0.8542 GB Notification: Performance of Templates: time 0.006061/0.02919, allocations: 2.177 MB / 0.8889 GB, free: 10.66 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=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.282759596011601]