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.001682/0.001682, allocations: 108 kB / 15.61 MB, free: 152 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.001432/0.001432, allocations: 193.3 kB / 16.53 MB, free: 6.664 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.52/1.52, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.022/3.022, allocations: 482.6 MB / 0.7549 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003114/0.003114, allocations: 76.02 kB / 0.9241 GB, free: 29.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3826, allocations: 162.3 MB / 1.083 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002276/0.3849, allocations: 0.649 MB / 1.083 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.386, allocations: 0.7923 MB / 1.084 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.085e-05/0.3861, allocations: 4 kB / 1.084 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.3862, allocations: 7.938 kB / 1.084 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.3863, allocations: 19.91 kB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 6.928e-05/0.3864, allocations: 8 kB / 1.084 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.3865, allocations: 47.91 kB / 1.084 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.3867, allocations: 23.97 kB / 1.084 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.685e-05/0.3868, allocations: 27.86 kB / 1.084 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.073e-05/0.3869, allocations: 31.86 kB / 1.084 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.3869, allocations: 4 kB / 1.084 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.374e-05/0.3869, allocations: 4 kB / 1.084 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.441e-05/0.387, allocations: 23.95 kB / 1.084 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.765e-05/0.3871, allocations: 31.8 kB / 1.084 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.3872, allocations: 55.86 kB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3872, allocations: 0 / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.526e-06/0.3872, allocations: 3.984 kB / 1.084 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.241e-06/0.3872, allocations: 0 / 1.084 GB, free: 11.21 MB / 0.8419 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.0006962/0.3879, allocations: 396.9 kB / 1.085 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3879, allocations: 8.031 kB / 1.085 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.388, allocations: 8.844 kB / 1.085 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.3882, allocations: 192.2 kB / 1.085 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.3882, allocations: 384 / 1.085 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.3883, allocations: 8.375 kB / 1.085 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.3886, allocations: 131.9 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3886, allocations: 192 / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3887, allocations: 3.938 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3887, allocations: 0 / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003894/0.3891, allocations: 131.8 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007891/0.3899, allocations: 436.9 kB / 1.086 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.3901, allocations: 89.14 kB / 1.086 GB, free: 9.66 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.3903, allocations: 69.64 kB / 1.086 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.3904, allocations: 0 / 1.086 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3904, allocations: 38.5 kB / 1.086 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.3904, allocations: 0 / 1.086 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0006908/0.3911, allocations: 193.4 kB / 1.086 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.3912, allocations: 77.11 kB / 1.086 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.3913, allocations: 117.8 kB / 1.086 GB, free: 9.125 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.3913, allocations: 25.7 kB / 1.086 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.784e-05/0.3914, allocations: 104.2 kB / 1.086 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.3914, allocations: 3.906 kB / 1.086 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.04e-05/0.3915, allocations: 17.72 kB / 1.086 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3916, allocations: 318.8 kB / 1.087 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001839/0.3918, allocations: 47.94 kB / 1.087 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.392, allocations: 73.64 kB / 1.087 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003413/0.3924, allocations: 109.5 kB / 1.087 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3924, allocations: 0 / 1.087 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003989/0.3928, allocations: 137.6 kB / 1.087 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3928, allocations: 7.938 kB / 1.087 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3928, allocations: 0 / 1.087 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.3928, allocations: 3.984 kB / 1.087 GB, free: 8.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.393, allocations: 19.92 kB / 1.087 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.393, allocations: 0 / 1.087 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.3932, allocations: 27.97 kB / 1.087 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.3932, allocations: 0 / 1.087 GB, free: 8.203 MB / 0.8419 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.0001151/0.3933, allocations: 121.8 kB / 1.087 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.3933, allocations: 7.906 kB / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.762e-05/0.3934, allocations: 7.531 kB / 1.087 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.3934, allocations: 0 / 1.087 GB, free: 8.059 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.3934, allocations: 4 kB / 1.087 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3934, allocations: 7.922 kB / 1.087 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.3937, allocations: 173.7 kB / 1.087 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3937, allocations: 7.984 kB / 1.087 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.3938, allocations: 20.34 kB / 1.087 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3938, allocations: 0 / 1.087 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.3938, allocations: 0 / 1.087 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3938, allocations: 0 / 1.087 GB, free: 7.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3938, allocations: 7.938 kB / 1.087 GB, free: 7.793 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005507/0.3944, allocations: 318.5 kB / 1.088 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.3944, allocations: 81.05 kB / 1.088 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.3945, allocations: 0 / 1.088 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3946, allocations: 19.97 kB / 1.088 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.3947, allocations: 7.938 kB / 1.088 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.3947, allocations: 8.031 kB / 1.088 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.83e-05/0.3948, allocations: 95.25 kB / 1.088 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3948, allocations: 0 / 1.088 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002566/0.395, allocations: 8 kB / 1.088 GB, free: 7.23 MB / 0.8419 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.000161/0.3952, allocations: 99.25 kB / 1.088 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00044/0.3956, allocations: 115.8 kB / 1.088 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3956, allocations: 0 / 1.088 GB, free: 7.012 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.3959, allocations: 67.91 kB / 1.088 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.3962, allocations: 4 kB / 1.088 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004297/0.3966, allocations: 178.5 kB / 1.088 GB, free: 6.738 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.3971, allocations: 0.6962 MB / 1.089 GB, free: 6.016 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 5.351e-05/0.3972, allocations: 11.98 kB / 1.089 GB, free: 6.004 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.225e-05/0.3972, allocations: 11.44 kB / 1.089 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.3972, allocations: 0 / 1.089 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of Templates: time 0.003584/0.4008, allocations: 0.799 MB / 1.09 GB, free: 5.199 MB / 0.8419 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=400 -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