Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001044/0.001044, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001247/0.001247, allocations: 172.7 kB / 15.95 MB, free: 208 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.552/1.552, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.864/2.864, allocations: 437.7 MB / 0.7117 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003976, allocations: 15.94 kB / 0.8722 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8939/0.8944, allocations: 153.8 MB / 1.022 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001028/0.8954, allocations: 377 kB / 1.023 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.8967, allocations: 0.7885 MB / 1.024 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.614e-05/0.8968, allocations: 4 kB / 1.024 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.8969, allocations: 3.984 kB / 1.024 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001327/0.8971, allocations: 11.94 kB / 1.024 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 7.504e-05/0.8972, allocations: 3.984 kB / 1.024 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.8973, allocations: 47.84 kB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.8975, allocations: 12 kB / 1.024 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.693e-05/0.8976, allocations: 19.92 kB / 1.024 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.796e-05/0.8976, allocations: 19.91 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.8977, allocations: 7.938 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.247e-05/0.8977, allocations: 0 / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.582e-05/0.8977, allocations: 15.98 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.8978, allocations: 37.64 kB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.8979, allocations: 55.83 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.8979, allocations: 4 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.314e-06/0.8979, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.803e-06/0.8979, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 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.0007171/0.8987, allocations: 394.6 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.8987, allocations: 8.562 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.932e-05/0.8988, allocations: 7.906 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.899, allocations: 179 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.899, allocations: 4 kB / 1.024 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/0.8991, allocations: 15.94 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.8995, allocations: 143.2 kB / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.8995, allocations: 0 / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.8995, allocations: 0 / 1.024 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.8995, allocations: 4 kB / 1.024 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.8999, allocations: 151.8 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007337/0.9007, allocations: 440.9 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.9009, allocations: 105.1 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.9011, allocations: 65.72 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.9011, allocations: 4 kB / 1.025 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.9012, allocations: 42.5 kB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.452e-06/0.9012, allocations: 0 / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0006711/0.9018, allocations: 221.5 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.9019, allocations: 81.05 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.902, allocations: 130.1 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.9021, allocations: 25.7 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.9022, allocations: 99.92 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.9022, allocations: 3.984 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.027e-06/0.9022, allocations: 0 / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.9023, allocations: 322.8 kB / 1.026 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.9025, allocations: 63.92 kB / 1.026 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.9027, allocations: 69.66 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.9029, allocations: 63.98 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.9029, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003796/0.9033, allocations: 165.4 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.9033, allocations: 4 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.9033, allocations: 12.05 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.9033, allocations: 0 / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.9035, allocations: 23.97 kB / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.9035, allocations: 0 / 1.026 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.622e-05/0.9036, allocations: 15.98 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.9036, allocations: 4 kB / 1.027 GB, free: 11.55 MB / 0.7794 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 0.0001045/0.9037, allocations: 129.8 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.9038, allocations: 3.906 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.512e-05/0.9038, allocations: 15.52 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.9038, allocations: 4 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.9039, allocations: 0 / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.9039, allocations: 4 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.9041, allocations: 177.6 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.9041, allocations: 4 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.9042, allocations: 31.91 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.9042, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.9043, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.9043, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.9043, allocations: 0 / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004509/0.9047, allocations: 334.7 kB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.663e-05/0.9048, allocations: 85.02 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.9048, allocations: 0 / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.905, allocations: 19.97 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.905, allocations: 7.984 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.9051, allocations: 4 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.184e-05/0.9051, allocations: 99.52 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9051, allocations: 7.969 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002642/0.9054, allocations: 12 kB / 1.027 GB, free: 10.53 MB / 0.7794 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.0001484/0.9056, allocations: 103.2 kB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004891/0.9061, allocations: 131.8 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9061, allocations: 0 / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.9063, allocations: 80.05 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.9066, allocations: 13.05 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004391/0.9071, allocations: 185.5 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003369/0.9074, allocations: 0.6965 MB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.68e-05/0.9075, allocations: 15.98 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.9075, allocations: 7.438 kB / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of SimCode: time 4.11e-07/0.9075, allocations: 0 / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of Templates: time 0.003473/0.911, allocations: 0.6185 MB / 1.029 GB, free: 8.629 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_10_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