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.001633/0.001633, allocations: 102.3 kB / 16.27 MB, free: 5.996 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.001505/0.001505, allocations: 189.4 kB / 17.2 MB, free: 5.605 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.457/1.457, 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 10.1.1-maint.10.0.x/package.mo): time 2.532/2.532, allocations: 437.1 MB / 0.711 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 68.88 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3413, allocations: 151.6 MB / 1.018 GB, free: 10.65 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002327/0.3437, allocations: 0.8326 MB / 1.019 GB, free: 9.816 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001454/0.3452, allocations: 1.006 MB / 1.02 GB, free: 8.797 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.532e-05/0.3452, allocations: 0 / 1.02 GB, free: 8.797 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.3454, allocations: 15.86 kB / 1.02 GB, free: 8.781 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.94e-05/0.3454, allocations: 15.8 kB / 1.02 GB, free: 8.766 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.3458, allocations: 95.77 kB / 1.02 GB, free: 8.672 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.346, allocations: 123.6 kB / 1.02 GB, free: 8.551 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.3462, allocations: 57.38 kB / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.691e-05/0.3463, allocations: 47.83 kB / 1.02 GB, free: 8.441 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.639e-05/0.3464, allocations: 59.77 kB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.3464, allocations: 8 kB / 1.02 GB, free: 8.375 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.3466, allocations: 63.89 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.3466, allocations: 35.91 kB / 1.02 GB, free: 8.277 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.076e-05/0.3467, allocations: 59.59 kB / 1.02 GB, free: 8.219 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000265/0.347, allocations: 187.7 kB / 1.021 GB, free: 8.035 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.347, allocations: 4 kB / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.222e-06/0.347, allocations: 0 / 1.021 GB, free: 8.031 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.347, allocations: 4 kB / 1.021 GB, free: 8.027 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.0008938/0.3479, allocations: 466.9 kB / 1.021 GB, free: 7.52 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.348, allocations: 16.84 kB / 1.021 GB, free: 7.504 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.021e-05/0.348, allocations: 16.75 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.3483, allocations: 215.8 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3483, allocations: 4.375 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.3483, allocations: 8.375 kB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005673/0.3489, allocations: 184.7 kB / 1.021 GB, free: 7.043 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.3489, allocations: 4.125 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.3489, allocations: 7.938 kB / 1.021 GB, free: 7.031 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-05/0.349, allocations: 12 kB / 1.021 GB, free: 7.02 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007463/0.3497, allocations: 207.7 kB / 1.022 GB, free: 6.816 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009768/0.3507, allocations: 452.4 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.3512, allocations: 146.4 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003966/0.3516, allocations: 132.7 kB / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.3516, allocations: 0 / 1.022 GB, free: 6.039 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.3516, allocations: 30.56 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of pre-optimization done (n=15): time 1.032e-06/0.3516, allocations: 4 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of matching and sorting (n=15): time 0.001307/0.3529, allocations: 393.3 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.353, allocations: 55.41 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.3532, allocations: 156 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.3532, allocations: 29.64 kB / 1.023 GB, free: 5.344 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 8.473e-05/0.3533, allocations: 105.9 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 6.285e-05/0.3534, allocations: 55.27 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.677e-05/0.3534, allocations: 21.72 kB / 1.023 GB, free: 5.156 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.3536, allocations: 322.8 kB / 1.023 GB, free: 4.832 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.354, allocations: 111.9 kB / 1.024 GB, free: 4.723 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/0.3544, allocations: 113.4 kB / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007526/0.3551, allocations: 246.9 kB / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.3552, allocations: 0 / 1.024 GB, free: 4.371 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008416/0.356, allocations: 273.3 kB / 1.024 GB, free: 4.098 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.356, allocations: 8 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.356, allocations: 0 / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.3561, allocations: 0 / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.3563, allocations: 43.89 kB / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3563, allocations: 0 / 1.024 GB, free: 4.047 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/0.3565, allocations: 39.8 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.3566, allocations: 7.984 kB / 1.024 GB, free: 4 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.0001232/0.3567, allocations: 121.8 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.899e-05/0.3567, allocations: 15.81 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.3568, allocations: 24.83 kB / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/0.3568, allocations: 11.98 kB / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3568, allocations: 0 / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.3568, allocations: 3.938 kB / 1.024 GB, free: 3.816 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000319/0.3572, allocations: 233.4 kB / 1.025 GB, free: 3.539 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3572, allocations: 0 / 1.025 GB, free: 3.539 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.3574, allocations: 31.95 kB / 1.025 GB, free: 3.508 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3574, allocations: 4 kB / 1.025 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.3574, allocations: 3.984 kB / 1.025 GB, free: 3.5 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3574, allocations: 4 kB / 1.025 GB, free: 3.496 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3574, allocations: 0 / 1.025 GB, free: 3.496 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009161/0.3583, allocations: 379 kB / 1.025 GB, free: 3.109 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.88e-05/0.3584, allocations: 92.94 kB / 1.025 GB, free: 3 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.3584, allocations: 4 kB / 1.025 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.3587, allocations: 31.95 kB / 1.025 GB, free: 2.965 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.3587, allocations: 15.92 kB / 1.025 GB, free: 2.949 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-06/0.3587, allocations: 0 / 1.025 GB, free: 2.949 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.53e-05/0.3588, allocations: 117.9 kB / 1.025 GB, free: 2.836 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3588, allocations: 0 / 1.025 GB, free: 2.836 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002891/0.3591, allocations: 39.91 kB / 1.025 GB, free: 2.797 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.0002358/0.3594, allocations: 115.2 kB / 1.025 GB, free: 2.676 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008708/0.3603, allocations: 267.7 kB / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3603, allocations: 0 / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004138/0.3607, allocations: 139.9 kB / 1.026 GB, free: 2.277 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.361, allocations: 14.25 kB / 1.026 GB, free: 2.266 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006943/0.3618, allocations: 360.5 kB / 1.026 GB, free: 1.883 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.3621, allocations: 0.7197 MB / 1.027 GB, free: 1.137 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.151e-05/0.3622, allocations: 19.44 kB / 1.027 GB, free: 1.117 MB / 0.795 GB Notification: Performance of SimCode: time 3.51e-07/0.3622, allocations: 0 / 1.027 GB, free: 1.117 MB / 0.795 GB Notification: Performance of Templates: time 0.004075/0.3663, allocations: 1.878 MB / 1.029 GB, free: 15.26 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=400 -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