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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001162/0.001162, allocations: 108.6 kB / 16.37 MB, free: 6.465 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.00119/0.00119, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.411/1.411, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.618/2.618, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 69.39 kB / 0.8774 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.313, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001883/0.3149, allocations: 0.6481 MB / 1.027 GB, free: 1.387 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000795/0.3157, allocations: 0.8025 MB / 1.028 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.297e-05/0.3158, allocations: 0 / 1.028 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.9e-05/0.3159, allocations: 3.938 kB / 1.028 GB, free: 0.5703 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.661e-05/0.316, allocations: 15.92 kB / 1.028 GB, free: 0.5547 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 5.067e-05/0.316, allocations: 4 kB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3162, allocations: 63.81 kB / 1.028 GB, free: 500 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.3163, allocations: 16 kB / 1.028 GB, free: 484 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.084e-05/0.3164, allocations: 27.86 kB / 1.028 GB, free: 456 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.702e-05/0.3164, allocations: 35.89 kB / 1.028 GB, free: 420 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.3165, allocations: 4 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.051e-05/0.3165, allocations: 4 kB / 1.028 GB, free: 412 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.568e-05/0.3165, allocations: 19.92 kB / 1.028 GB, free: 392 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.373e-05/0.3166, allocations: 27.86 kB / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.3167, allocations: 71.77 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.3167, allocations: 0 / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3167, allocations: 0 / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.3167, allocations: 4 kB / 1.028 GB, free: 288 kB / 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.000535/0.3173, allocations: 388.5 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.3173, allocations: 8.031 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.824e-05/0.3174, allocations: 4.938 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001679/0.3175, allocations: 192.2 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.3175, allocations: 4.312 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.3176, allocations: 4.375 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003101/0.3179, allocations: 135.9 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3179, allocations: 8.062 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.3179, allocations: 7.938 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.3179, allocations: 4 kB / 1.029 GB, free: 15.44 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003439/0.3183, allocations: 123.8 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005763/0.3189, allocations: 428.9 kB / 1.03 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.3191, allocations: 85.16 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3192, allocations: 73.64 kB / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.3193, allocations: 0 / 1.03 GB, free: 14.67 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.3193, allocations: 38.56 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.51e-07/0.3193, allocations: 0 / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0005793/0.3199, allocations: 197.4 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.3199, allocations: 77.11 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.478e-05/0.32, allocations: 117.8 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.32, allocations: 29.7 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.604e-05/0.3201, allocations: 95.98 kB / 1.03 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.3201, allocations: 7.891 kB / 1.03 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.3202, allocations: 17.88 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3203, allocations: 318.8 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.3204, allocations: 51.92 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.3206, allocations: 65.66 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003146/0.3209, allocations: 113.6 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3209, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003377/0.3213, allocations: 137.5 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.3213, allocations: 4.375 kB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3213, allocations: 0 / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3213, allocations: 0 / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.3215, allocations: 19.97 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3215, allocations: 7.922 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.107e-05/0.3216, allocations: 23.92 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.3216, allocations: 0 / 1.031 GB, free: 13.29 MB / 0.8106 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 9.069e-05/0.3217, allocations: 125.9 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.3217, allocations: 11.89 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.119e-05/0.3218, allocations: 3.531 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3218, allocations: 0 / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3218, allocations: 7.938 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.237e-06/0.3218, allocations: 3.938 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.322, allocations: 181.6 kB / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.322, allocations: 0 / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.772e-05/0.3221, allocations: 19.97 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3221, allocations: 4 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.3221, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3221, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3222, allocations: 7.938 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.3226, allocations: 310.6 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.174e-05/0.3226, allocations: 84.95 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.499e-05/0.3226, allocations: 0 / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.3228, allocations: 15.97 kB / 1.032 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.174e-05/0.3228, allocations: 15.92 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.3228, allocations: 4 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.49e-05/0.3229, allocations: 91.27 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3229, allocations: 4.031 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002563/0.3232, allocations: 8 kB / 1.032 GB, free: 12.31 MB / 0.8106 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.00014/0.3233, allocations: 99.25 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003895/0.3237, allocations: 115.8 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3237, allocations: 128 / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001727/0.3239, allocations: 67.92 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.3243, allocations: 8 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004004/0.3247, allocations: 163.9 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002552/0.3249, allocations: 0.7042 MB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.569e-05/0.325, allocations: 19.78 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.114e-05/0.325, allocations: 11.44 kB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.325, allocations: 0 / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of Templates: time 0.003012/0.328, allocations: 0.7945 MB / 1.034 GB, free: 10.27 MB / 0.8106 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=480 -s cvode -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/jenkins1/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