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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001598/0.001598, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001701/0.001701, allocations: 192.8 kB / 16.14 MB, free: 6.699 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.503/1.503, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.112/3.112, allocations: 482.3 MB / 0.7542 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 66.64 kB / 0.9231 GB, free: 29.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4097/0.4117, allocations: 162.2 MB / 1.082 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002875/0.4146, allocations: 0.7146 MB / 1.082 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001362/0.416, allocations: 0.7923 MB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.419e-05/0.4161, allocations: 0 / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.4163, allocations: 3.984 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.4165, allocations: 15.94 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 7.92e-05/0.4166, allocations: 4 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.4168, allocations: 63.83 kB / 1.083 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.417, allocations: 15.92 kB / 1.083 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.4171, allocations: 23.92 kB / 1.083 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.4172, allocations: 27.91 kB / 1.083 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.4172, allocations: 0 / 1.083 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.359e-05/0.4173, allocations: 4 kB / 1.083 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.617e-05/0.4173, allocations: 27.91 kB / 1.083 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.132e-05/0.4174, allocations: 23.86 kB / 1.083 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.4175, allocations: 59.78 kB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.4175, allocations: 7.984 kB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.91e-07/0.4176, allocations: 0 / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.4176, allocations: 3.938 kB / 1.083 GB, free: 11.92 MB / 0.8419 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.0007285/0.4183, allocations: 387.6 kB / 1.084 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.4184, allocations: 12.03 kB / 1.084 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/0.4184, allocations: 4.844 kB / 1.084 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.4186, allocations: 188.2 kB / 1.084 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.4186, allocations: 8.375 kB / 1.084 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.4187, allocations: 384 / 1.084 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.419, allocations: 135.9 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.4191, allocations: 192 / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.4191, allocations: 7.938 kB / 1.084 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.4191, allocations: 4 kB / 1.084 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003669/0.4195, allocations: 127.8 kB / 1.084 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007505/0.4202, allocations: 432.9 kB / 1.085 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.4205, allocations: 89.14 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.4207, allocations: 73.62 kB / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.4207, allocations: 0 / 1.085 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.4207, allocations: 30.56 kB / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.4207, allocations: 0 / 1.085 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0006687/0.4214, allocations: 193.4 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/0.4215, allocations: 77.11 kB / 1.085 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.4216, allocations: 117.8 kB / 1.085 GB, free: 9.852 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.4217, allocations: 29.64 kB / 1.085 GB, free: 9.816 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.398e-05/0.4217, allocations: 104.6 kB / 1.085 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.343e-05/0.4218, allocations: 7.906 kB / 1.085 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.263e-05/0.4218, allocations: 13.72 kB / 1.085 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.422, allocations: 322.8 kB / 1.086 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.4222, allocations: 55.88 kB / 1.086 GB, free: 9.305 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.4224, allocations: 65.64 kB / 1.086 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.4227, allocations: 109.5 kB / 1.086 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4227, allocations: 0 / 1.086 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005563/0.4233, allocations: 137.6 kB / 1.086 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.773e-05/0.4233, allocations: 4 kB / 1.086 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4234, allocations: 4 kB / 1.086 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.4234, allocations: 3.984 kB / 1.086 GB, free: 8.969 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001782/0.4236, allocations: 15.98 kB / 1.086 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.4236, allocations: 0 / 1.086 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.4237, allocations: 23.97 kB / 1.086 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.4237, allocations: 0 / 1.086 GB, free: 8.93 MB / 0.8419 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001467/0.4239, allocations: 121.8 kB / 1.086 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.539e-05/0.424, allocations: 7.906 kB / 1.086 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.911e-05/0.424, allocations: 11.53 kB / 1.086 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.424, allocations: 0 / 1.086 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.424, allocations: 0 / 1.086 GB, free: 8.781 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4241, allocations: 7.922 kB / 1.086 GB, free: 8.773 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.4244, allocations: 173.7 kB / 1.086 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4244, allocations: 4 kB / 1.086 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001338/0.4246, allocations: 19.97 kB / 1.086 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4246, allocations: 0 / 1.086 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.4246, allocations: 0 / 1.086 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.4246, allocations: 4 kB / 1.086 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4246, allocations: 0 / 1.086 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006276/0.4253, allocations: 322.5 kB / 1.087 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.4253, allocations: 81.05 kB / 1.087 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.4254, allocations: 8 kB / 1.087 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.4256, allocations: 15.97 kB / 1.087 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.042e-05/0.4257, allocations: 11.92 kB / 1.087 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/0.4257, allocations: 3.938 kB / 1.087 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9e-05/0.4258, allocations: 99.3 kB / 1.087 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of sort global known variables: time 5.11e-07/0.4258, allocations: 0 / 1.087 GB, free: 7.961 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004115/0.4262, allocations: 12.28 kB / 1.087 GB, free: 7.949 MB / 0.8419 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 (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.0001879/0.4264, allocations: 99.19 kB / 1.087 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005541/0.427, allocations: 111.9 kB / 1.087 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.197e-06/0.427, allocations: 7.938 kB / 1.087 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002568/0.4272, allocations: 63.91 kB / 1.087 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.4277, allocations: 11.94 kB / 1.087 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000582/0.4283, allocations: 188.2 kB / 1.087 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.4288, allocations: 0.6965 MB / 1.088 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.66e-05/0.4289, allocations: 15.97 kB / 1.088 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.292e-05/0.4289, allocations: 7.438 kB / 1.088 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.4289, allocations: 0 / 1.088 GB, free: 6.691 MB / 0.8419 GB Notification: Performance of Templates: time 0.004386/0.4333, allocations: 0.6407 MB / 1.089 GB, free: 6.055 MB / 0.8419 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=400 -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