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.001392/0.001392, allocations: 115.6 kB / 16.37 MB, free: 6.012 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.001496/0.001496, allocations: 191.6 kB / 17.31 MB, free: 5.613 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.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.427/2.427, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.48 kB / 0.8707 GB, free: 1.438 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2967, allocations: 151.6 MB / 1.019 GB, free: 9.848 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001777/0.2986, allocations: 0.6365 MB / 1.019 GB, free: 9.207 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.2993, allocations: 0.8079 MB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.978e-05/0.2994, allocations: 4 kB / 1.02 GB, free: 8.383 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.418e-05/0.2995, allocations: 3.938 kB / 1.02 GB, free: 8.379 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.815e-05/0.2996, allocations: 3.938 kB / 1.02 GB, free: 8.375 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 5.798e-05/0.2996, allocations: 11.98 kB / 1.02 GB, free: 8.363 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/0.2998, allocations: 55.83 kB / 1.02 GB, free: 8.309 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.2999, allocations: 23.98 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.545e-05/0.3, allocations: 31.86 kB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.191e-05/0.3, allocations: 23.91 kB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.613e-05/0.3001, allocations: 4 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.028e-05/0.3001, allocations: 4 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.127e-05/0.3001, allocations: 27.91 kB / 1.02 GB, free: 8.195 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.064e-05/0.3002, allocations: 27.86 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 9.717e-05/0.3003, allocations: 59.8 kB / 1.02 GB, free: 8.109 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3003, allocations: 3.984 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3003, allocations: 4 kB / 1.02 GB, free: 8.102 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.3003, allocations: 0 / 1.02 GB, free: 8.102 MB / 0.795 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.0005231/0.3008, allocations: 391.3 kB / 1.021 GB, free: 7.668 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3009, allocations: 12.86 kB / 1.021 GB, free: 7.656 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.3009, allocations: 8.844 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3011, allocations: 192.1 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.3011, allocations: 4.375 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.3011, allocations: 4.375 kB / 1.021 GB, free: 7.414 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.3014, allocations: 135.9 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.3015, allocations: 192 / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3015, allocations: 3.938 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3015, allocations: 0 / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.3018, allocations: 135.8 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005907/0.3024, allocations: 428.9 kB / 1.022 GB, free: 6.66 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.3027, allocations: 93.08 kB / 1.022 GB, free: 6.551 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.3028, allocations: 69.64 kB / 1.022 GB, free: 6.477 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.3029, allocations: 0 / 1.022 GB, free: 6.477 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.3029, allocations: 34.56 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.3029, allocations: 0 / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0006132/0.3035, allocations: 197.3 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.3036, allocations: 77.11 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.724e-05/0.3037, allocations: 118.1 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3037, allocations: 29.7 kB / 1.022 GB, free: 5.98 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.96e-05/0.3037, allocations: 99.97 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.3038, allocations: 0 / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.654e-05/0.3038, allocations: 18.09 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.573e-05/0.3039, allocations: 318.8 kB / 1.023 GB, free: 5.535 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.3041, allocations: 51.94 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.3042, allocations: 69.64 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.3046, allocations: 109.5 kB / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.3046, allocations: 0 / 1.023 GB, free: 5.297 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000353/0.3049, allocations: 145.5 kB / 1.023 GB, free: 5.148 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.305, allocations: 4 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.305, allocations: 3.984 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.305, allocations: 0 / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.3051, allocations: 15.98 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3051, allocations: 4.062 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.978e-05/0.3052, allocations: 23.91 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.3052, allocations: 0 / 1.023 GB, free: 5.098 MB / 0.795 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 7.984e-05/0.3053, allocations: 122.5 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.296e-05/0.3054, allocations: 4 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.3054, allocations: 7.531 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.3054, allocations: 0 / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3054, allocations: 4 kB / 1.023 GB, free: 4.953 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3054, allocations: 11.92 kB / 1.023 GB, free: 4.941 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002185/0.3056, allocations: 181.6 kB / 1.023 GB, free: 4.715 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3056, allocations: 3.984 kB / 1.023 GB, free: 4.711 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.3058, allocations: 15.98 kB / 1.023 GB, free: 4.695 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3058, allocations: 3.938 kB / 1.024 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.3058, allocations: 0 / 1.024 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3058, allocations: 0 / 1.024 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3058, allocations: 0 / 1.024 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004197/0.3062, allocations: 314.6 kB / 1.024 GB, free: 4.367 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.975e-05/0.3063, allocations: 92.95 kB / 1.024 GB, free: 4.258 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.3063, allocations: 0 / 1.024 GB, free: 4.258 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.3064, allocations: 15.97 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.3065, allocations: 11.97 kB / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.3065, allocations: 0 / 1.024 GB, free: 4.23 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.467e-05/0.3066, allocations: 99.25 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3066, allocations: 0 / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002676/0.3068, allocations: 8 kB / 1.024 GB, free: 4.125 MB / 0.795 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.0001032/0.3069, allocations: 103.2 kB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003971/0.3073, allocations: 112.1 kB / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3074, allocations: 0 / 1.024 GB, free: 3.902 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001824/0.3075, allocations: 67.91 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.3079, allocations: 11.94 kB / 1.024 GB, free: 3.824 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000343/0.3082, allocations: 167.4 kB / 1.024 GB, free: 3.633 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3085, allocations: 0.6924 MB / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.912e-05/0.3085, allocations: 19.97 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.3086, allocations: 11.44 kB / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3086, allocations: 0 / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of Templates: time 0.002682/0.3113, allocations: 0.7987 MB / 1.026 GB, free: 2.094 MB / 0.795 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 -s cvode -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/jenkins1/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