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.007771/0.007771, allocations: 101.2 kB / 15.73 MB, free: 6.422 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.001505/0.001505, allocations: 185.2 kB / 16.67 MB, free: 6.352 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.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.627/2.627, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.81 kB / 0.9508 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3463, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001879/0.3482, allocations: 0.65 MB / 1.089 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000934/0.3492, allocations: 0.8004 MB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.251e-05/0.3492, allocations: 0 / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.3494, allocations: 3.938 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.3495, allocations: 7.938 kB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 6.585e-05/0.3495, allocations: 7.984 kB / 1.089 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.3497, allocations: 59.89 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.3498, allocations: 15.98 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.518e-05/0.3499, allocations: 31.86 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.496e-05/0.35, allocations: 31.84 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.35, allocations: 4 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.091e-05/0.35, allocations: 4 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.143e-05/0.3501, allocations: 23.97 kB / 1.09 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.527e-05/0.3501, allocations: 31.86 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.3503, allocations: 75.64 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3503, allocations: 4 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3503, allocations: 0 / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.3503, allocations: 0 / 1.09 GB, free: 15.75 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.0007473/0.351, allocations: 387.3 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.3511, allocations: 8.031 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.3511, allocations: 4.938 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.3514, allocations: 184.2 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3514, allocations: 8.375 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.3514, allocations: 4.375 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.3518, allocations: 127.9 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.3519, allocations: 4.125 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.3519, allocations: 7.938 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.3519, allocations: 7.922 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004156/0.3523, allocations: 131.8 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.3531, allocations: 432.8 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002651/0.3534, allocations: 93.08 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.3536, allocations: 65.7 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.3536, allocations: 0 / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.3537, allocations: 34.56 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.3537, allocations: 0 / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0007433/0.3544, allocations: 193.3 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.447e-05/0.3545, allocations: 81.36 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3547, allocations: 117.8 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.3547, allocations: 25.7 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.3548, allocations: 96.03 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.3548, allocations: 15.84 kB / 1.092 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.3549, allocations: 9.719 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001858/0.355, allocations: 322.8 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.3552, allocations: 55.94 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.3554, allocations: 61.64 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003264/0.3558, allocations: 109.6 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.3558, allocations: 0 / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003967/0.3562, allocations: 137.5 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.3562, allocations: 8 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.3562, allocations: 3.984 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.3562, allocations: 4.062 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.3564, allocations: 15.98 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3564, allocations: 0 / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.74e-05/0.3565, allocations: 23.84 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.3565, allocations: 4 kB / 1.092 GB, free: 12.75 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 0.0001273/0.3567, allocations: 121.8 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.3567, allocations: 3.906 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.149e-05/0.3567, allocations: 15.53 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3568, allocations: 0 / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3568, allocations: 384 / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.3568, allocations: 7.922 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002228/0.357, allocations: 173.7 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.357, allocations: 3.984 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.519e-05/0.3571, allocations: 19.92 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3571, allocations: 4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.3571, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3571, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3572, allocations: 11.92 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000435/0.3576, allocations: 306.6 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.3576, allocations: 85.02 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.3577, allocations: 32 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.3578, allocations: 23.97 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.3579, allocations: 7.938 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.3579, allocations: 3.984 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.301e-05/0.3579, allocations: 95.27 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.363e-06/0.3579, allocations: 0 / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002514/0.3582, allocations: 15.94 kB / 1.093 GB, free: 11.77 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.0001206/0.3583, allocations: 107.2 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004148/0.3587, allocations: 107.9 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3588, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.359, allocations: 59.91 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.3593, allocations: 20.19 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004379/0.3598, allocations: 163.9 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.3602, allocations: 0.6963 MB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.568e-05/0.3602, allocations: 15.97 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.106e-05/0.3603, allocations: 11.44 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of SimCode: time 2.61e-07/0.3603, allocations: 4 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of Templates: time 0.003112/0.3634, allocations: 0.7933 MB / 1.095 GB, free: 9.754 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