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.00653/0.006538, allocations: 104.7 kB / 15.74 MB, free: 6.035 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.001245/0.001246, allocations: 200.3 kB / 16.68 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.399/2.399, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 68.14 kB / 0.9509 GB, free: 7.559 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062/1.063, allocations: 140.4 MB / 1.088 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002137/1.065, allocations: 0.8192 MB / 1.089 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001279/1.067, allocations: 1.008 MB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.024e-05/1.067, allocations: 1 kB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001209/1.067, allocations: 14.36 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.191e-05/1.067, allocations: 15.17 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/1.067, allocations: 100.9 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001664/1.067, allocations: 122.5 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/1.068, allocations: 44.64 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.031e-05/1.068, allocations: 51.28 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.488e-05/1.068, allocations: 62.47 kB / 1.09 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/1.068, allocations: 10.34 kB / 1.09 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/1.068, allocations: 94.34 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.623e-05/1.068, allocations: 39.39 kB / 1.09 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.12e-05/1.068, allocations: 53.03 kB / 1.09 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003363/1.068, allocations: 197.3 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/1.068, allocations: 1.062 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.004e-06/1.068, allocations: 4.453 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.162e-06/1.068, allocations: 0 / 1.091 GB, free: 3.852 MB / 0.8575 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.0008463/1.069, allocations: 476.3 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/1.069, allocations: 9.469 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/1.069, allocations: 19.95 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/1.07, allocations: 200.6 kB / 1.091 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/1.07, allocations: 7.812 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/1.07, allocations: 5.188 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006028/1.07, allocations: 196.8 kB / 1.091 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/1.07, allocations: 4.984 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.851e-05/1.07, allocations: 12.72 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/1.07, allocations: 12.03 kB / 1.091 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007879/1.071, allocations: 200.3 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009333/1.072, allocations: 451.8 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/1.073, allocations: 142.2 kB / 1.092 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004215/1.073, allocations: 124.5 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/1.073, allocations: 5.453 kB / 1.092 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/1.073, allocations: 39.62 kB / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/1.073, allocations: 1 kB / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.001477/1.075, allocations: 397.2 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/1.075, allocations: 52.83 kB / 1.093 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/1.075, allocations: 148.5 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/1.075, allocations: 30.52 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.555e-05/1.075, allocations: 110.1 kB / 1.093 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/1.075, allocations: 50.53 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/1.075, allocations: 26.09 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.927e-05/1.075, allocations: 322.3 kB / 1.093 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004305/1.076, allocations: 115.5 kB / 1.094 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/1.076, allocations: 114.8 kB / 1.094 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008089/1.077, allocations: 242.9 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/1.077, allocations: 0.9062 kB / 1.094 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008942/1.078, allocations: 272.8 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/1.078, allocations: 5.25 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/1.078, allocations: 1.641 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/1.078, allocations: 0.5625 kB / 1.094 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/1.078, allocations: 41.89 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/1.078, allocations: 1.156 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/1.078, allocations: 36.25 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.66e-05/1.078, allocations: 2.578 kB / 1.094 GB, free: 1.633 MB / 0.8575 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 9.853e-05/1.078, allocations: 128.2 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/1.079, allocations: 12.38 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.748e-05/1.079, allocations: 16.88 kB / 1.094 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/1.079, allocations: 17.86 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/1.079, allocations: 0 / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/1.079, allocations: 8.625 kB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/1.079, allocations: 226 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/1.079, allocations: 0 / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002156/1.079, allocations: 34.3 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/1.079, allocations: 1.094 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/1.079, allocations: 5.266 kB / 1.095 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.079, allocations: 1.219 kB / 1.095 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.079, allocations: 4 kB / 1.095 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009605/1.08, allocations: 385.7 kB / 1.095 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.521e-05/1.08, allocations: 85.25 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/1.08, allocations: 2.484 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/1.08, allocations: 27.72 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.364e-05/1.081, allocations: 20.58 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/1.081, allocations: 5.938 kB / 1.095 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.462e-05/1.081, allocations: 113.1 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/1.081, allocations: 0 / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003523/1.081, allocations: 41.8 kB / 1.095 GB, free: 0.8594 MB / 0.8575 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.0002465/1.081, allocations: 120.9 kB / 1.095 GB, free: 0.7656 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009567/1.082, allocations: 248.2 kB / 1.096 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/1.082, allocations: 0 / 1.096 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004741/1.083, allocations: 141.1 kB / 1.096 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/1.083, allocations: 30.77 kB / 1.096 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000647/1.084, allocations: 324.9 kB / 1.096 GB, free: 496 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/1.084, allocations: 0.7175 MB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.077e-05/1.084, allocations: 22.16 kB / 1.097 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.026e-05/1.084, allocations: 17.23 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of SimCode: time 6.51e-07/1.084, allocations: 0 / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of Templates: time 0.005728/1.09, allocations: 1.914 MB / 1.099 GB, free: 15.62 MB / 0.8731 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/jenkins/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