Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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_11_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_11_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.001839/0.001839, allocations: 116.5 kB / 16.81 MB, free: 5.77 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.002127/0.002127, allocations: 199.2 kB / 17.77 MB, free: 5.117 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.509/1.509, allocations: 225.6 MB / 244.2 MB, free: 13.88 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.883/2.883, allocations: 476.7 MB / 0.7556 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 61.19 kB / 1.097 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3938, allocations: 168.7 MB / 1.262 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001858/0.3957, allocations: 0.6492 MB / 1.263 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.3967, allocations: 0.7887 MB / 1.263 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.455e-05/0.3967, allocations: 0 / 1.263 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.768e-05/0.3968, allocations: 7.938 kB / 1.263 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.865e-05/0.3969, allocations: 15.88 kB / 1.263 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.449e-05/0.397, allocations: 11.98 kB / 1.264 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.3971, allocations: 59.83 kB / 1.264 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.3972, allocations: 15.98 kB / 1.264 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.258e-05/0.3973, allocations: 27.86 kB / 1.264 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.708e-05/0.3974, allocations: 35.89 kB / 1.264 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.909e-05/0.3974, allocations: 4 kB / 1.264 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.222e-05/0.3974, allocations: 4 kB / 1.264 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.385e-05/0.3975, allocations: 19.92 kB / 1.264 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.567e-05/0.3975, allocations: 27.86 kB / 1.264 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.3976, allocations: 71.72 kB / 1.264 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3976, allocations: 0 / 1.264 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3976, allocations: 0 / 1.264 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.3976, allocations: 0 / 1.264 GB, free: 11.22 MB / 0.9825 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.0006281/0.3983, allocations: 387.2 kB / 1.264 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.3983, allocations: 12.03 kB / 1.264 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.301e-05/0.3983, allocations: 4.891 kB / 1.264 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.3985, allocations: 196.2 kB / 1.264 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3986, allocations: 4.375 kB / 1.264 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.3986, allocations: 4.312 kB / 1.264 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003616/0.3989, allocations: 139.8 kB / 1.264 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3989, allocations: 192 / 1.264 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.399, allocations: 7.938 kB / 1.264 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.399, allocations: 0 / 1.264 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003935/0.3994, allocations: 127.8 kB / 1.265 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007357/0.4001, allocations: 432.9 kB / 1.265 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002271/0.4003, allocations: 89.09 kB / 1.265 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.4005, allocations: 61.7 kB / 1.265 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.4005, allocations: 4 kB / 1.265 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.4006, allocations: 38.56 kB / 1.265 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.4006, allocations: 0 / 1.265 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0006622/0.4012, allocations: 193.4 kB / 1.265 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.4013, allocations: 81.36 kB / 1.265 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.4014, allocations: 117.8 kB / 1.266 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.4014, allocations: 29.7 kB / 1.266 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.334e-05/0.4015, allocations: 96.03 kB / 1.266 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.4015, allocations: 3.953 kB / 1.266 GB, free: 9 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.4015, allocations: 17.7 kB / 1.266 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4017, allocations: 318.8 kB / 1.266 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.4019, allocations: 55.92 kB / 1.266 GB, free: 8.602 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.4021, allocations: 65.66 kB / 1.266 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003536/0.4024, allocations: 113.6 kB / 1.266 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4024, allocations: 0 / 1.266 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003968/0.4028, allocations: 137.5 kB / 1.266 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.4028, allocations: 4 kB / 1.266 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.4028, allocations: 0 / 1.266 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.4029, allocations: 4 kB / 1.266 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.403, allocations: 28.03 kB / 1.266 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.403, allocations: 7.984 kB / 1.266 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.832e-05/0.4031, allocations: 11.98 kB / 1.266 GB, free: 8.219 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.4031, allocations: 3.938 kB / 1.266 GB, free: 8.215 MB / 0.9825 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.0001045/0.4032, allocations: 121.8 kB / 1.267 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.016e-05/0.4033, allocations: 4 kB / 1.267 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.025e-05/0.4033, allocations: 11.45 kB / 1.267 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4033, allocations: 8 kB / 1.267 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4033, allocations: 0 / 1.267 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-05/0.4034, allocations: 81.06 kB / 1.267 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.4034, allocations: 7.938 kB / 1.267 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.4035, allocations: 19.97 kB / 1.267 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.4036, allocations: 3.984 kB / 1.267 GB, free: 7.926 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000539/0.4041, allocations: 304 kB / 1.267 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000521/0.4047, allocations: 389.9 kB / 1.267 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001976/0.4049, allocations: 59.92 kB / 1.267 GB, free: 7.164 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.03e-05/0.4049, allocations: 99.58 kB / 1.267 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of Backend: time 3.81e-07/0.4049, allocations: 0 / 1.267 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006052/0.4055, allocations: 146.3 kB / 1.268 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of SimCode: time 0.0006085/0.4061, allocations: 0.6116 MB / 1.268 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of Templates: time 0.003856/0.41, allocations: 1.014 MB / 1.269 GB, free: 5.25 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_11_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_11_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