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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001755/0.001755, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002165/0.002165, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.437/1.437, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.015/3.015, allocations: 472.7 MB / 0.7452 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 64.69 kB / 0.9121 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3805, allocations: 159.9 MB / 1.068 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002537/0.3831, allocations: 0.6406 MB / 1.069 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.3843, allocations: 0.8061 MB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.734e-05/0.3844, allocations: 4 kB / 1.07 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.3846, allocations: 3.938 kB / 1.07 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.3848, allocations: 11.92 kB / 1.07 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 7.575e-05/0.3848, allocations: 8 kB / 1.07 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001362/0.385, allocations: 55.83 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.3852, allocations: 23.98 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.59e-05/0.3853, allocations: 31.86 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.3854, allocations: 23.91 kB / 1.07 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.3854, allocations: 4 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.605e-05/0.3855, allocations: 4 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.685e-05/0.3855, allocations: 23.97 kB / 1.07 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.11e-05/0.3856, allocations: 27.8 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.3858, allocations: 59.84 kB / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3858, allocations: 0 / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.994e-06/0.3858, allocations: 0 / 1.07 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.3858, allocations: 7.984 kB / 1.07 GB, free: 8.59 MB / 0.8262 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.0009046/0.3868, allocations: 393.9 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.3868, allocations: 8.031 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.201e-05/0.3869, allocations: 12.84 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.3871, allocations: 184.2 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.3871, allocations: 8.312 kB / 1.071 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.3872, allocations: 4.375 kB / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004105/0.3876, allocations: 131.9 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3876, allocations: 192 / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.3876, allocations: 3.938 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3876, allocations: 4 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004063/0.3881, allocations: 127.8 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007684/0.3888, allocations: 432.9 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002421/0.3891, allocations: 89.14 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.3893, allocations: 65.7 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.284e-05/0.3893, allocations: 4 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.3894, allocations: 34.5 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.834e-06/0.3894, allocations: 4 kB / 1.071 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0006976/0.3901, allocations: 193.3 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.3901, allocations: 77.11 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.3903, allocations: 122.1 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.3903, allocations: 25.7 kB / 1.072 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.471e-05/0.3904, allocations: 99.97 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.3904, allocations: 3.906 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.442e-05/0.3904, allocations: 17.72 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3906, allocations: 318.8 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.3908, allocations: 55.94 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.3909, allocations: 65.64 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.3913, allocations: 109.5 kB / 1.072 GB, free: 5.793 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.3913, allocations: 4.062 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004051/0.3917, allocations: 133.6 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3918, allocations: 4.375 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.3918, allocations: 0 / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.3918, allocations: 7.984 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.3919, allocations: 15.98 kB / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.392, allocations: 11.94 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.277e-05/0.3921, allocations: 19.91 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.3921, allocations: 0 / 1.073 GB, free: 5.594 MB / 0.8262 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.0001096/0.3922, allocations: 123.6 kB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.209e-05/0.3922, allocations: 7.906 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.582e-05/0.3923, allocations: 11.52 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3923, allocations: 4 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3923, allocations: 0 / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3923, allocations: 7.938 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.3926, allocations: 177.6 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3926, allocations: 0 / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.3927, allocations: 19.97 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.3927, allocations: 0 / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3927, allocations: 4 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.3927, allocations: 0 / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3927, allocations: 4 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.3932, allocations: 314.6 kB / 1.073 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.3933, allocations: 84.95 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.3933, allocations: 4 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.3935, allocations: 19.97 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.3935, allocations: 7.969 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.3936, allocations: 4 kB / 1.073 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.586e-05/0.3936, allocations: 95.25 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3936, allocations: 0 / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002701/0.3939, allocations: 12 kB / 1.073 GB, free: 4.613 MB / 0.8262 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.0001521/0.3941, allocations: 99.78 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.3945, allocations: 111.8 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3945, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.3947, allocations: 67.91 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.3951, allocations: 13.81 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004578/0.3955, allocations: 182.7 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.3959, allocations: 0.6924 MB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.397e-05/0.3959, allocations: 19.92 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.396, allocations: 15.44 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.396, allocations: 0 / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of Templates: time 0.00316/0.3991, allocations: 0.7917 MB / 1.075 GB, free: 2.574 MB / 0.8262 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 -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/jenkins/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