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.001008/0.001008, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001024/0.001024, allocations: 161.4 kB / 23.82 MB, free: 0.7539 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.007/1.007, allocations: 177.1 MB / 204.2 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] 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 1.885/1.885, allocations: 377.8 MB / 0.6236 GB, free: 8.574 MB / 0.5886 GB " [Timeout remaining time 177] 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.[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.643e-06/1.643e-06, allocations: 0 / 0.8116 GB, free: 1.652 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.611e-05, allocations: 9.062 kB / 0.8116 GB, free: 1.645 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001302/0.001318, allocations: 0.841 MB / 0.8124 GB, free: 0.8203 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001035/0.002353, allocations: 1.063 MB / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-05/0.002401, allocations: 0 / 0.8135 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001036/0.002505, allocations: 11.86 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.715e-05/0.002552, allocations: 29.31 kB / 0.8135 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000364/0.002916, allocations: 99.75 kB / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.003036, allocations: 119.6 kB / 0.8137 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.003148, allocations: 33.94 kB / 0.8138 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.65e-05/0.003225, allocations: 72.95 kB / 0.8138 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.003277, allocations: 43.89 kB / 0.8139 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.003297, allocations: 12 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.003404, allocations: 88.38 kB / 0.814 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 4.596e-05/0.003449, allocations: 43.89 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.003486, allocations: 40.33 kB / 0.814 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.003689, allocations: 176.6 kB / 0.8142 GB, free: 15 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.00369, allocations: 0 / 0.8142 GB, free: 15 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.62e-07/0.003691, allocations: 4 kB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.003695, allocations: 0 / 0.8142 GB, free: 14.99 MB / 0.7761 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.0004654/0.00416, allocations: 496.9 kB / 0.8147 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.004193, allocations: 9.406 kB / 0.8147 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.346e-05/0.004247, allocations: 24.8 kB / 0.8147 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.004392, allocations: 156.3 kB / 0.8149 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.004404, allocations: 12.36 kB / 0.8149 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.004416, allocations: 5.906 kB / 0.8149 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.004642, allocations: 119.4 kB / 0.815 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.004651, allocations: 5.469 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.004664, allocations: 8.375 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.004672, allocations: 384 / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.759e-05/0.004739, allocations: 39.92 kB / 0.8151 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005071/0.005247, allocations: 421.8 kB / 0.8155 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.456e-05/0.005331, allocations: 55 kB / 0.8155 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.909e-05/0.00538, allocations: 31.67 kB / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.005425, allocations: 6.125 kB / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.005448, allocations: 41.39 kB / 0.8156 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=25): time 1.293e-06/0.005449, allocations: 0 / 0.8156 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25): time 0.0002516/0.0057, allocations: 160.1 kB / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.00573, allocations: 63.39 kB / 0.8158 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.581e-05/0.005826, allocations: 208.7 kB / 0.816 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.005838, allocations: 26.23 kB / 0.816 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.878e-05/0.005887, allocations: 156 kB / 0.8162 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/0.005932, allocations: 71.39 kB / 0.8162 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.005974, allocations: 43.89 kB / 0.8163 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.006082, allocations: 0.5 MB / 0.8168 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.107e-05/0.006123, allocations: 25.55 kB / 0.8168 GB, free: 12.17 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.43e-05/0.006157, allocations: 20 kB / 0.8168 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.188e-05/0.006239, allocations: 74.08 kB / 0.8169 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.006241, allocations: 0 / 0.8169 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001285/0.006369, allocations: 126.6 kB / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.00638, allocations: 8 kB / 0.817 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.006392, allocations: 0.7188 kB / 0.817 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.006403, allocations: 3.938 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.006506, allocations: 25.03 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.00651, allocations: 0 / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.054e-05/0.006561, allocations: 28.72 kB / 0.8171 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.006578, allocations: 4 kB / 0.8171 GB, free: 11.88 MB / 0.7761 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 7.72e-05/0.006655, allocations: 162 kB / 0.8172 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.006679, allocations: 20.94 kB / 0.8172 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.006857, allocations: 151.5 kB / 0.8174 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.006859, allocations: 0 / 0.8174 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.006862, allocations: 5.969 kB / 0.8174 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.006865, allocations: 0 / 0.8174 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.006993, allocations: 188.3 kB / 0.8176 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.006996, allocations: 0 / 0.8176 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.623e-05/0.007053, allocations: 19.98 kB / 0.8176 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.007056, allocations: 10.3 kB / 0.8176 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.007064, allocations: 0 / 0.8176 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.007066, allocations: 4 kB / 0.8176 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.007067, allocations: 0 / 0.8176 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001972/0.007264, allocations: 286.8 kB / 0.8179 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.25e-05/0.007277, allocations: 11.91 kB / 0.8179 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.007295, allocations: 4.5 kB / 0.8179 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/0.007385, allocations: 17.05 kB / 0.8179 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/0.007449, allocations: 19.91 kB / 0.8179 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.00746, allocations: 7.984 kB / 0.8179 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.089e-05/0.007521, allocations: 144.1 kB / 0.8181 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.007521, allocations: 4 kB / 0.8181 GB, free: 10.78 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002657/0.007787, allocations: 41.59 kB / 0.8181 GB, free: 10.74 MB / 0.7761 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.0001494/0.007936, allocations: 126.1 kB / 0.8182 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002141/0.00815, allocations: 159 kB / 0.8184 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.008152, allocations: 1.344 kB / 0.8184 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.008254, allocations: 119 kB / 0.8185 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.008534, allocations: 29.2 kB / 0.8185 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004194/0.008954, allocations: 295.3 kB / 0.8188 GB, free: 9.969 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.21e-05/0.009006, allocations: 79.31 kB / 0.8189 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.032e-05/0.009056, allocations: 11.98 kB / 0.8189 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.921e-05/0.009095, allocations: 16.5 kB / 0.8189 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of SimCode: time 5.31e-07/0.009096, allocations: 2.312 kB / 0.8189 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of Templates: time 0.004511/0.01361, allocations: 2.38 MB / 0.8212 GB, free: 7.523 MB / 0.7761 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.15665381308645]