Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.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.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaRep.u.1.|reaRep.y.1|1.|reaRep.y.2|2.|reaRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009896/0.0009897, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001124/0.001124, allocations: 168.7 kB / 15.95 MB, free: 204 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.445/1.445, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.921/2.921, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003646, allocations: 11.06 kB / 0.9021 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.404, allocations: 159.6 MB / 1.058 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.0009074/0.4049, allocations: 371.4 kB / 1.058 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.406, allocations: 0.7924 MB / 1.059 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.722e-05/0.4061, allocations: 7.938 kB / 1.059 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.4062, allocations: 3.984 kB / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.4063, allocations: 3.938 kB / 1.059 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 6.921e-05/0.4064, allocations: 7.984 kB / 1.059 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.4065, allocations: 39.91 kB / 1.059 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.4066, allocations: 27.97 kB / 1.059 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.69e-05/0.4067, allocations: 11.94 kB / 1.059 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.945e-05/0.4068, allocations: 23.91 kB / 1.059 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.4068, allocations: 0 / 1.059 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.267e-06/0.4068, allocations: 0 / 1.059 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.189e-05/0.4069, allocations: 23.92 kB / 1.059 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.4069, allocations: 25.7 kB / 1.059 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.834e-05/0.407, allocations: 51.91 kB / 1.059 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.407, allocations: 7.922 kB / 1.059 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.523e-06/0.407, allocations: 3.938 kB / 1.059 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.407, allocations: 4 kB / 1.059 GB, free: 3.895 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005823/0.4076, allocations: 383.4 kB / 1.06 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.4077, allocations: 8.031 kB / 1.06 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.116e-05/0.4077, allocations: 7.906 kB / 1.06 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.4079, allocations: 187 kB / 1.06 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.4079, allocations: 4 kB / 1.06 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.408, allocations: 11.95 kB / 1.06 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000367/0.4083, allocations: 143.2 kB / 1.06 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.4084, allocations: 4 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.4084, allocations: 3.938 kB / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.4084, allocations: 4 kB / 1.06 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/0.4088, allocations: 143.8 kB / 1.06 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006467/0.4094, allocations: 448.9 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.4097, allocations: 101.1 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/0.4098, allocations: 77.7 kB / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.4099, allocations: 0 / 1.061 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.4099, allocations: 38.55 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.4099, allocations: 0 / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0006721/0.4106, allocations: 221.4 kB / 1.061 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.4106, allocations: 85.27 kB / 1.061 GB, free: 1.852 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.4108, allocations: 122.2 kB / 1.061 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.4108, allocations: 25.7 kB / 1.061 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.4108, allocations: 99.97 kB / 1.061 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.4109, allocations: 8 kB / 1.061 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.4109, allocations: 3.938 kB / 1.061 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001391/0.411, allocations: 314.8 kB / 1.062 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.4112, allocations: 71.86 kB / 1.062 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.4114, allocations: 81.64 kB / 1.062 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.4116, allocations: 55.94 kB / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4116, allocations: 0 / 1.062 GB, free: 1.047 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000373/0.412, allocations: 153.6 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.412, allocations: 12 kB / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.412, allocations: 0 / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.412, allocations: 0 / 1.062 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.4122, allocations: 23.97 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4122, allocations: 0 / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.973e-05/0.4123, allocations: 27.98 kB / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.4123, allocations: 3.953 kB / 1.062 GB, free: 0.8242 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * 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 8.419e-05/0.4124, allocations: 121.8 kB / 1.062 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.716e-05/0.4124, allocations: 11.89 kB / 1.062 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.603e-05/0.4125, allocations: 3.531 kB / 1.062 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.4125, allocations: 0 / 1.062 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4125, allocations: 4 kB / 1.062 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.4125, allocations: 3.938 kB / 1.062 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.4127, allocations: 185.6 kB / 1.062 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4127, allocations: 8 kB / 1.062 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.4128, allocations: 23.97 kB / 1.062 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4129, allocations: 0 / 1.062 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.4129, allocations: 0 / 1.062 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.4129, allocations: 4 kB / 1.062 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4129, allocations: 0 / 1.062 GB, free: 416 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004423/0.4133, allocations: 334.6 kB / 1.063 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.4134, allocations: 84.95 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.4134, allocations: 0 / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.4136, allocations: 23.97 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.75e-05/0.4137, allocations: 7.984 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.4137, allocations: 0 / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.085e-05/0.4137, allocations: 103.2 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.21e-07/0.4137, allocations: 4 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002732/0.414, allocations: 8 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * 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.0001311/0.4142, allocations: 95.25 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004349/0.4146, allocations: 139.8 kB / 1.063 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4146, allocations: 0 / 1.063 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.4148, allocations: 72.05 kB / 1.063 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.4152, allocations: 11.95 kB / 1.063 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004441/0.4156, allocations: 181.6 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.4161, allocations: 0.7004 MB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.926e-05/0.4162, allocations: 15.84 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.354e-05/0.4162, allocations: 11.38 kB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of SimCode: time 6.71e-07/0.4162, allocations: 0 / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of Templates: time 0.00396/0.4202, allocations: 0.6292 MB / 1.065 GB, free: 13.91 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[313]=2.990000 File[5002]=1.000000 Error: Could not read variable reaRep.y[1 in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! " Variables in the reference:time,reaRep.u[1],reaRep.y[1,1],reaRep.y[2,2],reaRep.y[3,2] Variables in the result:ram[1].duration,ram[1].height,ram[1].offset,ram[1].startTime,ram[2].duration,ram[2].height,ram[2].offset,ram[2].startTime,reaRep.nin,reaRep.nout,reaRep.u[1],reaRep.y[3,1],time