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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001004/0.001005, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.00104/0.00104, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 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: 223.2 MB / 239.9 MB, free: 5.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.764/2.764, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003423, allocations: 8 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8796/0.88, allocations: 153.6 MB / 1.021 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.0007839/0.8808, allocations: 381 kB / 1.021 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008581/0.8817, allocations: 0.7924 MB / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.633e-05/0.8817, allocations: 0 / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.27e-05/0.8818, allocations: 0 / 1.022 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.993e-05/0.8819, allocations: 11.92 kB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 4.868e-05/0.882, allocations: 4 kB / 1.022 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.648e-05/0.882, allocations: 31.95 kB / 1.022 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.8822, allocations: 15.98 kB / 1.022 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.936e-05/0.8822, allocations: 15.92 kB / 1.022 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.074e-05/0.8823, allocations: 19.92 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.8823, allocations: 0 / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.007e-05/0.8823, allocations: 4 kB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.661e-05/0.8824, allocations: 19.97 kB / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.8824, allocations: 37.64 kB / 1.022 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.365e-05/0.8825, allocations: 43.91 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.8825, allocations: 4 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8825, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.848e-06/0.8825, allocations: 0 / 1.022 GB, free: 15.73 MB / 0.7794 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.000556/0.8831, allocations: 393 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.8831, allocations: 11.98 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.8831, allocations: 11.91 kB / 1.023 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.8833, allocations: 187 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.8833, allocations: 3.938 kB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.8833, allocations: 11.98 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003296/0.8837, allocations: 143.3 kB / 1.023 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.8837, allocations: 3.984 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.8837, allocations: 7.938 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.8837, allocations: 4 kB / 1.023 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003875/0.8841, allocations: 151.8 kB / 1.023 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006247/0.8847, allocations: 436.9 kB / 1.023 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.885, allocations: 101.1 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.885, allocations: 0 / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.885, allocations: 30.56 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.885, allocations: 4.062 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0006774/0.8857, allocations: 229.5 kB / 1.024 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.8858, allocations: 81.05 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.841e-05/0.8859, allocations: 122 kB / 1.024 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.8859, allocations: 25.7 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/0.886, allocations: 100 kB / 1.024 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.886, allocations: 3.984 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.886, allocations: 0 / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.8861, allocations: 318.8 kB / 1.024 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.8863, allocations: 63.92 kB / 1.024 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.8865, allocations: 77.66 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.8867, allocations: 63.98 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.8867, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004001/0.8871, allocations: 161.4 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.8871, allocations: 9.812 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.8871, allocations: 0 / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.8871, allocations: 0 / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.8873, allocations: 32.03 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.8873, allocations: 4 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.047e-05/0.8874, allocations: 15.98 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.8874, allocations: 0 / 1.025 GB, free: 12.73 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.563e-05/0.8875, allocations: 125.8 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.8876, allocations: 4 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.622e-05/0.8876, allocations: 15.52 kB / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.8876, allocations: 0 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.8876, allocations: 384 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.8876, allocations: 0 / 1.025 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.8878, allocations: 189.5 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.8878, allocations: 0 / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.888, allocations: 31.84 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.888, allocations: 4 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.888, allocations: 4 kB / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.888, allocations: 0 / 1.025 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.888, allocations: 3.984 kB / 1.025 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004467/0.8884, allocations: 336.4 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.623e-05/0.8885, allocations: 77.11 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.8885, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.8887, allocations: 24 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.195e-05/0.8887, allocations: 11.98 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.8887, allocations: 0 / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.399e-05/0.8888, allocations: 99.2 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8888, allocations: 0 / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002596/0.8891, allocations: 11.91 kB / 1.026 GB, free: 11.71 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001157/0.8892, allocations: 99.25 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004274/0.8896, allocations: 135.8 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.8896, allocations: 0 / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001992/0.8898, allocations: 76.05 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.8901, allocations: 12.02 kB / 1.026 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003451/0.8904, allocations: 192.3 kB / 1.026 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.8907, allocations: 0.7083 MB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.903e-05/0.8908, allocations: 11.98 kB / 1.027 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.784e-05/0.8908, allocations: 11.44 kB / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.8908, allocations: 0 / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of Templates: time 0.002733/0.8935, allocations: 0.6108 MB / 1.028 GB, free: 9.801 MB / 0.7794 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","../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