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.001208/0.001208, allocations: 112.4 kB / 15.99 MB, free: 5.91 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.001024/0.001024, allocations: 197.1 kB / 16.91 MB, free: 5.754 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.359/1.359, allocations: 222.9 MB / 240.6 MB, free: 13.7 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.221/2.221, allocations: 390.2 MB / 0.665 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 65.77 kB / 0.8127 GB, free: 32.43 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2754, allocations: 140.4 MB / 0.9498 GB, free: 9.199 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002413/0.2779, allocations: 0.8943 MB / 0.9506 GB, free: 8.305 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001345/0.2793, allocations: 1.014 MB / 0.9516 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.682e-05/0.2794, allocations: 0 / 0.9516 GB, free: 7.277 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.2795, allocations: 11.92 kB / 0.9517 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.186e-05/0.2796, allocations: 19.86 kB / 0.9517 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00044/0.28, allocations: 75.86 kB / 0.9517 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.2802, allocations: 123.6 kB / 0.9519 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.2804, allocations: 49.39 kB / 0.9519 GB, free: 6.996 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2805, allocations: 51.83 kB / 0.952 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.188e-05/0.2806, allocations: 55.77 kB / 0.952 GB, free: 6.891 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.2806, allocations: 8 kB / 0.952 GB, free: 6.883 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.2808, allocations: 67.89 kB / 0.9521 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.34e-05/0.2809, allocations: 39.89 kB / 0.9521 GB, free: 6.777 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.084e-05/0.2809, allocations: 51.67 kB / 0.9522 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.2811, allocations: 143.9 kB / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2812, allocations: 0 / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2812, allocations: 0 / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.834e-06/0.2812, allocations: 0 / 0.9523 GB, free: 6.586 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.0008677/0.282, allocations: 480.2 kB / 0.9528 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.2821, allocations: 12.03 kB / 0.9528 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.2822, allocations: 12.75 kB / 0.9528 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.2824, allocations: 209.4 kB / 0.953 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.2824, allocations: 12.31 kB / 0.953 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.2824, allocations: 4.375 kB / 0.953 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.283, allocations: 184.1 kB / 0.9532 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.283, allocations: 192 / 0.9532 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.274e-05/0.283, allocations: 7.938 kB / 0.9532 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.729e-05/0.2831, allocations: 15.98 kB / 0.9532 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006913/0.2838, allocations: 195.8 kB / 0.9534 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000919/0.2847, allocations: 472.2 kB / 0.9538 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004272/0.2851, allocations: 146.4 kB / 0.954 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/0.2855, allocations: 124.8 kB / 0.9541 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.2855, allocations: 0 / 0.9541 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.2856, allocations: 34.56 kB / 0.9541 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.412e-06/0.2856, allocations: 0 / 0.9541 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.001232/0.2868, allocations: 397.3 kB / 0.9545 GB, free: 4.16 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.2869, allocations: 51.41 kB / 0.9546 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.287, allocations: 147.2 kB / 0.9547 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.287, allocations: 33.64 kB / 0.9547 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.2871, allocations: 104.4 kB / 0.9548 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/0.2872, allocations: 55.27 kB / 0.9549 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.552e-05/0.2872, allocations: 25.7 kB / 0.9549 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2874, allocations: 330.8 kB / 0.9552 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003691/0.2877, allocations: 111.9 kB / 0.9553 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003505/0.2881, allocations: 111.9 kB / 0.9554 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007095/0.2888, allocations: 243 kB / 0.9557 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.2888, allocations: 8 kB / 0.9557 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007846/0.2896, allocations: 273.3 kB / 0.9559 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.2896, allocations: 6.188 kB / 0.9559 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.2897, allocations: 4 kB / 0.9559 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.2897, allocations: 0 / 0.9559 GB, free: 2.637 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.2899, allocations: 39.88 kB / 0.956 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.2899, allocations: 0 / 0.956 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.2901, allocations: 39.81 kB / 0.956 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.2902, allocations: 3.984 kB / 0.956 GB, free: 2.555 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.0001068/0.2903, allocations: 129.8 kB / 0.9562 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.644e-05/0.2903, allocations: 11.89 kB / 0.9562 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.993e-05/0.2903, allocations: 8.844 kB / 0.9562 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/0.2904, allocations: 8 kB / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.2904, allocations: 0 / 0.9562 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.2904, allocations: 7.922 kB / 0.9562 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.2907, allocations: 229.4 kB / 0.9564 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2907, allocations: 7.984 kB / 0.9564 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2909, allocations: 31.95 kB / 0.9564 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2909, allocations: 3.938 kB / 0.9564 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.2909, allocations: 8 kB / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2909, allocations: 0 / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2909, allocations: 0 / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008252/0.2917, allocations: 379 kB / 0.9568 GB, free: 1.672 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.2918, allocations: 88.95 kB / 0.9569 GB, free: 1.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.2918, allocations: 3.984 kB / 0.9569 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.292, allocations: 31.95 kB / 0.9569 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.121e-05/0.2921, allocations: 19.92 kB / 0.957 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.2921, allocations: 4 kB / 0.957 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.453e-05/0.2922, allocations: 117.4 kB / 0.9571 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2922, allocations: 0 / 0.9571 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000291/0.2925, allocations: 39.91 kB / 0.9571 GB, free: 1.355 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.0002453/0.2928, allocations: 119.2 kB / 0.9572 GB, free: 1.227 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008089/0.2936, allocations: 272 kB / 0.9575 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2936, allocations: 4 kB / 0.9575 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.294, allocations: 131.9 kB / 0.9576 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003769/0.2944, allocations: 22.52 kB / 0.9576 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005837/0.295, allocations: 404.5 kB / 0.958 GB, free: 392 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.2953, allocations: 0.7274 MB / 0.9587 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.432e-05/0.2953, allocations: 11.44 kB / 0.9587 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of SimCode: time 4.3e-07/0.2953, allocations: 0 / 0.9587 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of Templates: time 0.004104/0.2995, allocations: 1.88 MB / 0.9606 GB, free: 13.75 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