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.0082/0.0082, allocations: 98.45 kB / 15.73 MB, free: 5.551 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.002056/0.002056, allocations: 194.2 kB / 16.67 MB, free: 5.473 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.678/2.678, allocations: 469.8 MB / 0.7425 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 71.88 kB / 1.065 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9161/0.9176, allocations: 159.1 MB / 1.221 GB, free: 2.113 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001812/0.9194, allocations: 0.656 MB / 1.221 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009526/0.9203, allocations: 0.7923 MB / 1.222 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.419e-05/0.9204, allocations: 0 / 1.222 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.9205, allocations: 3.938 kB / 1.222 GB, free: 0.6523 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.9206, allocations: 11.98 kB / 1.222 GB, free: 0.6406 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.861e-05/0.9207, allocations: 0 / 1.222 GB, free: 0.6406 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.9208, allocations: 67.81 kB / 1.222 GB, free: 0.5742 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.921, allocations: 16 kB / 1.222 GB, free: 0.5586 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 6.878e-05/0.921, allocations: 23.92 kB / 1.222 GB, free: 0.5352 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.493e-05/0.9211, allocations: 31.89 kB / 1.222 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.018e-05/0.9211, allocations: 4 kB / 1.222 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.289e-05/0.9212, allocations: 4 kB / 1.222 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.9212, allocations: 23.86 kB / 1.222 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.484e-05/0.9213, allocations: 27.86 kB / 1.222 GB, free: 456 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.9214, allocations: 67.44 kB / 1.222 GB, free: 392 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.9214, allocations: 0 / 1.222 GB, free: 392 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.112e-06/0.9214, allocations: 0 / 1.222 GB, free: 392 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.9214, allocations: 0 / 1.222 GB, free: 392 kB / 0.9356 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.0007388/0.9222, allocations: 404 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.9222, allocations: 8.031 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.401e-05/0.9223, allocations: 8.891 kB / 1.223 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.9225, allocations: 188.3 kB / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.9225, allocations: 384 / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.9225, allocations: 8.312 kB / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.9229, allocations: 139.9 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.9229, allocations: 4.125 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.9229, allocations: 3.938 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.9229, allocations: 0 / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.9233, allocations: 127.8 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.9239, allocations: 432.9 kB / 1.224 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.9242, allocations: 89.09 kB / 1.224 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.9243, allocations: 65.7 kB / 1.224 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.9243, allocations: 0 / 1.224 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.9244, allocations: 42.5 kB / 1.224 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.9244, allocations: 0 / 1.224 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0006236/0.925, allocations: 185.5 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.9251, allocations: 85.05 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.9252, allocations: 121.8 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.247e-05/0.9252, allocations: 25.7 kB / 1.224 GB, free: 14.26 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.9252, allocations: 96.28 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.039e-05/0.9252, allocations: 7.953 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.9253, allocations: 17.7 kB / 1.224 GB, free: 14.13 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.9254, allocations: 318.8 kB / 1.225 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.9256, allocations: 55.92 kB / 1.225 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.9257, allocations: 73.59 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.926, allocations: 105.6 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.926, allocations: 3.938 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003449/0.9264, allocations: 137.6 kB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.9264, allocations: 4 kB / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.9264, allocations: 0 / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.9264, allocations: 0 / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.9265, allocations: 23.97 kB / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.9265, allocations: 0 / 1.225 GB, free: 13.4 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.116e-05/0.9266, allocations: 15.92 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.9266, allocations: 12 kB / 1.225 GB, free: 13.37 MB / 0.9512 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 8.575e-05/0.9267, allocations: 122.4 kB / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.9267, allocations: 0 / 1.225 GB, free: 13.24 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.9268, allocations: 11.89 kB / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.9268, allocations: 0 / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.9268, allocations: 0 / 1.225 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.9268, allocations: 7.938 kB / 1.225 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.927, allocations: 185.6 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.927, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.9271, allocations: 23.97 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.9271, allocations: 0 / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.9271, allocations: 0 / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.9271, allocations: 0 / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.9271, allocations: 0 / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004086/0.9275, allocations: 314.5 kB / 1.226 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.846e-05/0.9276, allocations: 81.11 kB / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.9276, allocations: 0 / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.9277, allocations: 15.97 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.759e-05/0.9278, allocations: 15.92 kB / 1.226 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.9278, allocations: 3.984 kB / 1.226 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.611e-05/0.9279, allocations: 99.3 kB / 1.226 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of sort global known variables: time 7e-08/0.9279, allocations: 0 / 1.226 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002634/0.9281, allocations: 11.95 kB / 1.226 GB, free: 12.39 MB / 0.9512 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.0001333/0.9283, allocations: 103.2 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000413/0.9287, allocations: 115.8 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.9287, allocations: 4.125 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001764/0.9288, allocations: 63.86 kB / 1.226 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.9292, allocations: 8 kB / 1.226 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003988/0.9296, allocations: 170.1 kB / 1.226 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.9299, allocations: 0.7042 MB / 1.227 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.51e-05/0.9299, allocations: 11.98 kB / 1.227 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.275e-05/0.93, allocations: 11.44 kB / 1.227 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.93, allocations: 0 / 1.227 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of Templates: time 0.003102/0.9331, allocations: 0.8067 MB / 1.228 GB, free: 10.35 MB / 0.9512 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=480 -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/jenkins/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