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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 108.1 kB / 16.37 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 194.7 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.587/2.587, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.25 kB / 0.8774 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.327, allocations: 153 MB / 1.027 GB, free: 2.055 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001999/0.329, allocations: 0.8424 MB / 1.028 GB, free: 1.215 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.3302, allocations: 1.006 MB / 1.029 GB, free: 200 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.148e-05/0.3303, allocations: 4 kB / 1.029 GB, free: 196 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.3304, allocations: 11.86 kB / 1.029 GB, free: 184 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.521e-05/0.3305, allocations: 23.73 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.3309, allocations: 87.77 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.331, allocations: 115.7 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.3312, allocations: 53.31 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.755e-05/0.3313, allocations: 55.83 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.134e-05/0.3314, allocations: 59.75 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.3314, allocations: 12 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.3315, allocations: 91.92 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.3e-05/0.3316, allocations: 39.83 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.963e-05/0.3317, allocations: 55.66 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.332, allocations: 191.3 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.332, allocations: 0 / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.332, allocations: 0 / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.616e-06/0.332, allocations: 0 / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007612/0.3328, allocations: 475 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.3328, allocations: 12.03 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.3329, allocations: 12.75 kB / 1.03 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.3331, allocations: 212.6 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.3331, allocations: 8.375 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.3331, allocations: 8.312 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005115/0.3336, allocations: 190 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3337, allocations: 192 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.3337, allocations: 3.938 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.3337, allocations: 19.92 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006557/0.3344, allocations: 207.7 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009547/0.3353, allocations: 460.3 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004021/0.3358, allocations: 138.5 kB / 1.031 GB, free: 13.54 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/0.3361, allocations: 128.8 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.3362, allocations: 0 / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.3362, allocations: 30.56 kB / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.3362, allocations: 0 / 1.031 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.001201/0.3374, allocations: 401.3 kB / 1.032 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.3375, allocations: 51.41 kB / 1.032 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.3376, allocations: 149.4 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.3377, allocations: 29.7 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.397e-05/0.3377, allocations: 108.4 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.857e-05/0.3378, allocations: 51.27 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.742e-05/0.3379, allocations: 25.7 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.338, allocations: 326.8 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000351/0.3384, allocations: 111.9 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.3387, allocations: 114.7 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006303/0.3394, allocations: 236.6 kB / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3394, allocations: 0 / 1.033 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007102/0.3401, allocations: 281.3 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3401, allocations: 4 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.3401, allocations: 3.984 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.3401, allocations: 4 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.3404, allocations: 31.95 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3404, allocations: 0 / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001669/0.3405, allocations: 43.78 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.3406, allocations: 4 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 2 * Algorithm blocks: 0 * Record equations: 0 * 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 9.434e-05/0.3407, allocations: 129.8 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.3407, allocations: 15.81 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.091e-05/0.3408, allocations: 8.844 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/0.3408, allocations: 15.98 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.3408, allocations: 7.938 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3408, allocations: 3.938 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002433/0.3411, allocations: 221.5 kB / 1.033 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3411, allocations: 4 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.3413, allocations: 43.89 kB / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3413, allocations: 0 / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3413, allocations: 0 / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3413, allocations: 4 kB / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3413, allocations: 0 / 1.033 GB, free: 10.87 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007666/0.3421, allocations: 385.9 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.3421, allocations: 92.89 kB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.3422, allocations: 0 / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.3423, allocations: 35.95 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-05/0.3424, allocations: 15.92 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3424, allocations: 4 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.717e-05/0.3425, allocations: 109.1 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3425, allocations: 0 / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002876/0.3428, allocations: 47.91 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 2 * Algorithm blocks: 0 * Record equations: 0 * 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.0002221/0.3431, allocations: 123.2 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007858/0.3439, allocations: 251.8 kB / 1.034 GB, free: 9.785 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3439, allocations: 4 kB / 1.034 GB, free: 9.781 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003608/0.3442, allocations: 127.9 kB / 1.035 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.3446, allocations: 22.27 kB / 1.035 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005613/0.3452, allocations: 326.9 kB / 1.035 GB, free: 9.293 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.3455, allocations: 0.7236 MB / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.208e-05/0.3455, allocations: 11.98 kB / 1.036 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.36e-05/0.3456, allocations: 11.44 kB / 1.036 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of SimCode: time 2.81e-07/0.3456, allocations: 4 kB / 1.036 GB, free: 8.516 MB / 0.8106 GB Notification: Performance of Templates: time 0.004511/0.3501, allocations: 1.894 MB / 1.038 GB, free: 6.641 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches