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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.00925/0.00925, allocations: 104.1 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.001838/0.001838, allocations: 190 kB / 16.67 MB, free: 5.516 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.397/1.397, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.713/2.713, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 63.89 kB / 1.054 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9321/0.9334, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002012/0.9354, allocations: 0.6534 MB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.9365, allocations: 0.8 MB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.294e-05/0.9366, allocations: 4 kB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.9367, allocations: 3.938 kB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.9368, allocations: 4 kB / 1.209 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 6.052e-05/0.9369, allocations: 7.984 kB / 1.209 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000127/0.937, allocations: 59.83 kB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.9372, allocations: 23.98 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.972e-05/0.9372, allocations: 23.92 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.68e-05/0.9373, allocations: 23.91 kB / 1.209 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.9373, allocations: 4 kB / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.026e-05/0.9374, allocations: 4 kB / 1.209 GB, free: 12 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.149e-05/0.9374, allocations: 27.91 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.241e-05/0.9375, allocations: 23.88 kB / 1.209 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.9376, allocations: 71.72 kB / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.9376, allocations: 0 / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.423e-06/0.9376, allocations: 0 / 1.209 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.9376, allocations: 4 kB / 1.209 GB, free: 11.88 MB / 0.9356 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.0005877/0.9382, allocations: 392.9 kB / 1.21 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.9382, allocations: 12.02 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/0.9383, allocations: 8.844 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.9385, allocations: 188.3 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.9386, allocations: 384 / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.9386, allocations: 4.375 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.9389, allocations: 139.8 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.9389, allocations: 192 / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.939, allocations: 7.938 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.939, allocations: 4 kB / 1.21 GB, free: 11.04 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.9394, allocations: 123.8 kB / 1.21 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006656/0.94, allocations: 428.9 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.9403, allocations: 97.08 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.9405, allocations: 61.7 kB / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.9405, allocations: 0 / 1.211 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.9405, allocations: 38.56 kB / 1.211 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.9405, allocations: 0 / 1.211 GB, free: 10.22 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0006509/0.9412, allocations: 193.3 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/0.9412, allocations: 85.03 kB / 1.211 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.907e-05/0.9414, allocations: 113.8 kB / 1.211 GB, free: 9.801 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.9414, allocations: 25.95 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.485e-05/0.9414, allocations: 108 kB / 1.211 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.9415, allocations: 3.906 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.51e-05/0.9415, allocations: 13.72 kB / 1.211 GB, free: 9.637 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.9416, allocations: 322.8 kB / 1.212 GB, free: 9.312 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.9418, allocations: 47.94 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.942, allocations: 69.64 kB / 1.212 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003255/0.9423, allocations: 105.6 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.9423, allocations: 0 / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003809/0.9427, allocations: 141.5 kB / 1.212 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.9428, allocations: 4 kB / 1.212 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.9428, allocations: 0 / 1.212 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.9428, allocations: 0 / 1.212 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.9429, allocations: 19.97 kB / 1.212 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.9429, allocations: 0 / 1.212 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.519e-05/0.943, allocations: 31.97 kB / 1.212 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.9431, allocations: 384 / 1.212 GB, free: 8.883 MB / 0.9356 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.00011/0.9432, allocations: 125.8 kB / 1.212 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.9432, allocations: 7.906 kB / 1.212 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.9432, allocations: 3.531 kB / 1.212 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.9433, allocations: 3.938 kB / 1.212 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.9433, allocations: 4 kB / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.9433, allocations: 7.922 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.9435, allocations: 185.6 kB / 1.212 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.9435, allocations: 4 kB / 1.212 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.9436, allocations: 19.97 kB / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.9436, allocations: 0 / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.9436, allocations: 0 / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.9437, allocations: 0 / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9437, allocations: 0 / 1.212 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004602/0.9441, allocations: 314.6 kB / 1.213 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.9442, allocations: 85.02 kB / 1.213 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.9442, allocations: 0 / 1.213 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.9444, allocations: 15.97 kB / 1.213 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.9444, allocations: 11.94 kB / 1.213 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.9444, allocations: 8.031 kB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.965e-05/0.9445, allocations: 91.27 kB / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9445, allocations: 0 / 1.213 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002754/0.9448, allocations: 8 kB / 1.213 GB, free: 7.902 MB / 0.9356 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.0001501/0.9449, allocations: 107.2 kB / 1.213 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004131/0.9453, allocations: 115.8 kB / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9454, allocations: 0 / 1.213 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.9456, allocations: 67.91 kB / 1.213 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.9459, allocations: 4 kB / 1.213 GB, free: 7.605 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003872/0.9463, allocations: 182.4 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.9466, allocations: 0.6963 MB / 1.214 GB, free: 6.676 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.161e-05/0.9466, allocations: 11.98 kB / 1.214 GB, free: 6.664 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.9467, allocations: 11.44 kB / 1.214 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.9467, allocations: 0 / 1.214 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of Templates: time 0.002988/0.9497, allocations: 0.7992 MB / 1.215 GB, free: 5.859 MB / 0.9356 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