Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001673/0.001673, allocations: 111.9 kB / 16.41 MB, free: 6.469 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.001994/0.001994, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.734/2.734, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 63.89 kB / 1.019 GB, free: 9.344 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9184/0.92, allocations: 151.6 MB / 1.167 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002433/0.9225, allocations: 0.8251 MB / 1.168 GB, free: 3 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00144/0.9239, allocations: 1.024 MB / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.38e-05/0.924, allocations: 0 / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.9241, allocations: 7.875 kB / 1.169 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.272e-05/0.9242, allocations: 19.81 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.9246, allocations: 95.75 kB / 1.169 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001734/0.9248, allocations: 119.7 kB / 1.169 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.925, allocations: 45.39 kB / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.546e-05/0.9251, allocations: 59.72 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.772e-05/0.9252, allocations: 59.73 kB / 1.17 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.9252, allocations: 12 kB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.9254, allocations: 91.91 kB / 1.17 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.778e-05/0.9255, allocations: 31.91 kB / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.556e-05/0.9256, allocations: 51.67 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.9258, allocations: 195.1 kB / 1.17 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.9259, allocations: 4 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9259, allocations: 0 / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.257e-06/0.9259, allocations: 4 kB / 1.17 GB, free: 1.18 MB / 0.8887 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.0009144/0.9268, allocations: 484.6 kB / 1.17 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.9268, allocations: 8.922 kB / 1.17 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.326e-05/0.9269, allocations: 16.75 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.9271, allocations: 206.6 kB / 1.171 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.9272, allocations: 8.375 kB / 1.171 GB, free: 396 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.9272, allocations: 8.375 kB / 1.171 GB, free: 388 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005265/0.9277, allocations: 178.1 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.9278, allocations: 192 / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.9278, allocations: 15.88 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.551e-05/0.9278, allocations: 11.98 kB / 1.171 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000673/0.9285, allocations: 199.9 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009013/0.9294, allocations: 456.3 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003739/0.9298, allocations: 142.4 kB / 1.172 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003634/0.9302, allocations: 128.8 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.9302, allocations: 4 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.9302, allocations: 34.56 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.9303, allocations: 0 / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.001188/0.9314, allocations: 399 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.9315, allocations: 51.41 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.9316, allocations: 150.1 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.9317, allocations: 25.7 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.802e-05/0.9317, allocations: 116.3 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.286e-05/0.9318, allocations: 47.36 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.9319, allocations: 21.72 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.932, allocations: 322.8 kB / 1.173 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/0.9323, allocations: 111.9 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003428/0.9327, allocations: 115.8 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006587/0.9334, allocations: 255.6 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.9334, allocations: 0 / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007302/0.9341, allocations: 281.2 kB / 1.174 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.9341, allocations: 8 kB / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.9341, allocations: 0 / 1.174 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.9342, allocations: 7.922 kB / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.9344, allocations: 31.95 kB / 1.174 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.9344, allocations: 4 kB / 1.174 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.9346, allocations: 39.83 kB / 1.174 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.9346, allocations: 0 / 1.174 GB, free: 13.15 MB / 0.9044 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 0.0001075/0.9347, allocations: 129.8 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.504e-05/0.9348, allocations: 11.81 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.576e-05/0.9348, allocations: 16.83 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.9348, allocations: 4 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.9349, allocations: 0 / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.9349, allocations: 7.938 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002614/0.9351, allocations: 229.6 kB / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.9351, allocations: 0 / 1.174 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.9354, allocations: 39.89 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.9354, allocations: 0 / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.9354, allocations: 4 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.9354, allocations: 0 / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.9354, allocations: 0 / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007886/0.9362, allocations: 379 kB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.9363, allocations: 88.92 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.9363, allocations: 7.984 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.9365, allocations: 27.97 kB / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.855e-05/0.9366, allocations: 19.91 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.9366, allocations: 4 kB / 1.175 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.624e-05/0.9367, allocations: 109.9 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of sort global known variables: time 9e-08/0.9367, allocations: 0 / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002906/0.937, allocations: 39.94 kB / 1.175 GB, free: 11.96 MB / 0.9044 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.0002229/0.9372, allocations: 131.2 kB / 1.175 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0007631/0.938, allocations: 247.8 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.938, allocations: 4 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.9383, allocations: 135.8 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/0.9387, allocations: 32.59 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006213/0.9394, allocations: 360.4 kB / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.9397, allocations: 0.7236 MB / 1.176 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.167e-05/0.9397, allocations: 11.44 kB / 1.176 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.9397, allocations: 0 / 1.176 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of Templates: time 0.003517/0.9433, allocations: 1.888 MB / 1.178 GB, free: 8.395 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches