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.001256/0.001256, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001498/0.002754, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001118/0.001118, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001525/0.002644, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9719/0.9719, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1156/1.088, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.898/1.898, allocations: 378.4 MB / 0.6079 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.5513/2.449, allocations: 123.3 MB / 0.7283 GB, free: 5.746 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.858e-06/3.858e-06, allocations: 4.547 kB / 0.7297 GB, free: 4.363 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.668e-05/3.054e-05, allocations: 2.312 kB / 0.7297 GB, free: 4.359 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001435/0.001466, allocations: 0.8865 MB / 0.7306 GB, free: 3.508 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0008904/0.002356, allocations: 1.06 MB / 0.7316 GB, free: 2.438 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.342e-05/0.002399, allocations: 0 / 0.7316 GB, free: 2.438 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 6.263e-05/0.002462, allocations: 23.8 kB / 0.7316 GB, free: 2.414 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.008e-05/0.002502, allocations: 14.36 kB / 0.7317 GB, free: 2.41 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.002762, allocations: 96.34 kB / 0.7317 GB, free: 2.316 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.002886, allocations: 123.4 kB / 0.7319 GB, free: 2.207 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.002999, allocations: 33.94 kB / 0.7319 GB, free: 2.172 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.003107, allocations: 88.59 kB / 0.732 GB, free: 2.082 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.998e-05/0.003167, allocations: 44.39 kB / 0.732 GB, free: 2.039 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.003189, allocations: 8 kB / 0.732 GB, free: 2.031 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.003324, allocations: 105.2 kB / 0.7321 GB, free: 1.93 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 4.672e-05/0.003371, allocations: 35.92 kB / 0.7322 GB, free: 1.895 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 3.342e-05/0.003404, allocations: 27.88 kB / 0.7322 GB, free: 1.867 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.003581, allocations: 148 kB / 0.7323 GB, free: 1.723 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.003593, allocations: 0 / 0.7323 GB, free: 1.723 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.51e-07/0.003594, allocations: 0.5312 kB / 0.7323 GB, free: 1.723 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.412e-05/0.003608, allocations: 0 / 0.7323 GB, free: 1.723 MB / 0.698 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.0004786/0.004087, allocations: 401.2 kB / 0.7327 GB, free: 1.309 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.004116, allocations: 8.031 kB / 0.7327 GB, free: 1.301 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.004156, allocations: 13.8 kB / 0.7327 GB, free: 1.289 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.004291, allocations: 142.3 kB / 0.7329 GB, free: 1.125 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.699e-06/0.004301, allocations: 9.641 kB / 0.7329 GB, free: 1.117 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.004316, allocations: 12.38 kB / 0.7329 GB, free: 1.105 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.004512, allocations: 130.8 kB / 0.733 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.00452, allocations: 192 / 0.733 GB, free: 0.9688 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.004541, allocations: 8.594 kB / 0.733 GB, free: 0.9609 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.00455, allocations: 0 / 0.733 GB, free: 0.9609 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.511e-05/0.004615, allocations: 29.42 kB / 0.7331 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003769/0.004992, allocations: 309.5 kB / 0.7333 GB, free: 0.6172 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.539e-05/0.005057, allocations: 83.3 kB / 0.7334 GB, free: 0.5273 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.187e-05/0.005089, allocations: 20.86 kB / 0.7334 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.00513, allocations: 9.391 kB / 0.7335 GB, free: 0.4961 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.005148, allocations: 34.56 kB / 0.7335 GB, free: 464 kB / 0.698 GB Notification: Performance of pre-optimization done (n=25): time 1.142e-06/0.005149, allocations: 3.938 kB / 0.7335 GB, free: 460 kB / 0.698 GB Notification: Performance of matching and sorting (n=25): time 0.0001781/0.005327, allocations: 126.5 kB / 0.7336 GB, free: 328 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.502e-05/0.005352, allocations: 55.41 kB / 0.7337 GB, free: 260 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.445e-05/0.005427, allocations: 146 kB / 0.7338 GB, free: 104 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.005441, allocations: 34.23 kB / 0.7338 GB, free: 64 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.005487, allocations: 101.3 kB / 0.7339 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.374e-05/0.005531, allocations: 71.36 kB / 0.734 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.763e-05/0.005568, allocations: 35.44 kB / 0.734 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.012e-05/0.005649, allocations: 330.7 kB / 0.7344 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.985e-05/0.005678, allocations: 18.83 kB / 0.7344 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.506e-05/0.005703, allocations: 24.19 kB / 0.7344 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.438e-05/0.005778, allocations: 86.5 kB / 0.7345 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.005779, allocations: 0.5 kB / 0.7345 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of matching and sorting (n=25) (initialization): time 9.327e-05/0.005873, allocations: 90.78 kB / 0.7346 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.005885, allocations: 4 kB / 0.7346 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.0059, allocations: 3.984 kB / 0.7346 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.005915, allocations: 8.531 kB / 0.7346 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.93e-05/0.005994, allocations: 21.11 kB / 0.7346 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-06/0.005996, allocations: 0 / 0.7346 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.853e-05/0.006045, allocations: 28.59 kB / 0.7346 GB, free: 15.23 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.006061, allocations: 0 / 0.7346 GB, free: 15.23 MB / 0.7136 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.776e-05/0.006139, allocations: 132 kB / 0.7348 GB, free: 15.1 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.006157, allocations: 9.031 kB / 0.7348 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.006296, allocations: 137.2 kB / 0.7349 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.006298, allocations: 3.938 kB / 0.7349 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.0063, allocations: 0.5312 kB / 0.7349 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.006303, allocations: 1.719 kB / 0.7349 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.006419, allocations: 125.7 kB / 0.735 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.006422, allocations: 0 / 0.735 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.655e-05/0.006478, allocations: 23.97 kB / 0.735 GB, free: 14.78 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.372e-05/0.006492, allocations: 25.05 kB / 0.7351 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.61e-07/0.006493, allocations: 0 / 0.7351 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.006498, allocations: 0 / 0.7351 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.006499, allocations: 1.406 kB / 0.7351 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.0065, allocations: 3.938 kB / 0.7351 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001326/0.006632, allocations: 254.2 kB / 0.7353 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.006643, allocations: 0 / 0.7353 GB, free: 14.49 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.381e-05/0.006697, allocations: 12.64 kB / 0.7353 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.095e-05/0.006738, allocations: 20.69 kB / 0.7353 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.515e-06/0.006745, allocations: 4 kB / 0.7353 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.329e-05/0.006769, allocations: 31.52 kB / 0.7354 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4e-08/0.006769, allocations: 0 / 0.7354 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001453/0.006914, allocations: 44.64 kB / 0.7354 GB, free: 14.38 MB / 0.7136 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.0001339/0.007048, allocations: 110.6 kB / 0.7355 GB, free: 14.27 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001365/0.007184, allocations: 140.1 kB / 0.7357 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.00719, allocations: 0 / 0.7357 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.624e-05/0.007266, allocations: 118.9 kB / 0.7358 GB, free: 13.98 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.007481, allocations: 217 kB / 0.736 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004494/0.007931, allocations: 305 kB / 0.7363 GB, free: 13.4 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.074e-05/0.007972, allocations: 75.62 kB / 0.7363 GB, free: 13.31 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.062e-05/0.008002, allocations: 10.73 kB / 0.7364 GB, free: 13.3 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.52e-05/0.008077, allocations: 71.36 kB / 0.7364 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of SimCode: time 1.052e-06/0.008079, allocations: 0 / 0.7364 GB, free: 13.23 MB / 0.7136 GB Notification: Performance of Templates: time 0.003417/0.0115, allocations: 2.098 MB / 0.7385 GB, free: 11.25 MB / 0.7136 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 -ignoreHideResult -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.051505906507373]