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.001341/0.001341, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.00148/0.00148, allocations: 169 kB / 23.28 MB, free: 1.219 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 0.9616/0.9616, allocations: 177.1 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] 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.357/2.357, allocations: 438.1 MB / 0.682 GB, free: 14.16 MB / 0.6511 GB " [Timeout remaining time 177] 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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.966e-06/2.966e-06, allocations: 0 / 0.8898 GB, free: 9.676 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.484e-05/2.78e-05, allocations: 2.312 kB / 0.8898 GB, free: 9.672 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.004814/0.004842, allocations: 0.8381 MB / 0.8906 GB, free: 8.836 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.006084, allocations: 1.046 MB / 0.8917 GB, free: 7.777 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.436e-05/0.006148, allocations: 4 kB / 0.8917 GB, free: 7.773 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.006254, allocations: 15.8 kB / 0.8917 GB, free: 7.758 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 5.283e-05/0.006307, allocations: 27.78 kB / 0.8917 GB, free: 7.73 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004066/0.006713, allocations: 99.69 kB / 0.8918 GB, free: 7.633 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.006855, allocations: 119.6 kB / 0.8919 GB, free: 7.516 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.00698, allocations: 33.3 kB / 0.8919 GB, free: 7.484 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 9.832e-05/0.007078, allocations: 71.86 kB / 0.892 GB, free: 7.414 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 6.141e-05/0.00714, allocations: 47.88 kB / 0.8921 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.007162, allocations: 8 kB / 0.8921 GB, free: 7.359 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.007305, allocations: 95.83 kB / 0.8922 GB, free: 7.266 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.003115/0.01042, allocations: 39.84 kB / 0.8922 GB, free: 7.227 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.27e-05/0.01047, allocations: 35.86 kB / 0.8922 GB, free: 7.191 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.01072, allocations: 179.3 kB / 0.8924 GB, free: 7.016 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.01073, allocations: 0 / 0.8924 GB, free: 7.016 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.042e-06/0.01073, allocations: 0 / 0.8924 GB, free: 7.016 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.01073, allocations: 0 / 0.8924 GB, free: 7.016 MB / 0.8542 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.0005282/0.01126, allocations: 0.4958 MB / 0.8929 GB, free: 6.48 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.01131, allocations: 12.62 kB / 0.8929 GB, free: 6.469 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.107e-05/0.01136, allocations: 28.8 kB / 0.8929 GB, free: 6.441 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.0115, allocations: 144.3 kB / 0.8931 GB, free: 6.273 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.01151, allocations: 8.375 kB / 0.8931 GB, free: 6.266 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.01153, allocations: 4.375 kB / 0.8931 GB, free: 6.262 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002274/0.01176, allocations: 123.8 kB / 0.8932 GB, free: 6.133 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.01176, allocations: 4.188 kB / 0.8932 GB, free: 6.129 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.01177, allocations: 4.375 kB / 0.8932 GB, free: 6.125 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.01178, allocations: 384 / 0.8932 GB, free: 6.125 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.074e-05/0.01184, allocations: 36.5 kB / 0.8932 GB, free: 6.09 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004966/0.01234, allocations: 396 kB / 0.8936 GB, free: 5.676 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 7.179e-05/0.01241, allocations: 46.94 kB / 0.8937 GB, free: 5.617 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.01245, allocations: 27.67 kB / 0.8937 GB, free: 5.586 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.883e-05/0.0125, allocations: 8 kB / 0.8937 GB, free: 5.578 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.01253, allocations: 41.39 kB / 0.8937 GB, free: 5.527 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.01253, allocations: 0 / 0.8937 GB, free: 5.527 MB / 0.8542 GB Notification: Performance of matching and sorting (n=25): time 0.0002641/0.01279, allocations: 149.2 kB / 0.8939 GB, free: 5.379 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.01282, allocations: 59.33 kB / 0.8939 GB, free: 5.309 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.01293, allocations: 212.3 kB / 0.8941 GB, free: 5.086 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.01294, allocations: 25.7 kB / 0.8942 GB, free: 5.055 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.154e-05/0.013, allocations: 159.2 kB / 0.8943 GB, free: 4.895 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.366e-05/0.01306, allocations: 75.36 kB / 0.8944 GB, free: 4.82 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.635e-05/0.01311, allocations: 39.34 kB / 0.8944 GB, free: 4.773 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.003192/0.0163, allocations: 0.5078 MB / 0.8949 GB, free: 4.254 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.682e-05/0.01636, allocations: 19.98 kB / 0.8949 GB, free: 4.234 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.497e-05/0.0164, allocations: 16 kB / 0.8949 GB, free: 4.219 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.264e-05/0.01649, allocations: 67.14 kB / 0.895 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01649, allocations: 0 / 0.895 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001715/0.01666, allocations: 117.5 kB / 0.8951 GB, free: 4.031 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.01668, allocations: 4 kB / 0.8951 GB, free: 4.027 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.01669, allocations: 4 kB / 0.8951 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.01671, allocations: 0 / 0.8951 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.01682, allocations: 27.97 kB / 0.8952 GB, free: 3.996 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-06/0.01682, allocations: 0 / 0.8952 GB, free: 3.996 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.613e-05/0.01688, allocations: 27.88 kB / 0.8952 GB, free: 3.969 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.01691, allocations: 0 / 0.8952 GB, free: 3.969 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.0001033/0.01701, allocations: 168.5 kB / 0.8953 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.249e-05/0.01704, allocations: 11.91 kB / 0.8954 GB, free: 3.781 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002336/0.01728, allocations: 150.7 kB / 0.8955 GB, free: 3.621 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.01728, allocations: 0 / 0.8955 GB, free: 3.621 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.01728, allocations: 0 / 0.8955 GB, free: 3.621 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.01729, allocations: 0 / 0.8955 GB, free: 3.621 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001756/0.01746, allocations: 153.1 kB / 0.8956 GB, free: 3.445 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.01747, allocations: 3.938 kB / 0.8957 GB, free: 3.441 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.302e-05/0.01755, allocations: 23.97 kB / 0.8957 GB, free: 3.418 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.01755, allocations: 0 / 0.8957 GB, free: 3.418 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.01756, allocations: 12 kB / 0.8957 GB, free: 3.406 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.01757, allocations: 0 / 0.8957 GB, free: 3.406 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.01757, allocations: 0 / 0.8957 GB, free: 3.406 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.01778, allocations: 271.1 kB / 0.8959 GB, free: 3.125 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.715e-05/0.0178, allocations: 23.72 kB / 0.896 GB, free: 3.102 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.01781, allocations: 8 kB / 0.896 GB, free: 3.094 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.649e-05/0.0179, allocations: 19.92 kB / 0.896 GB, free: 3.074 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.01795, allocations: 15.97 kB / 0.896 GB, free: 3.059 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/0.01796, allocations: 4 kB / 0.896 GB, free: 3.055 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.505e-05/0.01801, allocations: 145 kB / 0.8962 GB, free: 2.914 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01801, allocations: 0 / 0.8962 GB, free: 2.914 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002696/0.01828, allocations: 43.94 kB / 0.8962 GB, free: 2.871 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.0002019/0.01849, allocations: 121.1 kB / 0.8963 GB, free: 2.746 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001885/0.01867, allocations: 151 kB / 0.8965 GB, free: 2.582 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.01868, allocations: 0 / 0.8965 GB, free: 2.582 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 9.163e-05/0.01877, allocations: 111 kB / 0.8966 GB, free: 2.457 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003303/0.02207, allocations: 27.92 kB / 0.8966 GB, free: 2.43 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005034/0.02257, allocations: 303.3 kB / 0.8969 GB, free: 2.102 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.46e-05/0.02263, allocations: 79.31 kB / 0.8969 GB, free: 2.004 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.919e-05/0.02268, allocations: 7.984 kB / 0.897 GB, free: 1.996 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.844e-05/0.02278, allocations: 94.19 kB / 0.897 GB, free: 1.902 MB / 0.8542 GB Notification: Performance of SimCode: time 7.91e-07/0.02278, allocations: 0 / 0.897 GB, free: 1.902 MB / 0.8542 GB Notification: Performance of Templates: time 0.0077/0.03048, allocations: 2.41 MB / 0.8994 GB, free: 15.52 MB / 0.8698 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","",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.354668704792857]