Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.787/1.787, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009602/0.0009602, allocations: 188.6 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.128/1.128, allocations: 221.3 MB / 0.7819 GB, free: 1.441 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007954/0.0007954, allocations: 103.9 kB / 0.9213 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.052e-06/6.082e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1969, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5362/0.7331, allocations: 148 MB / 1.35 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/0.7334, allocations: 68.72 kB / 1.35 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002213/0.7356, allocations: 0.6193 MB / 1.35 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.7356, allocations: 1.281 kB / 1.35 GB, free: 15.77 MB / 0.8073 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.000358/0.736, allocations: 380.3 kB / 1.351 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.736, allocations: 9.906 kB / 1.351 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.882e-05/0.736, allocations: 15.34 kB / 1.351 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.7362, allocations: 184 kB / 1.351 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.903e-06/0.7362, allocations: 5.25 kB / 1.351 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.7362, allocations: 3.219 kB / 1.351 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001147/0.7363, allocations: 67.94 kB / 1.351 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001206/0.7365, allocations: 99.34 kB / 1.351 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-06/0.7365, allocations: 0 / 1.351 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.7365, allocations: 1.078 kB / 1.351 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.7365, allocations: 1.25 kB / 1.351 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002784/0.7368, allocations: 372 kB / 1.352 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.608e-05/0.7369, allocations: 64.47 kB / 1.352 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.522e-05/0.7369, allocations: 38.44 kB / 1.352 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.7369, allocations: 0.875 kB / 1.352 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.484e-05/0.7369, allocations: 36.44 kB / 1.352 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.342e-06/0.737, allocations: 0 / 1.352 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001767/0.7371, allocations: 78.7 kB / 1.352 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.783e-05/0.7372, allocations: 78.47 kB / 1.352 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.466e-05/0.7372, allocations: 117.2 kB / 1.352 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.494e-06/0.7372, allocations: 25.7 kB / 1.352 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.027e-05/0.7373, allocations: 93.92 kB / 1.352 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.425e-05/0.7373, allocations: 8.875 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-06/0.7373, allocations: 1.156 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.818e-05/0.7373, allocations: 321.9 kB / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.44e-05/0.7374, allocations: 24.92 kB / 1.352 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.468e-05/0.7374, allocations: 39.11 kB / 1.352 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.792e-05/0.7374, allocations: 19.52 kB / 1.352 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.7374, allocations: 1.375 kB / 1.352 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.647e-05/0.7375, allocations: 79.38 kB / 1.353 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.7376, allocations: 5.219 kB / 1.353 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.7376, allocations: 3.125 kB / 1.353 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.7376, allocations: 1 kB / 1.353 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.7377, allocations: 34.61 kB / 1.353 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.7378, allocations: 0.9062 kB / 1.353 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.7379, allocations: 29.83 kB / 1.353 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.7379, allocations: 1.375 kB / 1.353 GB, free: 13.97 MB / 0.8073 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.859e-05/0.7379, allocations: 102.6 kB / 1.353 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.214e-05/0.738, allocations: 10.64 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.474e-05/0.738, allocations: 7.719 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.738, allocations: 0 / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.738, allocations: 1.375 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.738, allocations: 0 / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.7382, allocations: 165.6 kB / 1.353 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.7382, allocations: 0 / 1.353 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001161/0.7383, allocations: 24.02 kB / 1.353 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7383, allocations: 1.062 kB / 1.353 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.7383, allocations: 1.594 kB / 1.353 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.7383, allocations: 6.5 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7383, allocations: 1.688 kB / 1.353 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001304/0.7385, allocations: 266.2 kB / 1.353 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.7385, allocations: 82.62 kB / 1.353 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.7385, allocations: 2.969 kB / 1.353 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.7387, allocations: 22.97 kB / 1.353 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.7387, allocations: 6.125 kB / 1.353 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.7387, allocations: 0.9375 kB / 1.353 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.078e-05/0.7388, allocations: 96.53 kB / 1.353 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002318/0.739, allocations: 12.34 kB / 1.353 GB, free: 13.28 MB / 0.8073 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.992e-05/0.7391, allocations: 104 kB / 1.353 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001038/0.7392, allocations: 60.34 kB / 1.354 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7392, allocations: 0 / 1.354 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.082e-05/0.7393, allocations: 38.03 kB / 1.354 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.7395, allocations: 4.25 kB / 1.354 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002473/0.7397, allocations: 112.5 kB / 1.354 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.74, allocations: 0.7085 MB / 1.354 GB, free: 28.4 MB / 0.823 GB Notification: Performance of SimCode: time 1.022e-06/0.74, allocations: 0 / 1.354 GB, free: 28.4 MB / 0.823 GB Notification: Performance of Templates: time 0.002298/0.7423, allocations: 0.6989 MB / 1.355 GB, free: 28.34 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_RealVectorReplicator.csv","../files/Buildings_9_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_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[1 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 1] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 1] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[2 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[2 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable reaRep.y[3 in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable reaRep.y[3 from file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat failed! Error: Could not read variable 2] in file Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.RealVectorReplicator_res.mat. Warning: Get data of variable 2] from file Buildings_9_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[1].y,ram[2].duration,ram[2].height,ram[2].offset,ram[2].startTime,reaRep.nin,reaRep.nout,reaRep.u[1],time