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.001218/0.001218, allocations: 109.8 kB / 16.41 MB, free: 6.465 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.001283/0.001283, allocations: 192.3 kB / 17.35 MB, free: 5.715 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.41/1.41, allocations: 222.9 MB / 241.1 MB, free: 15.13 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.28/2.28, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 63.91 kB / 0.9516 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9856/0.9873, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001779/0.9891, allocations: 0.6618 MB / 1.089 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008678/0.99, allocations: 0.7917 MB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.432e-05/0.99, allocations: 1.188 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.9902, allocations: 1.359 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.727e-05/0.9903, allocations: 11.67 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 5.525e-05/0.9903, allocations: 4.234 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.9905, allocations: 65.78 kB / 1.09 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.9906, allocations: 20.55 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.07e-05/0.9907, allocations: 24.77 kB / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.979e-05/0.9908, allocations: 35.8 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.9908, allocations: 4.156 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.63e-05/0.9908, allocations: 3.75 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.915e-05/0.9909, allocations: 27.06 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.348e-05/0.991, allocations: 24.22 kB / 1.09 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.9911, allocations: 73.23 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.9911, allocations: 3.938 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.445e-06/0.9911, allocations: 0.8125 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.948e-06/0.9911, allocations: 0 / 1.09 GB, free: 4.348 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.0005934/0.9917, allocations: 391.1 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.9918, allocations: 9.562 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.9918, allocations: 7.828 kB / 1.091 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.992, allocations: 187.9 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.992, allocations: 2.594 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.074e-05/0.9921, allocations: 2.859 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003824/0.9924, allocations: 137.9 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.9925, allocations: 192 / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.9925, allocations: 5.062 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.9925, allocations: 5.156 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004231/0.9929, allocations: 127.5 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006724/0.9936, allocations: 431.7 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.9938, allocations: 90.38 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.9941, allocations: 61.91 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.9941, allocations: 4.5 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.9941, allocations: 41.39 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.9941, allocations: 0 / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.000709/0.9948, allocations: 190.9 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.9949, allocations: 82.53 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.298e-05/0.995, allocations: 119.2 kB / 1.092 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.995, allocations: 30.39 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.485e-05/0.995, allocations: 98.06 kB / 1.092 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.9951, allocations: 6.453 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.9951, allocations: 12.66 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.747e-05/0.9952, allocations: 322.7 kB / 1.093 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.9954, allocations: 58.11 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.9956, allocations: 66.75 kB / 1.093 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.996, allocations: 106.3 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.996, allocations: 0.7188 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004155/0.9964, allocations: 132.7 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.9964, allocations: 7.125 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.9964, allocations: 4.062 kB / 1.093 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.9965, allocations: 0.75 kB / 1.093 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.9966, allocations: 22.45 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.9966, allocations: 1.438 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.293e-05/0.9967, allocations: 15.5 kB / 1.093 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.9967, allocations: 4.875 kB / 1.093 GB, free: 2.312 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 7.244e-05/0.9968, allocations: 122.1 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.471e-05/0.9969, allocations: 11.2 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.9969, allocations: 9.906 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.9969, allocations: 0.8125 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.9969, allocations: 1.469 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.115e-05/0.9969, allocations: 79.27 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.997, allocations: 5.547 kB / 1.093 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001507/0.9971, allocations: 23.72 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.263e-05/0.9972, allocations: 10 kB / 1.093 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004921/0.9977, allocations: 302.3 kB / 1.094 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004309/0.9981, allocations: 391 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002232/0.9983, allocations: 63.19 kB / 1.094 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.017e-05/0.9984, allocations: 98.97 kB / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of Backend: time 6.21e-07/0.9984, allocations: 0 / 1.094 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006201/0.999, allocations: 142.2 kB / 1.094 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004975/0.9995, allocations: 0.599 MB / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of Templates: time 0.003749/1.003, allocations: 1.004 MB / 1.096 GB, free: 0.7188 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/jenkins1/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