Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001653/0.001653, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.394/1.394, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.189/2.189, allocations: 390.3 MB / 0.6653 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 69.92 kB / 0.8132 GB, free: 32.98 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3011, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002485/0.3036, allocations: 0.8363 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001688/0.3053, allocations: 1.008 MB / 0.9521 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.016e-05/0.3054, allocations: 0 / 0.9521 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.3056, allocations: 15.8 kB / 0.9521 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.917e-05/0.3058, allocations: 23.8 kB / 0.9521 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000513/0.3063, allocations: 83.83 kB / 0.9522 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.3065, allocations: 123.6 kB / 0.9523 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.3067, allocations: 49.38 kB / 0.9524 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.3068, allocations: 51.83 kB / 0.9524 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.3069, allocations: 51.83 kB / 0.9525 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.307, allocations: 16 kB / 0.9525 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.3071, allocations: 67.89 kB / 0.9525 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.227e-05/0.3072, allocations: 35.84 kB / 0.9526 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.457e-05/0.3073, allocations: 55.67 kB / 0.9526 GB, free: 6.457 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.3076, allocations: 195.6 kB / 0.9528 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.3076, allocations: 0 / 0.9528 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3076, allocations: 0 / 0.9528 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.3076, allocations: 0 / 0.9528 GB, free: 6.266 MB / 0.7325 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.000927/0.3086, allocations: 476.2 kB / 0.9533 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3086, allocations: 12.03 kB / 0.9533 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.361e-05/0.3087, allocations: 12.75 kB / 0.9533 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.3089, allocations: 209.8 kB / 0.9535 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.3089, allocations: 12.3 kB / 0.9535 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.309, allocations: 8.375 kB / 0.9535 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005856/0.3096, allocations: 184.1 kB / 0.9537 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3096, allocations: 192 / 0.9537 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.3096, allocations: 3.938 kB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.599e-05/0.3097, allocations: 16 kB / 0.9537 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007209/0.3104, allocations: 203.7 kB / 0.9539 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.3114, allocations: 460.3 kB / 0.9543 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/0.3119, allocations: 146.4 kB / 0.9545 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003926/0.3123, allocations: 128.7 kB / 0.9546 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.3123, allocations: 0 / 0.9546 GB, free: 4.281 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.3123, allocations: 30.56 kB / 0.9546 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.774e-06/0.3123, allocations: 4 kB / 0.9546 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.001331/0.3137, allocations: 403.2 kB / 0.955 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.3137, allocations: 51.41 kB / 0.9551 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.3139, allocations: 151.2 kB / 0.9552 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.3139, allocations: 29.64 kB / 0.9552 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.671e-05/0.314, allocations: 108.4 kB / 0.9554 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.314, allocations: 47.2 kB / 0.9554 GB, free: 3.43 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.472e-05/0.3141, allocations: 29.78 kB / 0.9554 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.3143, allocations: 326.8 kB / 0.9557 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/0.3147, allocations: 107.9 kB / 0.9558 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.3151, allocations: 119.9 kB / 0.956 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007645/0.3158, allocations: 239.5 kB / 0.9562 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.3159, allocations: 0 / 0.9562 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000812/0.3167, allocations: 277.3 kB / 0.9564 GB, free: 2.332 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3167, allocations: 4 kB / 0.9565 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3167, allocations: 240 / 0.9565 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3167, allocations: 4 kB / 0.9565 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.317, allocations: 31.95 kB / 0.9565 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.317, allocations: 3.984 kB / 0.9565 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.3172, allocations: 51.8 kB / 0.9565 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.528e-05/0.3173, allocations: 0 / 0.9565 GB, free: 2.238 MB / 0.7325 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.0001136/0.3174, allocations: 121.8 kB / 0.9567 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.3174, allocations: 11.91 kB / 0.9567 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.3175, allocations: 16.83 kB / 0.9567 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.3175, allocations: 8 kB / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3175, allocations: 0 / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3175, allocations: 3.938 kB / 0.9567 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.3178, allocations: 241.4 kB / 0.9569 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.3178, allocations: 4 kB / 0.9569 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.318, allocations: 31.95 kB / 0.957 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.318, allocations: 3.938 kB / 0.957 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.3181, allocations: 3.984 kB / 0.957 GB, free: 1.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.3181, allocations: 7.938 kB / 0.957 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3181, allocations: 0 / 0.957 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008662/0.319, allocations: 379.1 kB / 0.9573 GB, free: 1.348 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.319, allocations: 92.94 kB / 0.9574 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.3191, allocations: 4 kB / 0.9574 GB, free: 1.234 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.3193, allocations: 27.95 kB / 0.9575 GB, free: 1.207 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.74e-05/0.3194, allocations: 15.92 kB / 0.9575 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.3194, allocations: 4 kB / 0.9575 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.983e-05/0.3195, allocations: 113.2 kB / 0.9576 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3195, allocations: 0 / 0.9576 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003316/0.3198, allocations: 47.89 kB / 0.9576 GB, free: 1.031 MB / 0.7325 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.0002946/0.3201, allocations: 115.2 kB / 0.9577 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008843/0.321, allocations: 266.2 kB / 0.958 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3211, allocations: 0 / 0.958 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004619/0.3215, allocations: 143.8 kB / 0.9581 GB, free: 0.5078 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.322, allocations: 19.98 kB / 0.9581 GB, free: 500 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007161/0.3227, allocations: 352.6 kB / 0.9585 GB, free: 116 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.323, allocations: 0.7273 MB / 0.9592 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.739e-05/0.3231, allocations: 11.44 kB / 0.9592 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.3231, allocations: 0 / 0.9592 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of Templates: time 0.004148/0.3273, allocations: 1.881 MB / 0.961 GB, free: 13.48 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches