Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00101/0.00101, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.001117/0.001117, allocations: 173 kB / 24.06 MB, free: 456 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.9855/0.9855, allocations: 177.1 MB / 204.5 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.092/2.092, allocations: 429.5 MB / 0.6743 GB, free: 3.898 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 0 / 0.8795 GB, free: 5.957 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/3.075e-05, allocations: 5.688 kB / 0.8795 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002386/0.002417, allocations: 0.8371 MB / 0.8803 GB, free: 5.145 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001479/0.003895, allocations: 1.064 MB / 0.8813 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.179e-05/0.003967, allocations: 1.688 kB / 0.8813 GB, free: 4.07 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.004104, allocations: 11.86 kB / 0.8813 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 6.539e-05/0.00417, allocations: 27.73 kB / 0.8814 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004626/0.004632, allocations: 92.27 kB / 0.8814 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.004801, allocations: 125 kB / 0.8816 GB, free: 3.82 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.004955, allocations: 33.28 kB / 0.8816 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.005078, allocations: 71.88 kB / 0.8817 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.212e-05/0.00516, allocations: 49.45 kB / 0.8817 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.672e-05/0.005187, allocations: 8 kB / 0.8817 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.005367, allocations: 95.8 kB / 0.8818 GB, free: 3.57 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.309e-05/0.00543, allocations: 35.91 kB / 0.8818 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.24e-05/0.005482, allocations: 45.64 kB / 0.8819 GB, free: 3.492 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002762/0.005759, allocations: 171.3 kB / 0.8821 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.005763, allocations: 0 / 0.8821 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.322e-06/0.005764, allocations: 0 / 0.8821 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.92e-06/0.005769, allocations: 4 kB / 0.8821 GB, free: 3.32 MB / 0.8386 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.0006322/0.006401, allocations: 498.4 kB / 0.8825 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.006439, allocations: 12.03 kB / 0.8825 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.802e-05/0.006497, allocations: 20.84 kB / 0.8826 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.006688, allocations: 162.1 kB / 0.8827 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.006703, allocations: 4.375 kB / 0.8827 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.006719, allocations: 4.375 kB / 0.8827 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.00701, allocations: 123.8 kB / 0.8828 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.00702, allocations: 192 / 0.8828 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.007034, allocations: 8.312 kB / 0.8829 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.007044, allocations: 4.375 kB / 0.8829 GB, free: 2.434 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.517e-05/0.00712, allocations: 35.84 kB / 0.8829 GB, free: 2.398 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.007739, allocations: 392.1 kB / 0.8833 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.508e-05/0.007824, allocations: 50.98 kB / 0.8833 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.142e-05/0.007875, allocations: 31.69 kB / 0.8833 GB, free: 1.891 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.861e-05/0.007924, allocations: 8.062 kB / 0.8834 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.007952, allocations: 37.38 kB / 0.8834 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 2.155e-06/0.007954, allocations: 0 / 0.8834 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.0003102/0.008264, allocations: 149.6 kB / 0.8835 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.0083, allocations: 55.41 kB / 0.8836 GB, free: 1.617 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.008436, allocations: 203.9 kB / 0.8838 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.00846, allocations: 25.7 kB / 0.8838 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.874e-05/0.008538, allocations: 167.2 kB / 0.884 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.946e-05/0.008608, allocations: 75.36 kB / 0.884 GB, free: 1.129 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.008679, allocations: 47.33 kB / 0.8841 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001596/0.008839, allocations: 0.5039 MB / 0.8846 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.408e-05/0.008883, allocations: 12 kB / 0.8846 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.329e-05/0.008926, allocations: 19.98 kB / 0.8846 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.00903, allocations: 59.66 kB / 0.8847 GB, free: 476 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.009033, allocations: 0 / 0.8847 GB, free: 476 kB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001859/0.009219, allocations: 122.3 kB / 0.8848 GB, free: 348 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.009232, allocations: 4 kB / 0.8848 GB, free: 344 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.009248, allocations: 4 kB / 0.8848 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.009257, allocations: 0 / 0.8848 GB, free: 340 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.009383, allocations: 27.98 kB / 0.8848 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-06/0.009386, allocations: 0 / 0.8848 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.718e-05/0.009473, allocations: 23.88 kB / 0.8848 GB, free: 288 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.009497, allocations: 3.984 kB / 0.8848 GB, free: 284 kB / 0.8386 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.0001222/0.009619, allocations: 169.9 kB / 0.885 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.00966, allocations: 11.91 kB / 0.885 GB, free: 92 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.009927, allocations: 154.6 kB / 0.8852 GB, free: 15.93 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.009931, allocations: 4 kB / 0.8852 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.009932, allocations: 0 / 0.8852 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.009936, allocations: 0 / 0.8852 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001958/0.01013, allocations: 149.1 kB / 0.8853 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.01014, allocations: 7.938 kB / 0.8853 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.01025, allocations: 23.98 kB / 0.8853 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.01025, allocations: 3.938 kB / 0.8853 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.01026, allocations: 0 / 0.8853 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.01026, allocations: 0 / 0.8853 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.01026, allocations: 0 / 0.8853 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002581/0.01052, allocations: 275.8 kB / 0.8856 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.114e-05/0.01054, allocations: 19.84 kB / 0.8856 GB, free: 15.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.01056, allocations: 3.984 kB / 0.8856 GB, free: 15.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.01067, allocations: 11.98 kB / 0.8856 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.01073, allocations: 15.98 kB / 0.8857 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.01074, allocations: 4 kB / 0.8857 GB, free: 15.37 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.254e-05/0.01082, allocations: 145.4 kB / 0.8858 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01082, allocations: 0 / 0.8858 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003352/0.01115, allocations: 47.89 kB / 0.8858 GB, free: 15.18 MB / 0.8542 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.0002228/0.01138, allocations: 127.2 kB / 0.886 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002347/0.01161, allocations: 146.9 kB / 0.8861 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01161, allocations: 0 / 0.8861 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.01173, allocations: 115 kB / 0.8862 GB, free: 14.76 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.01208, allocations: 34.16 kB / 0.8862 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005484/0.01263, allocations: 291.3 kB / 0.8865 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.339e-05/0.01269, allocations: 79.33 kB / 0.8866 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.948e-05/0.01275, allocations: 3.984 kB / 0.8866 GB, free: 14.32 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.01288, allocations: 94.19 kB / 0.8867 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of SimCode: time 6.01e-07/0.01288, allocations: 7.938 kB / 0.8867 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of Templates: time 0.005848/0.01872, allocations: 2.453 MB / 0.8891 GB, free: 11.8 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.340669979806989]