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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001429/0.001429, allocations: 104 kB / 16.35 MB, free: 5.875 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.001562/0.001562, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.511/2.511, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002477/0.002477, allocations: 74.31 kB / 0.8707 GB, free: 1.43 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3435, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator): time 0.002118/0.3456, allocations: 0.6579 MB / 1.019 GB, free: 9.195 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009847/0.3466, allocations: 0.7962 MB / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.986e-05/0.3467, allocations: 0 / 1.02 GB, free: 8.387 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.542e-05/0.3469, allocations: 7.938 kB / 1.02 GB, free: 8.379 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.83e-05/0.347, allocations: 11.92 kB / 1.02 GB, free: 8.367 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 5.587e-05/0.347, allocations: 7.984 kB / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.3471, allocations: 59.84 kB / 1.02 GB, free: 8.301 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.3473, allocations: 19.97 kB / 1.02 GB, free: 8.281 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.695e-05/0.3473, allocations: 27.86 kB / 1.02 GB, free: 8.254 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.869e-05/0.3474, allocations: 27.92 kB / 1.02 GB, free: 8.227 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.3474, allocations: 4 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.396e-05/0.3475, allocations: 4 kB / 1.02 GB, free: 8.219 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.109e-05/0.3475, allocations: 27.95 kB / 1.02 GB, free: 8.191 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.3476, allocations: 23.81 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001108/0.3477, allocations: 71.78 kB / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3477, allocations: 0 / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3477, allocations: 0 / 1.02 GB, free: 8.098 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.325e-06/0.3477, allocations: 0 / 1.02 GB, free: 8.098 MB / 0.795 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.0005678/0.3483, allocations: 387.3 kB / 1.021 GB, free: 7.668 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3483, allocations: 8.922 kB / 1.021 GB, free: 7.66 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.846e-05/0.3484, allocations: 16.83 kB / 1.021 GB, free: 7.645 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001761/0.3486, allocations: 188.2 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.3486, allocations: 4.375 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.3486, allocations: 12.36 kB / 1.021 GB, free: 7.406 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/0.3489, allocations: 127.8 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.349, allocations: 8.125 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.349, allocations: 3.938 kB / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.349, allocations: 4 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003449/0.3493, allocations: 123.8 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006902/0.35, allocations: 436.8 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.3502, allocations: 89.08 kB / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.3504, allocations: 69.7 kB / 1.022 GB, free: 6.473 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.3504, allocations: 4 kB / 1.022 GB, free: 6.469 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3505, allocations: 30.56 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.3505, allocations: 0 / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0006357/0.3511, allocations: 193.6 kB / 1.022 GB, free: 6.234 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.3512, allocations: 81.09 kB / 1.022 GB, free: 6.137 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3513, allocations: 121.8 kB / 1.022 GB, free: 6.008 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.604e-05/0.3513, allocations: 25.7 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.832e-05/0.3514, allocations: 99.97 kB / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.3514, allocations: 0 / 1.022 GB, free: 5.875 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.3515, allocations: 13.72 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3516, allocations: 322.8 kB / 1.023 GB, free: 5.531 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.3518, allocations: 55.95 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.3519, allocations: 69.58 kB / 1.023 GB, free: 5.402 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.3522, allocations: 105.7 kB / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3522, allocations: 0 / 1.023 GB, free: 5.293 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003604/0.3526, allocations: 141.4 kB / 1.023 GB, free: 5.148 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.3526, allocations: 8 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.3526, allocations: 4.062 kB / 1.023 GB, free: 5.137 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.3527, allocations: 0 / 1.023 GB, free: 5.137 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3528, allocations: 19.97 kB / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.3528, allocations: 0 / 1.023 GB, free: 5.117 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.664e-05/0.3529, allocations: 23.91 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.3529, allocations: 0 / 1.023 GB, free: 5.094 MB / 0.795 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 9.992e-05/0.353, allocations: 125.8 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.3531, allocations: 4 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.3531, allocations: 11.91 kB / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-06/0.3531, allocations: 0 / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3531, allocations: 0 / 1.023 GB, free: 4.945 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3531, allocations: 3.938 kB / 1.023 GB, free: 4.941 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.3534, allocations: 185.5 kB / 1.023 GB, free: 4.711 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3534, allocations: 0 / 1.023 GB, free: 4.711 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.853e-05/0.3535, allocations: 19.97 kB / 1.023 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.3535, allocations: 0 / 1.023 GB, free: 4.691 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.3535, allocations: 4 kB / 1.023 GB, free: 4.688 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3535, allocations: 7.938 kB / 1.023 GB, free: 4.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3535, allocations: 0 / 1.023 GB, free: 4.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000451/0.354, allocations: 306.6 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.3541, allocations: 88.98 kB / 1.024 GB, free: 4.258 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.3541, allocations: 4 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.3543, allocations: 11.98 kB / 1.024 GB, free: 4.242 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/0.3543, allocations: 19.86 kB / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.3544, allocations: 0 / 1.024 GB, free: 4.223 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.368e-05/0.3544, allocations: 95.27 kB / 1.024 GB, free: 4.129 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3544, allocations: 0 / 1.024 GB, free: 4.129 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002671/0.3547, allocations: 8 kB / 1.024 GB, free: 4.121 MB / 0.795 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.0001261/0.3548, allocations: 107.2 kB / 1.024 GB, free: 4.004 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003752/0.3552, allocations: 111.9 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3552, allocations: 0 / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002283/0.3555, allocations: 68.05 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.3558, allocations: 7.984 kB / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.3562, allocations: 167.1 kB / 1.024 GB, free: 3.629 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.3565, allocations: 0.6924 MB / 1.025 GB, free: 2.91 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.798e-05/0.3565, allocations: 11.98 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.35e-05/0.3566, allocations: 15.5 kB / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.3566, allocations: 0 / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of Templates: time 0.003299/0.3599, allocations: 0.7986 MB / 1.026 GB, free: 2.094 MB / 0.795 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 -s gbode -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/jenkins1/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