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.001669/0.001669, 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.00195/0.00195, allocations: 192.6 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.521/1.521, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.913/2.913, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 67.89 kB / 0.8692 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7127/0.7147, allocations: 151.6 MB / 1.017 GB, free: 2.531 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002243/0.717, allocations: 0.6559 MB / 1.018 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.7181, allocations: 0.7884 MB / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.002e-05/0.7182, allocations: 4 kB / 1.019 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.7183, allocations: 4 kB / 1.019 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.7185, allocations: 11.91 kB / 1.019 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 6.81e-05/0.7185, allocations: 4 kB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001329/0.7187, allocations: 59.84 kB / 1.019 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.7189, allocations: 23.98 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.491e-05/0.7189, allocations: 23.91 kB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.807e-05/0.7191, allocations: 27.86 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.7191, allocations: 4 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.618e-05/0.7191, allocations: 4 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.062e-05/0.7192, allocations: 23.97 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 6.957e-05/0.7192, allocations: 35.84 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.7194, allocations: 63.78 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.7194, allocations: 0 / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7194, allocations: 0 / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.7194, allocations: 0 / 1.019 GB, free: 0.7969 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.0007361/0.7201, allocations: 393.2 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.7202, allocations: 8.031 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.7202, allocations: 12.78 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.7205, allocations: 192.2 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.868e-06/0.7205, allocations: 384 / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.7206, allocations: 4.375 kB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004279/0.721, allocations: 135.8 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.721, allocations: 4.125 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.721, allocations: 7.938 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.7211, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004172/0.7215, allocations: 127.8 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007655/0.7223, allocations: 432.9 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.7225, allocations: 101.1 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.7227, allocations: 61.7 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.7228, allocations: 0 / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.7228, allocations: 38.56 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.7228, allocations: 4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0007263/0.7235, allocations: 185.4 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.7236, allocations: 85.11 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.7237, allocations: 118.1 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.7238, allocations: 25.7 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.7238, allocations: 104 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.323e-05/0.7239, allocations: 3.906 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.7239, allocations: 13.72 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.7241, allocations: 322.8 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.7243, allocations: 47.94 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.7245, allocations: 69.64 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000345/0.7248, allocations: 109.5 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.7248, allocations: 4.062 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003923/0.7252, allocations: 137.4 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.7253, allocations: 7.984 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.7253, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.7253, allocations: 0 / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.7254, allocations: 16.42 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.7255, allocations: 7.938 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.952e-05/0.7256, allocations: 27.91 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.7256, allocations: 0 / 1.022 GB, free: 13.79 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.0001181/0.7257, allocations: 125.8 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.7257, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.616e-05/0.7258, allocations: 3.531 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.7258, allocations: 0 / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.7258, allocations: 7.984 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.7258, allocations: 11.94 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002568/0.7261, allocations: 177.6 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.7261, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.7262, allocations: 19.98 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7262, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-06/0.7262, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.7262, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.7262, allocations: 7.922 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005016/0.7267, allocations: 310.5 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.7268, allocations: 81.11 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.7268, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.727, allocations: 15.97 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.7271, allocations: 15.95 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.7271, allocations: 4 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.923e-05/0.7271, allocations: 95.27 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7271, allocations: 0 / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000251/0.7274, allocations: 11.91 kB / 1.023 GB, free: 12.82 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.0001417/0.7275, allocations: 103.2 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004448/0.728, allocations: 111.9 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.728, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.7282, allocations: 67.91 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.7286, allocations: 5.375 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004811/0.7291, allocations: 174.6 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.7295, allocations: 0.6963 MB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.026e-05/0.7296, allocations: 16.25 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.7296, allocations: 15.44 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of SimCode: time 2.415e-06/0.7296, allocations: 0 / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.004083/0.7337, allocations: 0.7864 MB / 1.024 GB, free: 10.79 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