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.001223/0.001223, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 193 kB / 16.53 MB, free: 6.664 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.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.718/2.718, allocations: 437 MB / 0.7103 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 67.89 kB / 0.8692 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7464/0.7479, allocations: 151.6 MB / 1.017 GB, free: 2.562 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.001899/0.7498, allocations: 0.6577 MB / 1.018 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008431/0.7507, allocations: 0.7924 MB / 1.019 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.3e-05/0.7507, allocations: 3.938 kB / 1.019 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.252e-05/0.7508, allocations: 3.984 kB / 1.019 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.637e-05/0.7509, allocations: 3.938 kB / 1.019 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 5.036e-05/0.751, allocations: 11.98 kB / 1.019 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.7511, allocations: 55.83 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.7513, allocations: 24 kB / 1.019 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.44e-05/0.7513, allocations: 27.91 kB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.707e-05/0.7514, allocations: 31.84 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.7514, allocations: 4 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.154e-05/0.7515, allocations: 4 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.764e-05/0.7515, allocations: 19.98 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.56e-05/0.7516, allocations: 23.86 kB / 1.019 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.7517, allocations: 67.77 kB / 1.019 GB, free: 0.8242 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.7517, allocations: 4 kB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.143e-06/0.7517, allocations: 0 / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.7517, allocations: 4 kB / 1.019 GB, free: 0.8164 MB / 0.7637 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.0005506/0.7522, allocations: 389.2 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.7523, allocations: 8.031 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.365e-05/0.7523, allocations: 12.78 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.7525, allocations: 192.2 kB / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.7525, allocations: 384 / 1.02 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.7525, allocations: 12.38 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.7529, allocations: 131.9 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.7529, allocations: 192 / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.7529, allocations: 3.938 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.7529, allocations: 7.938 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003649/0.7533, allocations: 127.8 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000602/0.7539, allocations: 436.9 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.7541, allocations: 85.14 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.7543, allocations: 65.66 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.7543, allocations: 4 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.7544, allocations: 34.56 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.7544, allocations: 0 / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0006169/0.755, allocations: 189.7 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.755, allocations: 81.11 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.7552, allocations: 121.8 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.7552, allocations: 25.7 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.378e-05/0.7552, allocations: 95.98 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.7553, allocations: 8.266 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.7553, allocations: 17.72 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.7554, allocations: 314.8 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001828/0.7556, allocations: 59.92 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.7558, allocations: 69.58 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.7561, allocations: 109.6 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7561, allocations: 0 / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000402/0.7565, allocations: 141.4 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.7565, allocations: 4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.7565, allocations: 0 / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.7566, allocations: 8.062 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.7567, allocations: 15.97 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.7567, allocations: 7.938 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.942e-05/0.7568, allocations: 19.91 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.7568, allocations: 0 / 1.022 GB, free: 13.81 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.757, allocations: 117.8 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.757, allocations: 7.984 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.757, allocations: 15.52 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.7571, allocations: 4 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.7571, allocations: 0 / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.7571, allocations: 3.938 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.7573, allocations: 181.6 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.7573, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.7574, allocations: 23.97 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.7575, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.7575, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.7575, allocations: 4 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.7575, allocations: 4 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004751/0.758, allocations: 310.5 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/0.758, allocations: 77.11 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.7581, allocations: 4.031 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.7582, allocations: 23.97 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.264e-05/0.7583, allocations: 7.922 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-06/0.7583, allocations: 4 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.886e-05/0.7583, allocations: 91.27 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.7584, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002678/0.7586, allocations: 15.91 kB / 1.023 GB, free: 12.84 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 (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.0001585/0.7588, allocations: 99.53 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004404/0.7592, allocations: 115.8 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.7593, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.7595, allocations: 67.86 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.7598, allocations: 10.28 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004472/0.7603, allocations: 174.3 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.7606, allocations: 0.6963 MB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.157e-05/0.7606, allocations: 19.98 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.965e-05/0.7607, allocations: 7.438 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of SimCode: time 1.864e-06/0.7607, allocations: 0 / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of Templates: time 0.00301/0.7637, allocations: 0.7966 MB / 1.024 GB, free: 10.8 MB / 0.7794 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/jenkins/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