Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009791/0.009791, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001974/0.001974, allocations: 194.2 kB / 16.67 MB, free: 5.52 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.096/1.097, allocations: 140.4 MB / 1.088 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002092/1.099, allocations: 0.6547 MB / 1.089 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009969/1.1, allocations: 0.7892 MB / 1.089 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.096e-05/1.101, allocations: 1.062 kB / 1.089 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001265/1.101, allocations: 9.109 kB / 1.089 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/1.101, allocations: 11.36 kB / 1.089 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 7.282e-05/1.101, allocations: 8.719 kB / 1.089 GB, free: 4.75 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001419/1.101, allocations: 54.34 kB / 1.089 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001654/1.101, allocations: 19.66 kB / 1.089 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.532e-05/1.101, allocations: 31.92 kB / 1.089 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.633e-05/1.101, allocations: 28.53 kB / 1.089 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.163e-05/1.101, allocations: 4.438 kB / 1.089 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.369e-05/1.101, allocations: 3.312 kB / 1.089 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.759e-05/1.102, allocations: 23.2 kB / 1.09 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/1.102, allocations: 27.72 kB / 1.09 GB, free: 4.668 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001511/1.102, allocations: 68.98 kB / 1.09 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.102, allocations: 5.547 kB / 1.09 GB, free: 4.641 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.535e-06/1.102, allocations: 4 kB / 1.09 GB, free: 4.637 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.772e-06/1.102, allocations: 0 / 1.09 GB, free: 4.637 MB / 0.8575 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.0006505/1.102, allocations: 392.3 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/1.102, allocations: 8.969 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/1.103, allocations: 4.797 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001789/1.103, allocations: 191.4 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/1.103, allocations: 1.75 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/1.103, allocations: 11.52 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003913/1.103, allocations: 132.8 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/1.103, allocations: 0.9062 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/1.103, allocations: 4.875 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/1.103, allocations: 1 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004414/1.104, allocations: 132.9 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006609/1.104, allocations: 435.2 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/1.105, allocations: 90.5 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/1.105, allocations: 66.42 kB / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/1.105, allocations: 0 / 1.091 GB, free: 3.484 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/1.105, allocations: 32.31 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.473e-06/1.105, allocations: 5.156 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0007516/1.106, allocations: 190.4 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/1.106, allocations: 78.2 kB / 1.091 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/1.106, allocations: 120.9 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.129e-05/1.106, allocations: 29.7 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.098e-05/1.106, allocations: 98 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/1.106, allocations: 6.391 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/1.106, allocations: 21.02 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.69e-05/1.106, allocations: 317.9 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/1.106, allocations: 50.77 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/1.106, allocations: 74.62 kB / 1.092 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/1.107, allocations: 106.3 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.107, allocations: 4.844 kB / 1.092 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004351/1.107, allocations: 136.8 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/1.107, allocations: 6.609 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/1.107, allocations: 0.75 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/1.107, allocations: 0.8125 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/1.108, allocations: 18.61 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/1.108, allocations: 4.875 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.575e-05/1.108, allocations: 19.14 kB / 1.092 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/1.108, allocations: 0.9062 kB / 1.092 GB, free: 2.594 MB / 0.8575 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.209e-05/1.108, allocations: 122.4 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/1.108, allocations: 7.484 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/1.108, allocations: 10.3 kB / 1.092 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/1.108, allocations: 0 / 1.092 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/1.108, allocations: 1.922 kB / 1.092 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/1.108, allocations: 12.86 kB / 1.092 GB, free: 2.449 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002258/1.108, allocations: 176.3 kB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/1.108, allocations: 4.688 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/1.108, allocations: 18.44 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/1.108, allocations: 1.219 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/1.108, allocations: 1.828 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.108, allocations: 4.938 kB / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.108, allocations: 0 / 1.093 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/1.109, allocations: 307.8 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/1.109, allocations: 83.19 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/1.109, allocations: 1.422 kB / 1.093 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/1.109, allocations: 19.61 kB / 1.093 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.513e-05/1.109, allocations: 14.8 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/1.109, allocations: 0.7812 kB / 1.093 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.987e-05/1.109, allocations: 98.61 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/1.109, allocations: 0.625 kB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002637/1.109, allocations: 8.594 kB / 1.093 GB, free: 1.832 MB / 0.8575 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.0001532/1.11, allocations: 102.2 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004859/1.11, allocations: 113.8 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/1.11, allocations: 0.7812 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002225/1.11, allocations: 67.67 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/1.111, allocations: 9.828 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004212/1.111, allocations: 170.5 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001513/1.111, allocations: 0.6959 MB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.41e-05/1.111, allocations: 13.39 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/1.111, allocations: 8.844 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/1.111, allocations: 0.8438 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of Templates: time 0.004511/1.116, allocations: 0.7917 MB / 1.095 GB, free: 0.7812 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_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