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.001826/0.001826, 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.003449/0.003449, allocations: 198.1 kB / 16.54 MB, free: 6.672 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.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.877/2.877, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 66.92 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3739, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001917/0.3758, allocations: 0.6501 MB / 1.069 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.3769, allocations: 0.7983 MB / 1.07 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.049e-05/0.377, allocations: 4 kB / 1.07 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.3771, allocations: 3.938 kB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.3772, allocations: 12 kB / 1.07 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 8.243e-05/0.3773, allocations: 7.984 kB / 1.07 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.3775, allocations: 63.77 kB / 1.07 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.3777, allocations: 16 kB / 1.07 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.536e-05/0.3778, allocations: 23.92 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.3779, allocations: 31.89 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.3779, allocations: 8 kB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.55e-05/0.378, allocations: 4 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.488e-05/0.378, allocations: 19.92 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.898e-05/0.3781, allocations: 27.86 kB / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.3783, allocations: 63.78 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.3783, allocations: 3.938 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.394e-06/0.3783, allocations: 0 / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.3783, allocations: 0 / 1.07 GB, free: 8.652 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.000746/0.3791, allocations: 391.5 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.3791, allocations: 8.031 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.3792, allocations: 12.78 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.3794, allocations: 188.3 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.3794, allocations: 384 / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.3794, allocations: 4.375 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.3798, allocations: 135.8 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.3798, allocations: 4.188 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3799, allocations: 7.938 kB / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.3799, allocations: 0 / 1.071 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003888/0.3803, allocations: 123.8 kB / 1.071 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006719/0.3809, allocations: 432.9 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.3812, allocations: 97.08 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.3814, allocations: 57.72 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.3814, allocations: 0 / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.3815, allocations: 38.56 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.3815, allocations: 0 / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0007014/0.3822, allocations: 197.3 kB / 1.071 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.3822, allocations: 77.11 kB / 1.072 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.3824, allocations: 118.1 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.3824, allocations: 29.7 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/0.3825, allocations: 100.2 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.3825, allocations: 11.92 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/0.3826, allocations: 17.66 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001707/0.3827, allocations: 318.8 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.3829, allocations: 51.92 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.3831, allocations: 77.58 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.3834, allocations: 101.6 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3835, allocations: 0 / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000369/0.3838, allocations: 137.6 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.3839, allocations: 4 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3839, allocations: 0 / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3839, allocations: 0 / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.3841, allocations: 23.97 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3841, allocations: 0 / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.128e-05/0.3842, allocations: 31.97 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.3842, allocations: 3.984 kB / 1.073 GB, free: 5.645 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.0001053/0.3843, allocations: 121.8 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.3843, allocations: 7.906 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.3844, allocations: 3.531 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3844, allocations: 0 / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3844, allocations: 4 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3844, allocations: 3.938 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.3847, allocations: 181.6 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3847, allocations: 4 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3848, allocations: 19.97 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3848, allocations: 0 / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.3849, allocations: 0 / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3849, allocations: 3.938 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3849, allocations: 4 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004797/0.3854, allocations: 306.6 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.3854, allocations: 88.94 kB / 1.073 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.796e-05/0.3854, allocations: 3.984 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.3856, allocations: 11.98 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.75e-05/0.3856, allocations: 15.92 kB / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.3856, allocations: 4 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.06e-05/0.3857, allocations: 99.23 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.783e-06/0.3857, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002557/0.386, allocations: 11.94 kB / 1.073 GB, free: 4.668 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.0001666/0.3862, allocations: 103.7 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004716/0.3866, allocations: 115.9 kB / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3866, allocations: 0 / 1.074 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001994/0.3868, allocations: 67.86 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.3872, allocations: 10.81 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.3877, allocations: 170.4 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.388, allocations: 0.7002 MB / 1.075 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.237e-05/0.388, allocations: 15.84 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.3881, allocations: 11.44 kB / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.3881, allocations: 0 / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of Templates: time 0.002821/0.3909, allocations: 0.8011 MB / 1.075 GB, free: 2.629 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