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.001392/0.001392, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.001808/0.001808, allocations: 169 kB / 23.82 MB, free: 0.7461 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.056/1.056, allocations: 177.1 MB / 204.2 MB, free: 5.648 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.958/1.958, allocations: 377.8 MB / 0.6236 GB, free: 8.559 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 3.456e-06/3.456e-06, allocations: 0 / 0.8116 GB, free: 1.637 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.761e-05/4.107e-05, allocations: 2.312 kB / 0.8116 GB, free: 1.633 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002504/0.002545, allocations: 0.8445 MB / 0.8124 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001655/0.0042, allocations: 1.061 MB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.293e-05/0.004273, allocations: 4.844 kB / 0.8135 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.004408, allocations: 11.88 kB / 0.8135 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.943e-05/0.004477, allocations: 28.97 kB / 0.8135 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005327/0.00501, allocations: 92.67 kB / 0.8136 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001838/0.005194, allocations: 131.6 kB / 0.8137 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.005353, allocations: 25.95 kB / 0.8138 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.005479, allocations: 75.86 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.543e-05/0.005555, allocations: 44.77 kB / 0.8139 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.005582, allocations: 8 kB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.005742, allocations: 93.03 kB / 0.814 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.216e-05/0.005804, allocations: 43.89 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.005858, allocations: 31.86 kB / 0.814 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003072/0.006165, allocations: 183.3 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.00617, allocations: 1.562 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.473e-06/0.006172, allocations: 0 / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.006178, allocations: 0 / 0.8142 GB, free: 14.98 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.0006781/0.006856, allocations: 497.2 kB / 0.8147 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.006907, allocations: 12.03 kB / 0.8147 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.006979, allocations: 20.8 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.007196, allocations: 161.8 kB / 0.8149 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.00721, allocations: 384 / 0.8149 GB, free: 14.24 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.007237, allocations: 12.38 kB / 0.8149 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.007574, allocations: 120.1 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.007587, allocations: 1.188 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.007604, allocations: 8.312 kB / 0.815 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.007617, allocations: 4.375 kB / 0.815 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.007718, allocations: 36.64 kB / 0.815 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.008413, allocations: 420.7 kB / 0.8154 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.008516, allocations: 51.62 kB / 0.8155 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.509e-05/0.008591, allocations: 35.67 kB / 0.8155 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 5.867e-05/0.00865, allocations: 5.125 kB / 0.8155 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.008678, allocations: 33.39 kB / 0.8156 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=25): time 2.245e-06/0.00868, allocations: 0 / 0.8156 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25): time 0.0003795/0.009059, allocations: 166.5 kB / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.009098, allocations: 59.42 kB / 0.8158 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.009242, allocations: 205.4 kB / 0.816 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.009261, allocations: 29.7 kB / 0.816 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.009336, allocations: 160.5 kB / 0.8162 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.556e-05/0.009402, allocations: 67.39 kB / 0.8162 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.173e-05/0.009474, allocations: 47.36 kB / 0.8163 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.009628, allocations: 0.5018 MB / 0.8168 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.472e-05/0.009693, allocations: 19.98 kB / 0.8168 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.892e-05/0.009752, allocations: 22.41 kB / 0.8168 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.009883, allocations: 75.67 kB / 0.8169 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.009886, allocations: 0 / 0.8169 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002244/0.01011, allocations: 130.2 kB / 0.817 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.01013, allocations: 4 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.01015, allocations: 4 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.01017, allocations: 0 / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.01031, allocations: 23.97 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.01032, allocations: 3.672 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.315e-05/0.0104, allocations: 23.88 kB / 0.8171 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.01043, allocations: 0 / 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 0.0001242/0.01055, allocations: 172.5 kB / 0.8172 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.333e-05/0.0106, allocations: 15.91 kB / 0.8172 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003013/0.0109, allocations: 154.8 kB / 0.8174 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.0109, allocations: 0.625 kB / 0.8174 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.01091, allocations: 0 / 0.8174 GB, free: 11.53 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.01091, allocations: 4.484 kB / 0.8174 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002119/0.01112, allocations: 184.9 kB / 0.8176 GB, free: 11.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.01113, allocations: 3.938 kB / 0.8176 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.01124, allocations: 24.53 kB / 0.8176 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.01124, allocations: 5.391 kB / 0.8176 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.01126, allocations: 4 kB / 0.8176 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.01126, allocations: 4.078 kB / 0.8176 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.01126, allocations: 4.516 kB / 0.8176 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.01156, allocations: 286.6 kB / 0.8179 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.896e-05/0.01158, allocations: 12.53 kB / 0.8179 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.0116, allocations: 5.906 kB / 0.8179 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.01172, allocations: 19.98 kB / 0.8179 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.143e-05/0.01179, allocations: 15.97 kB / 0.8179 GB, free: 10.92 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.0118, allocations: 0 / 0.8179 GB, free: 10.92 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.695e-05/0.01189, allocations: 151.2 kB / 0.8181 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01189, allocations: 0.5312 kB / 0.8181 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003598/0.01225, allocations: 40.75 kB / 0.8181 GB, free: 10.73 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.000292/0.01254, allocations: 126.5 kB / 0.8182 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002954/0.01283, allocations: 148.3 kB / 0.8184 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.01284, allocations: 0 / 0.8184 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.01297, allocations: 123 kB / 0.8185 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003945/0.01337, allocations: 34.17 kB / 0.8185 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006484/0.01402, allocations: 303.1 kB / 0.8188 GB, free: 9.953 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.928e-05/0.01408, allocations: 79.33 kB / 0.8189 GB, free: 9.855 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.299e-05/0.01416, allocations: 11.98 kB / 0.8189 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.01421, allocations: 16.5 kB / 0.8189 GB, free: 9.828 MB / 0.7761 GB Notification: Performance of SimCode: time 1.182e-06/0.01421, allocations: 0 / 0.8189 GB, free: 9.828 MB / 0.7761 GB Notification: Performance of Templates: time 0.006276/0.02049, allocations: 2.18 MB / 0.821 GB, free: 7.715 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.576870046090335]