Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0009147/0.0009147, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.0008962/0.0008962, allocations: 181 kB / 24.09 MB, free: 420 kB / 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.9052/0.9052, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.694/1.694, allocations: 359 MB / 0.6055 GB, free: 10.87 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 0.7876 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.574e-05/2.775e-05, allocations: 8.5 kB / 0.7876 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001978/0.002006, allocations: 0.8316 MB / 0.7884 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.003394, allocations: 1.061 MB / 0.7895 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.163e-05/0.003456, allocations: 5.562 kB / 0.7895 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.003567, allocations: 11.86 kB / 0.7895 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.003629, allocations: 20.34 kB / 0.7895 GB, free: 10.19 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004473/0.004076, allocations: 100.9 kB / 0.7896 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.004251, allocations: 123.6 kB / 0.7897 GB, free: 9.973 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.004404, allocations: 33.28 kB / 0.7898 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.004511, allocations: 70.09 kB / 0.7898 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.938e-05/0.00458, allocations: 51.81 kB / 0.7899 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.004607, allocations: 8 kB / 0.7899 GB, free: 9.816 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.004755, allocations: 87.84 kB / 0.79 GB, free: 9.73 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.353e-05/0.004808, allocations: 43.91 kB / 0.79 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.004851, allocations: 35.84 kB / 0.79 GB, free: 9.652 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.005113, allocations: 181.3 kB / 0.7902 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.005115, allocations: 0 / 0.7902 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of FrontEnd: time 7.01e-07/0.005115, allocations: 0 / 0.7902 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.005119, allocations: 0 / 0.7902 GB, free: 9.477 MB / 0.7448 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.000553/0.005672, allocations: 496.5 kB / 0.7907 GB, free: 8.953 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.005714, allocations: 12.03 kB / 0.7907 GB, free: 8.941 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.00576, allocations: 25.33 kB / 0.7907 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.005914, allocations: 161 kB / 0.7909 GB, free: 8.738 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.2e-05/0.005926, allocations: 4.375 kB / 0.7909 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.005939, allocations: 4.375 kB / 0.7909 GB, free: 8.73 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.006253, allocations: 123.5 kB / 0.791 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.006262, allocations: 5.125 kB / 0.791 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.006273, allocations: 384 / 0.791 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.006281, allocations: 4.375 kB / 0.791 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.011e-05/0.006351, allocations: 29.08 kB / 0.791 GB, free: 8.566 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005221/0.006873, allocations: 397.3 kB / 0.7914 GB, free: 8.152 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.527e-05/0.006948, allocations: 46.98 kB / 0.7915 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.812e-05/0.006996, allocations: 27.69 kB / 0.7915 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.714e-05/0.007044, allocations: 5.75 kB / 0.7915 GB, free: 8.059 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.00707, allocations: 41.38 kB / 0.7915 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.007072, allocations: 0 / 0.7915 GB, free: 8.008 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.0002827/0.007354, allocations: 156.1 kB / 0.7917 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.007386, allocations: 56.5 kB / 0.7917 GB, free: 7.785 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.007502, allocations: 201.8 kB / 0.7919 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.007516, allocations: 25.7 kB / 0.792 GB, free: 7.539 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.607e-05/0.007582, allocations: 160.6 kB / 0.7921 GB, free: 7.379 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.007641, allocations: 71.38 kB / 0.7922 GB, free: 7.309 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.076e-05/0.007702, allocations: 43.33 kB / 0.7922 GB, free: 7.258 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002878/0.00799, allocations: 0.5117 MB / 0.7927 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.052e-05/0.00803, allocations: 15 kB / 0.7927 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.8e-05/0.008068, allocations: 16 kB / 0.7928 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.008172, allocations: 73.28 kB / 0.7928 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.008176, allocations: 4 kB / 0.7928 GB, free: 6.629 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001661/0.008343, allocations: 111.5 kB / 0.7929 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.008356, allocations: 7.984 kB / 0.7929 GB, free: 6.508 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.008371, allocations: 4 kB / 0.7929 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.008383, allocations: 0 / 0.7929 GB, free: 6.504 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.008496, allocations: 22.42 kB / 0.793 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.008499, allocations: 240 / 0.793 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.292e-05/0.008572, allocations: 27.88 kB / 0.793 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.00859, allocations: 0 / 0.793 GB, free: 6.457 MB / 0.7448 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.0001034/0.008694, allocations: 171.1 kB / 0.7932 GB, free: 6.281 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.008733, allocations: 23.84 kB / 0.7932 GB, free: 6.258 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/0.008959, allocations: 142.8 kB / 0.7933 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.008961, allocations: 0 / 0.7933 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.008963, allocations: 0 / 0.7933 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.008966, allocations: 0 / 0.7933 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.009164, allocations: 157.9 kB / 0.7935 GB, free: 5.934 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.009173, allocations: 7.938 kB / 0.7935 GB, free: 5.926 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-05/0.009245, allocations: 20.83 kB / 0.7935 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.009247, allocations: 1.281 kB / 0.7935 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.961e-06/0.009253, allocations: 0 / 0.7935 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.009255, allocations: 80 / 0.7935 GB, free: 5.906 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.009257, allocations: 3.984 kB / 0.7935 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.009439, allocations: 278.1 kB / 0.7938 GB, free: 5.613 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.658e-05/0.009455, allocations: 23.8 kB / 0.7938 GB, free: 5.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.009466, allocations: 1.031 kB / 0.7938 GB, free: 5.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.981e-05/0.009526, allocations: 19.97 kB / 0.7938 GB, free: 5.57 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.638e-05/0.009572, allocations: 13.39 kB / 0.7938 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.009581, allocations: 4 kB / 0.7938 GB, free: 5.555 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.681e-05/0.009628, allocations: 149.4 kB / 0.794 GB, free: 5.41 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4e-08/0.009628, allocations: 0 / 0.794 GB, free: 5.41 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001726/0.009801, allocations: 40.94 kB / 0.794 GB, free: 5.371 MB / 0.7448 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.0001394/0.00994, allocations: 133.8 kB / 0.7941 GB, free: 5.23 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001571/0.0101, allocations: 139.6 kB / 0.7943 GB, free: 5.082 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.0101, allocations: 0 / 0.7943 GB, free: 5.082 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 6.855e-05/0.01017, allocations: 119 kB / 0.7944 GB, free: 4.949 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002037/0.01037, allocations: 30.7 kB / 0.7944 GB, free: 4.922 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003331/0.0107, allocations: 291.7 kB / 0.7947 GB, free: 4.605 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.152e-05/0.01075, allocations: 84.61 kB / 0.7948 GB, free: 4.504 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.2e-05/0.01078, allocations: 9.031 kB / 0.7948 GB, free: 4.496 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.456e-05/0.01085, allocations: 94.17 kB / 0.7949 GB, free: 4.402 MB / 0.7448 GB Notification: Performance of SimCode: time 8.62e-07/0.01085, allocations: 0.6562 kB / 0.7949 GB, free: 4.402 MB / 0.7448 GB Notification: Performance of Templates: time 0.003733/0.01459, allocations: 2.392 MB / 0.7972 GB, free: 2.055 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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: 4.6969325840473175]