Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001276/0.001276, allocations: 111.8 kB / 16.42 MB, free: 5.918 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.001305/0.001305, allocations: 191.7 kB / 17.35 MB, free: 5.555 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.413/1.413, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.716/2.716, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.89 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.073/1.074, allocations: 151.6 MB / 1.167 GB, free: 3.828 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002233/1.076, allocations: 0.6459 MB / 1.168 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001198/1.078, allocations: 0.7962 MB / 1.169 GB, free: 2.375 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.955e-05/1.078, allocations: 4 kB / 1.169 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001183/1.078, allocations: 7.922 kB / 1.169 GB, free: 2.363 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001194/1.078, allocations: 8 kB / 1.169 GB, free: 2.355 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 7.372e-05/1.078, allocations: 7.984 kB / 1.169 GB, free: 2.348 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/1.078, allocations: 63.83 kB / 1.169 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/1.078, allocations: 12 kB / 1.169 GB, free: 2.273 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.866e-05/1.078, allocations: 31.91 kB / 1.169 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/1.079, allocations: 27.91 kB / 1.169 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.803e-05/1.079, allocations: 4 kB / 1.169 GB, free: 2.211 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.595e-05/1.079, allocations: 4 kB / 1.169 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.597e-05/1.079, allocations: 23.92 kB / 1.169 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.627e-05/1.079, allocations: 27.8 kB / 1.169 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/1.079, allocations: 75.42 kB / 1.169 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/1.079, allocations: 0 / 1.169 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.904e-06/1.079, allocations: 0 / 1.169 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.945e-06/1.079, allocations: 0 / 1.169 GB, free: 2.086 MB / 0.8887 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.0007145/1.08, allocations: 400 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.08, allocations: 12.92 kB / 1.169 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/1.08, allocations: 0.9375 kB / 1.169 GB, free: 1.637 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002158/1.08, allocations: 188.3 kB / 1.17 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/1.08, allocations: 4.375 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/1.08, allocations: 384 / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003964/1.08, allocations: 142.2 kB / 1.17 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/1.08, allocations: 192 / 1.17 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/1.08, allocations: 15.88 kB / 1.17 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/1.08, allocations: 0 / 1.17 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000371/1.081, allocations: 127.8 kB / 1.17 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/1.082, allocations: 429 kB / 1.17 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/1.082, allocations: 93.08 kB / 1.17 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/1.082, allocations: 61.72 kB / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.326e-05/1.082, allocations: 0 / 1.17 GB, free: 484 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/1.082, allocations: 30.56 kB / 1.17 GB, free: 444 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/1.082, allocations: 3.938 kB / 1.17 GB, free: 440 kB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0006113/1.083, allocations: 193.4 kB / 1.171 GB, free: 240 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/1.083, allocations: 81.05 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.399e-05/1.083, allocations: 121.8 kB / 1.171 GB, free: 8 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/1.083, allocations: 25.7 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.598e-05/1.083, allocations: 104.3 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/1.083, allocations: 11.94 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/1.083, allocations: 13.72 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001097/1.083, allocations: 318.8 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/1.083, allocations: 55.92 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/1.083, allocations: 65.64 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/1.084, allocations: 105.6 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/1.084, allocations: 0 / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003613/1.084, allocations: 137.6 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/1.084, allocations: 4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/1.084, allocations: 7.922 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/1.084, allocations: 4 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/1.084, allocations: 15.97 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/1.084, allocations: 4 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.714e-05/1.084, allocations: 23.98 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/1.084, allocations: 3.938 kB / 1.172 GB, free: 15.08 MB / 0.9044 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.0001088/1.085, allocations: 125.8 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.035e-05/1.085, allocations: 4 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.889e-05/1.085, allocations: 7.531 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/1.085, allocations: 4.375 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/1.085, allocations: 0 / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/1.085, allocations: 81.06 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/1.085, allocations: 3.938 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/1.085, allocations: 27.91 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.203e-05/1.085, allocations: 11.98 kB / 1.172 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005065/1.085, allocations: 300.1 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000462/1.086, allocations: 382 kB / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001878/1.086, allocations: 67.95 kB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.568e-05/1.086, allocations: 91.27 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of Backend: time 4.61e-07/1.086, allocations: 3.938 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005808/1.087, allocations: 138.2 kB / 1.173 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0005569/1.087, allocations: 0.6039 MB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of Templates: time 0.003474/1.091, allocations: 1.012 MB / 1.174 GB, free: 12.14 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_10_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_10_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