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.001498/0.001498, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001703/0.001704, allocations: 191.2 kB / 16.91 MB, free: 6.188 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.416/1.416, allocations: 222.9 MB / 240.6 MB, free: 13.74 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.445/2.445, allocations: 437 MB / 0.7107 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 71.92 kB / 0.8694 GB, free: 2.531 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3289, allocations: 151.6 MB / 1.017 GB, free: 10.96 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002083/0.331, allocations: 0.8857 MB / 1.018 GB, free: 10.07 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.3323, allocations: 1.012 MB / 1.019 GB, free: 9.051 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.114e-05/0.3323, allocations: 4 kB / 1.019 GB, free: 9.047 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.3325, allocations: 7.938 kB / 1.019 GB, free: 9.039 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.511e-05/0.3325, allocations: 19.78 kB / 1.019 GB, free: 9.02 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003893/0.3329, allocations: 79.92 kB / 1.019 GB, free: 8.941 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.3331, allocations: 119.6 kB / 1.02 GB, free: 8.824 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.3332, allocations: 53.36 kB / 1.02 GB, free: 8.766 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.098e-05/0.3333, allocations: 47.84 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.3334, allocations: 63.75 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.3334, allocations: 8 kB / 1.02 GB, free: 8.648 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001128/0.3335, allocations: 67.89 kB / 1.02 GB, free: 8.582 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.368e-05/0.3336, allocations: 35.91 kB / 1.02 GB, free: 8.547 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.708e-05/0.3337, allocations: 55.59 kB / 1.02 GB, free: 8.492 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001856/0.3339, allocations: 136 kB / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3339, allocations: 0 / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3339, allocations: 0 / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.3339, allocations: 0 / 1.02 GB, free: 8.359 MB / 0.795 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.0007623/0.3347, allocations: 474.9 kB / 1.02 GB, free: 7.844 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3347, allocations: 12.92 kB / 1.02 GB, free: 7.832 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.3348, allocations: 12.75 kB / 1.02 GB, free: 7.82 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.3349, allocations: 218.9 kB / 1.021 GB, free: 7.57 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.335, allocations: 4.375 kB / 1.021 GB, free: 7.566 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.335, allocations: 8.375 kB / 1.021 GB, free: 7.559 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.3355, allocations: 186 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3355, allocations: 192 / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.3356, allocations: 3.938 kB / 1.021 GB, free: 7.367 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/0.3356, allocations: 19.98 kB / 1.021 GB, free: 7.348 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000671/0.3363, allocations: 211.5 kB / 1.021 GB, free: 7.141 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000894/0.3372, allocations: 456.4 kB / 1.022 GB, free: 6.645 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004119/0.3376, allocations: 146.4 kB / 1.022 GB, free: 6.492 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003682/0.338, allocations: 124.8 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.338, allocations: 0 / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.338, allocations: 34.56 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.3381, allocations: 0 / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.001199/0.3393, allocations: 403.6 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.3393, allocations: 55.34 kB / 1.022 GB, free: 5.859 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.3394, allocations: 146.2 kB / 1.022 GB, free: 5.707 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.3394, allocations: 25.7 kB / 1.022 GB, free: 5.676 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.537e-05/0.3395, allocations: 112.4 kB / 1.023 GB, free: 5.562 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.282e-05/0.3396, allocations: 55.25 kB / 1.023 GB, free: 5.508 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.366e-05/0.3396, allocations: 21.72 kB / 1.023 GB, free: 5.48 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3398, allocations: 326.8 kB / 1.023 GB, free: 5.152 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.3401, allocations: 107.9 kB / 1.023 GB, free: 5.047 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.3404, allocations: 115.9 kB / 1.023 GB, free: 4.934 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007002/0.3412, allocations: 238.6 kB / 1.023 GB, free: 4.699 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3412, allocations: 3.984 kB / 1.023 GB, free: 4.695 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007275/0.3419, allocations: 277.3 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.3419, allocations: 4 kB / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3419, allocations: 0 / 1.024 GB, free: 4.414 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.342, allocations: 4 kB / 1.024 GB, free: 4.41 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.3422, allocations: 31.95 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3422, allocations: 0 / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.3424, allocations: 47.8 kB / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.378e-05/0.3424, allocations: 0 / 1.024 GB, free: 4.332 MB / 0.795 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.0001029/0.3425, allocations: 125.8 kB / 1.024 GB, free: 4.199 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.3426, allocations: 15.81 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.3426, allocations: 12.84 kB / 1.024 GB, free: 4.172 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.3426, allocations: 11.98 kB / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3426, allocations: 0 / 1.024 GB, free: 4.16 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.3426, allocations: 11.94 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002484/0.3429, allocations: 225.5 kB / 1.024 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3429, allocations: 4 kB / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.3431, allocations: 31.95 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3431, allocations: 3.938 kB / 1.024 GB, free: 3.84 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.3431, allocations: 0 / 1.024 GB, free: 3.84 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.3431, allocations: 4 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3431, allocations: 3.938 kB / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007823/0.3439, allocations: 387.1 kB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.344, allocations: 92.95 kB / 1.025 GB, free: 3.328 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.344, allocations: 7.922 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.3442, allocations: 27.95 kB / 1.025 GB, free: 3.293 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.3443, allocations: 15.92 kB / 1.025 GB, free: 3.277 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3443, allocations: 7.984 kB / 1.025 GB, free: 3.27 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.456e-05/0.3444, allocations: 106.7 kB / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3444, allocations: 0 / 1.025 GB, free: 3.168 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000294/0.3447, allocations: 47.91 kB / 1.025 GB, free: 3.121 MB / 0.795 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.0002363/0.3449, allocations: 119.2 kB / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007996/0.3457, allocations: 262.1 kB / 1.025 GB, free: 2.742 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3457, allocations: 0 / 1.025 GB, free: 2.742 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.3461, allocations: 144 kB / 1.025 GB, free: 2.602 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.3465, allocations: 26.17 kB / 1.025 GB, free: 2.578 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.3471, allocations: 396.6 kB / 1.026 GB, free: 2.16 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.3474, allocations: 0.7197 MB / 1.026 GB, free: 1.414 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.782e-05/0.3475, allocations: 15.44 kB / 1.026 GB, free: 1.398 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3475, allocations: 0 / 1.026 GB, free: 1.398 MB / 0.795 GB Notification: Performance of Templates: time 0.003576/0.3511, allocations: 1.878 MB / 1.028 GB, free: 15.54 MB / 0.8106 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