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.002088/0.002088, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002308/0.002309, allocations: 199.2 kB / 16.26 MB, free: 6.629 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.562/1.562, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.924/2.924, allocations: 437 MB / 0.7101 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 67.89 kB / 0.8688 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7291/0.7312, allocations: 151.6 MB / 1.017 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002349/0.7336, allocations: 0.7224 MB / 1.018 GB, free: 2.145 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001072/0.7347, allocations: 0.7924 MB / 1.018 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.959e-05/0.7348, allocations: 7.938 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001136/0.7349, allocations: 0 / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.735, allocations: 3.938 kB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 6.53e-05/0.7351, allocations: 11.98 kB / 1.018 GB, free: 1.316 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001176/0.7352, allocations: 51.89 kB / 1.018 GB, free: 1.266 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.7354, allocations: 20 kB / 1.018 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.846e-05/0.7354, allocations: 27.92 kB / 1.018 GB, free: 1.219 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.367e-05/0.7355, allocations: 35.77 kB / 1.018 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.7356, allocations: 4 kB / 1.018 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.7356, allocations: 4 kB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.34e-05/0.7356, allocations: 19.98 kB / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.01e-05/0.7357, allocations: 31.86 kB / 1.019 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.7358, allocations: 63.78 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.7358, allocations: 0 / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.324e-06/0.7358, allocations: 0 / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.7359, allocations: 0 / 1.019 GB, free: 1.062 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.0007165/0.7366, allocations: 393.4 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.7366, allocations: 8.031 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.7367, allocations: 8.844 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.7369, allocations: 196.1 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.7369, allocations: 4.375 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.7369, allocations: 4.375 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.7374, allocations: 139.7 kB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.7374, allocations: 192 / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.7374, allocations: 3.938 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.7374, allocations: 0 / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003705/0.7378, allocations: 131.8 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007562/0.7386, allocations: 432.9 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.7388, allocations: 85.09 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001878/0.739, allocations: 69.7 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.739, allocations: 0 / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.7391, allocations: 38.55 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.7391, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0006593/0.7397, allocations: 193.6 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/0.7398, allocations: 81.05 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.7399, allocations: 121.8 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.74, allocations: 25.7 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.482e-05/0.7401, allocations: 95.98 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.971e-05/0.7401, allocations: 3.906 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.7401, allocations: 21.7 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.7403, allocations: 318.8 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001818/0.7405, allocations: 55.92 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.7407, allocations: 61.66 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003313/0.741, allocations: 109.6 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.741, allocations: 0 / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003852/0.7414, allocations: 141.5 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.7415, allocations: 8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.7415, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.7415, allocations: 384 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.7416, allocations: 19.97 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.7417, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.712e-05/0.7418, allocations: 23.86 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.7418, allocations: 3.938 kB / 1.021 GB, free: 14.06 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.000116/0.7419, allocations: 129.8 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.275e-05/0.7419, allocations: 7.984 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.851e-05/0.742, allocations: 11.53 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.742, allocations: 0 / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.742, allocations: 0 / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.742, allocations: 7.938 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.7423, allocations: 177.6 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.7423, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.904e-05/0.7424, allocations: 19.97 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.7424, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.7424, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.7424, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7424, allocations: 0 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000468/0.7429, allocations: 318.5 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.593e-05/0.743, allocations: 81.11 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.743, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.7431, allocations: 19.97 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.794e-05/0.7432, allocations: 11.92 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.7432, allocations: 0 / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.893e-05/0.7433, allocations: 95.27 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7433, allocations: 0 / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000258/0.7436, allocations: 15.91 kB / 1.022 GB, free: 13.08 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.0001512/0.7437, allocations: 103.8 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004231/0.7441, allocations: 115.8 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.7442, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.7444, allocations: 64.05 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.7447, allocations: 12.17 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004256/0.7451, allocations: 182.5 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.7456, allocations: 0.7043 MB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.223e-05/0.7456, allocations: 15.98 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.298e-05/0.7457, allocations: 7.438 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7457, allocations: 3.938 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of Templates: time 0.003257/0.7489, allocations: 0.6606 MB / 1.024 GB, free: 11.16 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=400 -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