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.001128/0.001128, allocations: 93.06 kB / 19.65 MB, free: 272 kB / 13.93 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.001028/0.001028, allocations: 169 kB / 23.02 MB, free: 1.547 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.9727/0.9727, allocations: 177.1 MB / 203.4 MB, free: 5.648 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.105/2.105, allocations: 429.5 MB / 0.6733 GB, free: 4.047 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.695e-06/2.695e-06, allocations: 1.094 kB / 0.8782 GB, free: 6.227 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.049e-05/3.318e-05, allocations: 5.266 kB / 0.8783 GB, free: 6.223 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002479/0.002512, allocations: 0.8443 MB / 0.8791 GB, free: 5.402 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.004123, allocations: 1.059 MB / 0.8801 GB, free: 4.332 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.586e-05/0.004199, allocations: 5.031 kB / 0.8801 GB, free: 4.328 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001497/0.004349, allocations: 15.8 kB / 0.8801 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.744e-05/0.004426, allocations: 20.47 kB / 0.8801 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.00064/0.005066, allocations: 104.3 kB / 0.8802 GB, free: 4.191 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.005284, allocations: 123.3 kB / 0.8804 GB, free: 4.074 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.005477, allocations: 33.28 kB / 0.8804 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.005633, allocations: 71.88 kB / 0.8805 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.131e-05/0.005724, allocations: 43.88 kB / 0.8805 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.549e-05/0.00576, allocations: 8 kB / 0.8805 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.005985, allocations: 95.89 kB / 0.8806 GB, free: 3.828 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.303e-05/0.006058, allocations: 35.86 kB / 0.8806 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.679e-05/0.006125, allocations: 39.84 kB / 0.8807 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003309/0.006456, allocations: 179.3 kB / 0.8809 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.768e-06/0.00646, allocations: 0 / 0.8809 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.463e-06/0.006462, allocations: 1.625 kB / 0.8809 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.006468, allocations: 7.938 kB / 0.8809 GB, free: 3.57 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.0006971/0.007165, allocations: 491.7 kB / 0.8813 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.007214, allocations: 17.05 kB / 0.8813 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/0.007288, allocations: 20.84 kB / 0.8814 GB, free: 3.016 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.007506, allocations: 155 kB / 0.8815 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.007522, allocations: 4.375 kB / 0.8815 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.007547, allocations: 12.38 kB / 0.8815 GB, free: 2.824 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006467/0.008194, allocations: 120.9 kB / 0.8816 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.008208, allocations: 1.312 kB / 0.8816 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.008224, allocations: 384 / 0.8816 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.008236, allocations: 4.375 kB / 0.8817 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.008353, allocations: 39.92 kB / 0.8817 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007423/0.009095, allocations: 434.8 kB / 0.8821 GB, free: 2.199 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.009198, allocations: 47.06 kB / 0.8821 GB, free: 2.141 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.166e-05/0.00927, allocations: 39.56 kB / 0.8822 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.009331, allocations: 7.984 kB / 0.8822 GB, free: 2.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.009361, allocations: 33.39 kB / 0.8822 GB, free: 2.047 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.009363, allocations: 4 kB / 0.8822 GB, free: 2.043 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25): time 0.0003767/0.00974, allocations: 155.7 kB / 0.8824 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.009776, allocations: 55.41 kB / 0.8824 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.009929, allocations: 211.9 kB / 0.8826 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.009946, allocations: 29.7 kB / 0.8827 GB, free: 1.562 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.01002, allocations: 155.2 kB / 0.8828 GB, free: 1.406 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.695e-05/0.01009, allocations: 68.11 kB / 0.8829 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.282e-05/0.01016, allocations: 47.36 kB / 0.8829 GB, free: 1.285 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.01031, allocations: 0.5017 MB / 0.8834 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.579e-05/0.01038, allocations: 23.94 kB / 0.8834 GB, free: 0.75 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-05/0.01044, allocations: 24.7 kB / 0.8835 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.01057, allocations: 73.42 kB / 0.8835 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01057, allocations: 0.5 kB / 0.8835 GB, free: 0.6523 MB / 0.8386 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002168/0.01079, allocations: 126.9 kB / 0.8836 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.01081, allocations: 4 kB / 0.8837 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.01083, allocations: 5 kB / 0.8837 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.01084, allocations: 0 / 0.8837 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.011, allocations: 29.52 kB / 0.8837 GB, free: 500 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.011, allocations: 3.984 kB / 0.8837 GB, free: 496 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.758e-05/0.01109, allocations: 31.86 kB / 0.8837 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.01112, allocations: 4 kB / 0.8837 GB, free: 460 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.0001192/0.01124, allocations: 168.5 kB / 0.8839 GB, free: 280 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.382e-05/0.01128, allocations: 15.91 kB / 0.8839 GB, free: 264 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.01158, allocations: 154.8 kB / 0.884 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.01158, allocations: 0 / 0.884 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.01159, allocations: 0 / 0.884 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01159, allocations: 0 / 0.884 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002393/0.01183, allocations: 176.4 kB / 0.8842 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.01184, allocations: 0 / 0.8842 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.01195, allocations: 27.92 kB / 0.8842 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01195, allocations: 0 / 0.8842 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.01196, allocations: 8 kB / 0.8842 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.01197, allocations: 3.984 kB / 0.8843 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01197, allocations: 3.938 kB / 0.8843 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.01225, allocations: 275.8 kB / 0.8845 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.036e-05/0.01227, allocations: 15.89 kB / 0.8845 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.01229, allocations: 0 / 0.8845 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.0124, allocations: 15.98 kB / 0.8845 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.01247, allocations: 19.98 kB / 0.8846 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.01249, allocations: 0 / 0.8846 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.086e-05/0.01258, allocations: 149.4 kB / 0.8847 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.1e-07/0.01258, allocations: 0 / 0.8847 GB, free: 15.36 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003817/0.01296, allocations: 47.89 kB / 0.8848 GB, free: 15.31 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.0002916/0.01325, allocations: 133.5 kB / 0.8849 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003079/0.01356, allocations: 151 kB / 0.885 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.01356, allocations: 4 kB / 0.885 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.01371, allocations: 123 kB / 0.8851 GB, free: 14.87 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.01408, allocations: 30.27 kB / 0.8852 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006038/0.01468, allocations: 299.3 kB / 0.8855 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.523e-05/0.01475, allocations: 83.33 kB / 0.8855 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.375e-05/0.01482, allocations: 15.97 kB / 0.8856 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.192e-05/0.01487, allocations: 12.5 kB / 0.8856 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of SimCode: time 9.62e-07/0.01487, allocations: 0 / 0.8856 GB, free: 14.39 MB / 0.8542 GB Notification: Performance of Templates: time 0.005695/0.02057, allocations: 2.175 MB / 0.8877 GB, free: 12.25 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.7522483160719275]