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.001082/0.001082, allocations: 80.3 kB / 21.47 MB, free: 3.031 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.00114/0.00114, allocations: 168 kB / 24.86 MB, free: 9.27 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.99/0.99, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.915/1.915, allocations: 377.9 MB / 0.6247 GB, free: 8.43 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 2.034e-06/2.034e-06, allocations: 0.9844 kB / 0.8129 GB, free: 1.367 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.689e-05/1.893e-05, allocations: 2.312 kB / 0.8129 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001833/0.001852, allocations: 0.8224 MB / 0.8137 GB, free: 0.5547 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.00142/0.003271, allocations: 1.065 MB / 0.8147 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.053e-05/0.003332, allocations: 4.906 kB / 0.8147 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.003439, allocations: 7.875 kB / 0.8147 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.059e-05/0.0035, allocations: 28.92 kB / 0.8147 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.00039/0.00389, allocations: 92.66 kB / 0.8148 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.004036, allocations: 127.6 kB / 0.815 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.004163, allocations: 33.94 kB / 0.815 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.937e-05/0.004262, allocations: 67.88 kB / 0.8151 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.697e-05/0.004329, allocations: 45.12 kB / 0.8151 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.391e-05/0.004353, allocations: 12 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.004498, allocations: 95.78 kB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 5.064e-05/0.004549, allocations: 36.72 kB / 0.8152 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.004593, allocations: 39.84 kB / 0.8153 GB, free: 14.9 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.004818, allocations: 179.3 kB / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.00482, allocations: 0.9062 kB / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.31e-07/0.00482, allocations: 0 / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.546e-06/0.004824, allocations: 0.875 kB / 0.8154 GB, free: 14.73 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.0005614/0.005385, allocations: 497 kB / 0.8159 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.005421, allocations: 8.031 kB / 0.8159 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.005473, allocations: 28.8 kB / 0.816 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.005639, allocations: 156.4 kB / 0.8161 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.005652, allocations: 8.375 kB / 0.8161 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.005667, allocations: 4.375 kB / 0.8161 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.005924, allocations: 116.7 kB / 0.8162 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.005933, allocations: 192 / 0.8162 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.005949, allocations: 8.375 kB / 0.8162 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.005956, allocations: 1.5 kB / 0.8162 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.46e-05/0.006031, allocations: 39.34 kB / 0.8163 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/0.006551, allocations: 389.9 kB / 0.8166 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.002e-05/0.006631, allocations: 46.94 kB / 0.8167 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.158e-05/0.006682, allocations: 27.67 kB / 0.8167 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 4.247e-05/0.006725, allocations: 13.53 kB / 0.8167 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.006747, allocations: 33.39 kB / 0.8168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.006748, allocations: 0 / 0.8168 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25): time 0.0002794/0.007028, allocations: 157.7 kB / 0.8169 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.007052, allocations: 52.81 kB / 0.817 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/0.00714, allocations: 205.8 kB / 0.8172 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.007152, allocations: 25.7 kB / 0.8172 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.007204, allocations: 159.2 kB / 0.8173 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.007248, allocations: 71.91 kB / 0.8174 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.359e-05/0.007292, allocations: 43.95 kB / 0.8174 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.007408, allocations: 0.5039 MB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.812e-05/0.007436, allocations: 21.95 kB / 0.818 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.529e-05/0.007462, allocations: 14.41 kB / 0.818 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.158e-05/0.007533, allocations: 69.84 kB / 0.818 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.007535, allocations: 0 / 0.818 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001168/0.007652, allocations: 113.5 kB / 0.8181 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.007661, allocations: 4.625 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.007671, allocations: 0 / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.244e-06/0.007678, allocations: 4.719 kB / 0.8182 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.174e-05/0.00776, allocations: 25.19 kB / 0.8182 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.496e-06/0.007764, allocations: 4 kB / 0.8182 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.217e-05/0.007816, allocations: 20.5 kB / 0.8182 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.007831, allocations: 4 kB / 0.8182 GB, free: 11.72 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.723e-05/0.007909, allocations: 171.9 kB / 0.8184 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.007932, allocations: 16.81 kB / 0.8184 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.008087, allocations: 147.4 kB / 0.8185 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.00809, allocations: 4.562 kB / 0.8185 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.008091, allocations: 0.8125 kB / 0.8185 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.008095, allocations: 3.984 kB / 0.8185 GB, free: 11.37 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.008416, allocations: 149 kB / 0.8187 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.00842, allocations: 4.875 kB / 0.8187 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.27e-05/0.008483, allocations: 29.31 kB / 0.8187 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.008484, allocations: 3.938 kB / 0.8187 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.008491, allocations: 4 kB / 0.8187 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.008493, allocations: 4 kB / 0.8187 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.008493, allocations: 0.875 kB / 0.8187 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.008649, allocations: 274.8 kB / 0.819 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.379e-05/0.008663, allocations: 22.03 kB / 0.819 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.008675, allocations: 0 / 0.819 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.102e-05/0.008736, allocations: 15.98 kB / 0.819 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.008785, allocations: 19.97 kB / 0.819 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.008791, allocations: 0 / 0.819 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.685e-05/0.008838, allocations: 150.5 kB / 0.8192 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008838, allocations: 0 / 0.8192 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001716/0.00901, allocations: 47.38 kB / 0.8192 GB, free: 10.62 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.000128/0.009138, allocations: 125.5 kB / 0.8193 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001503/0.009288, allocations: 143.3 kB / 0.8195 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 9.42e-07/0.009289, allocations: 0 / 0.8195 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 7.362e-05/0.009363, allocations: 115.2 kB / 0.8196 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.009565, allocations: 37 kB / 0.8196 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003083/0.009873, allocations: 294.4 kB / 0.8199 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.93e-05/0.009912, allocations: 75.33 kB / 0.82 GB, free: 9.77 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.831e-05/0.00994, allocations: 4.75 kB / 0.82 GB, free: 9.766 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.526e-05/0.01002, allocations: 94.78 kB / 0.8201 GB, free: 9.672 MB / 0.7761 GB Notification: Performance of SimCode: time 7.32e-07/0.01002, allocations: 1.094 kB / 0.8201 GB, free: 9.672 MB / 0.7761 GB Notification: Performance of Templates: time 0.003723/0.01374, allocations: 2.436 MB / 0.8225 GB, free: 7.293 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.2560945567674935]