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.001291/0.001291, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001055/0.001055, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.525/1.525, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.692/2.692, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003909, allocations: 8 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7739/0.7743, allocations: 153.7 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001187/0.7756, allocations: 0.5215 MB / 1.021 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001365/0.777, allocations: 0.9988 MB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.747e-05/0.777, allocations: 0 / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.7772, allocations: 11.86 kB / 1.022 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.445e-05/0.7772, allocations: 19.97 kB / 1.022 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.7776, allocations: 71.84 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.7777, allocations: 71.78 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.7779, allocations: 37.38 kB / 1.023 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.627e-05/0.778, allocations: 35.91 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.014e-05/0.7781, allocations: 51.75 kB / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.7781, allocations: 4 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.7782, allocations: 47.95 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.545e-05/0.7783, allocations: 19.92 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.078e-05/0.7783, allocations: 45.64 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.7785, allocations: 127.7 kB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.7785, allocations: 4 kB / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.605e-06/0.7785, allocations: 0 / 1.023 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.363e-06/0.7785, allocations: 0 / 1.023 GB, free: 15.01 MB / 0.7794 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.000802/0.7794, allocations: 492.6 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.7794, allocations: 11.98 kB / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.7794, allocations: 11.81 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.7796, allocations: 198.7 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.7797, allocations: 8 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.7797, allocations: 8 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.7802, allocations: 221.4 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.7802, allocations: 0 / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.7803, allocations: 3.938 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.831e-05/0.7803, allocations: 15.98 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007079/0.781, allocations: 259.8 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009377/0.782, allocations: 488.3 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004336/0.7824, allocations: 170.5 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.7824, allocations: 0 / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.7825, allocations: 38.56 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.7825, allocations: 3.938 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001358/0.7838, allocations: 0.6311 MB / 1.025 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.7839, allocations: 51.41 kB / 1.025 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.784, allocations: 148.9 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.784, allocations: 25.7 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.458e-05/0.7841, allocations: 112.3 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.909e-05/0.7842, allocations: 47.33 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-06/0.7842, allocations: 4 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.7843, allocations: 330.8 kB / 1.026 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003854/0.7847, allocations: 135.9 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.7851, allocations: 139.9 kB / 1.026 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.7854, allocations: 151.8 kB / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.7854, allocations: 0 / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007918/0.7862, allocations: 329.3 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.7863, allocations: 4 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.7863, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.7863, allocations: 0 / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.7866, allocations: 51.95 kB / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.7866, allocations: 0 / 1.027 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/0.7868, allocations: 59.8 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.7868, allocations: 4 kB / 1.027 GB, free: 10.68 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.526e-05/0.7869, allocations: 127.8 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.7869, allocations: 7.906 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.515e-05/0.787, allocations: 16.84 kB / 1.027 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/0.787, allocations: 11.98 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.787, allocations: 4 kB / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.787, allocations: 0 / 1.027 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.7873, allocations: 233.4 kB / 1.027 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.7873, allocations: 0 / 1.027 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.7875, allocations: 59.83 kB / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.7875, allocations: 0 / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.7875, allocations: 0 / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.7875, allocations: 0 / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.7875, allocations: 0 / 1.027 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008834/0.7884, allocations: 445.6 kB / 1.028 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.7885, allocations: 85.02 kB / 1.028 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.7885, allocations: 0 / 1.028 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.7887, allocations: 39.95 kB / 1.028 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.005e-05/0.7888, allocations: 19.97 kB / 1.028 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.7888, allocations: 7.984 kB / 1.028 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.56e-05/0.7889, allocations: 103.9 kB / 1.028 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7889, allocations: 0 / 1.028 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002871/0.7892, allocations: 51.83 kB / 1.028 GB, free: 9.395 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002106/0.7894, allocations: 119.1 kB / 1.028 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0008896/0.7903, allocations: 307.8 kB / 1.028 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7903, allocations: 0 / 1.028 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000406/0.7907, allocations: 159.8 kB / 1.029 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.791, allocations: 19.94 kB / 1.029 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005467/0.7916, allocations: 362 kB / 1.029 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.7919, allocations: 0.7246 MB / 1.03 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.102e-05/0.792, allocations: 19.97 kB / 1.03 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.792, allocations: 11.44 kB / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.792, allocations: 0 / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of Templates: time 0.00406/0.7961, allocations: 1.515 MB / 1.031 GB, free: 6.137 MB / 0.7794 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 -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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches