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.006878/0.006878, allocations: 99.42 kB / 15.73 MB, free: 6.039 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.001384/0.001384, allocations: 202 kB / 16.68 MB, free: 5.965 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.609/1.609, allocations: 222.9 MB / 240.4 MB, free: 4.359 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.859/2.859, allocations: 437 MB / 0.7105 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 67.89 kB / 1.019 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.4102, allocations: 151.6 MB / 1.167 GB, free: 6.828 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002278/0.4125, allocations: 0.6465 MB / 1.167 GB, free: 6.176 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.4138, allocations: 0.8005 MB / 1.168 GB, free: 5.363 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.408e-05/0.4139, allocations: 3.938 kB / 1.168 GB, free: 5.359 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.414, allocations: 7.938 kB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.4142, allocations: 7.938 kB / 1.168 GB, free: 5.344 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 7.334e-05/0.4143, allocations: 11.97 kB / 1.168 GB, free: 5.332 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.4144, allocations: 55.84 kB / 1.168 GB, free: 5.277 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.4146, allocations: 19.98 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 9.575e-05/0.4147, allocations: 35.84 kB / 1.168 GB, free: 5.223 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000109/0.4148, allocations: 27.91 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.4149, allocations: 4 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.609e-05/0.4149, allocations: 4 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.415, allocations: 19.92 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 6.699e-05/0.415, allocations: 27.86 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.4152, allocations: 71.7 kB / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4152, allocations: 0 / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.232e-06/0.4152, allocations: 0 / 1.168 GB, free: 5.07 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.078e-05/0.4152, allocations: 4 kB / 1.168 GB, free: 5.066 MB / 0.92 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.000755/0.416, allocations: 391.2 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.4161, allocations: 8.031 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/0.4161, allocations: 4.938 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.4163, allocations: 192.2 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.4164, allocations: 384 / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.4164, allocations: 4.375 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003708/0.4168, allocations: 135.9 kB / 1.169 GB, free: 4.246 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.4168, allocations: 4.125 kB / 1.169 GB, free: 4.242 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.4168, allocations: 11.86 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/0.4168, allocations: 4 kB / 1.169 GB, free: 4.227 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.4172, allocations: 127.8 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.4179, allocations: 424.9 kB / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002293/0.4182, allocations: 89.14 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.4184, allocations: 69.64 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.4184, allocations: 0 / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.4184, allocations: 42.5 kB / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.4184, allocations: 0 / 1.17 GB, free: 3.402 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0006614/0.4191, allocations: 197.4 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.4192, allocations: 77.11 kB / 1.17 GB, free: 3.109 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.4193, allocations: 113.8 kB / 1.17 GB, free: 2.988 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.4193, allocations: 29.7 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.969e-05/0.4194, allocations: 104 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.4194, allocations: 8.203 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.4195, allocations: 13.72 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.4196, allocations: 322.8 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.4198, allocations: 47.94 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.42, allocations: 73.64 kB / 1.171 GB, free: 2.371 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.4203, allocations: 105.5 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.4203, allocations: 0 / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00037/0.4207, allocations: 141.5 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.4207, allocations: 4 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.4207, allocations: 0 / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.4207, allocations: 0 / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.4209, allocations: 19.98 kB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.4209, allocations: 3.984 kB / 1.171 GB, free: 2.09 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.709e-05/0.421, allocations: 23.88 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-06/0.421, allocations: 4.062 kB / 1.171 GB, free: 2.062 MB / 0.92 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.0001119/0.4211, allocations: 123.8 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.341e-05/0.4212, allocations: 4 kB / 1.171 GB, free: 1.93 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.4212, allocations: 7.516 kB / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.4212, allocations: 0 / 1.171 GB, free: 1.918 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4212, allocations: 8 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.4212, allocations: 7.875 kB / 1.171 GB, free: 1.902 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.4215, allocations: 181.6 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4215, allocations: 0 / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.192e-05/0.4216, allocations: 19.98 kB / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4216, allocations: 0 / 1.171 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.4216, allocations: 4.359 kB / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.4216, allocations: 0 / 1.171 GB, free: 1.652 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.4216, allocations: 7.938 kB / 1.171 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004702/0.4221, allocations: 310.6 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-05/0.4222, allocations: 84.98 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.4222, allocations: 0 / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.4223, allocations: 15.97 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.227e-05/0.4224, allocations: 15.92 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.4224, allocations: 4 kB / 1.172 GB, free: 1.188 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.628e-05/0.4225, allocations: 95.3 kB / 1.172 GB, free: 1.094 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4225, allocations: 0 / 1.172 GB, free: 1.094 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002534/0.4227, allocations: 11.95 kB / 1.172 GB, free: 1.082 MB / 0.92 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.0001351/0.4229, allocations: 99.25 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0003913/0.4233, allocations: 115.8 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4233, allocations: 4.062 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.4235, allocations: 63.92 kB / 1.172 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003357/0.4238, allocations: 4 kB / 1.172 GB, free: 0.793 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004095/0.4242, allocations: 166.1 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.4246, allocations: 0.7081 MB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.394e-05/0.4246, allocations: 11.98 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.413e-05/0.4247, allocations: 7.438 kB / 1.173 GB, free: 15.85 MB / 0.9356 GB Notification: Performance of SimCode: time 4.2e-07/0.4247, allocations: 4 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of Templates: time 0.003297/0.428, allocations: 0.798 MB / 1.174 GB, free: 15.05 MB / 0.9356 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