Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u|les.t|les.y|lesHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold") [: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 7.0.3-maint.7.0.x/package.mo): time 1.372/1.372, allocations: 249.4 MB / 256.7 MB, free: 7.012 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001281/0.001281, allocations: 173 kB / 316 MB, free: 3.551 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.1 MB / 0.5667 GB, free: 15.67 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008777/0.0008776, allocations: 82.22 kB / 0.671 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.207e-06/9.307e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.165, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.456/0.621, allocations: 131.6 MB / 1.013 GB, free: 6.996 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001797/0.6212, allocations: 72.61 kB / 1.013 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001446/0.6227, allocations: 337.5 kB / 1.014 GB, free: 6.668 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.6227, allocations: 0 / 1.014 GB, free: 6.668 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003437/0.6231, allocations: 350.5 kB / 1.014 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.6231, allocations: 11.97 kB / 1.014 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.6231, allocations: 0 / 1.014 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.6233, allocations: 167 kB / 1.014 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.976e-06/0.6233, allocations: 0 / 1.014 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.6233, allocations: 0 / 1.014 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.51e-05/0.6234, allocations: 15.11 kB / 1.014 GB, free: 6.059 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.596e-05/0.6234, allocations: 37.08 kB / 1.014 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.661e-06/0.6234, allocations: 0 / 1.014 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.6234, allocations: 4 kB / 1.014 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.6235, allocations: 2.875 kB / 1.014 GB, free: 6.016 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003349/0.6238, allocations: 252.2 kB / 1.014 GB, free: 5.738 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.856e-05/0.6239, allocations: 22.39 kB / 1.014 GB, free: 5.711 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.361e-05/0.6239, allocations: 12.05 kB / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 6.081e-06/0.6239, allocations: 0 / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.6239, allocations: 34.5 kB / 1.014 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.624, allocations: 0 / 1.014 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 9.918e-05/0.6241, allocations: 40.8 kB / 1.014 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.6241, allocations: 55.44 kB / 1.014 GB, free: 5.547 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.969e-05/0.6242, allocations: 102.9 kB / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.6242, allocations: 25.7 kB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.781e-05/0.6242, allocations: 83.52 kB / 1.015 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.499e-05/0.6243, allocations: 3.906 kB / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-06/0.6243, allocations: 0 / 1.015 GB, free: 5.328 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.6244, allocations: 314.8 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.377e-05/0.6244, allocations: 3.688 kB / 1.015 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.261e-05/0.6244, allocations: 8 kB / 1.015 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.421e-05/0.6244, allocations: 4 kB / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.6244, allocations: 0 / 1.015 GB, free: 5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.449e-05/0.6245, allocations: 47.31 kB / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.6245, allocations: 6.344 kB / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.6245, allocations: 0 / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.6246, allocations: 0 / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.678e-05/0.6246, allocations: 16.08 kB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.6247, allocations: 7.906 kB / 1.015 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.241e-05/0.6247, allocations: 8 kB / 1.015 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.6247, allocations: 0 / 1.015 GB, free: 4.918 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (lesThr.y) * 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 6.338e-05/0.6248, allocations: 106.9 kB / 1.015 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.539e-05/0.6248, allocations: 8 kB / 1.015 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.6249, allocations: 11.17 kB / 1.015 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.6249, allocations: 0 / 1.015 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.6249, allocations: 0 / 1.015 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.6249, allocations: 0 / 1.015 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000124/0.625, allocations: 145.1 kB / 1.015 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.625, allocations: 0 / 1.015 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.171e-05/0.6251, allocations: 15.73 kB / 1.015 GB, free: 4.609 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.6251, allocations: 8 kB / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.6251, allocations: 0 / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.6251, allocations: 0 / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.6251, allocations: 3.906 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001034/0.6252, allocations: 134.7 kB / 1.015 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.6253, allocations: 88.95 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.6253, allocations: 0 / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.6254, allocations: 16.02 kB / 1.016 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.16e-05/0.6255, allocations: 3.984 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.6255, allocations: 4 kB / 1.016 GB, free: 4.324 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.729e-05/0.6255, allocations: 87.08 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001968/0.6257, allocations: 0 / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (lesThr.y) * 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 0.0001206/0.6258, allocations: 103.2 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.846e-05/0.6259, allocations: 10.38 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6259, allocations: 0 / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.6259, allocations: 15.5 kB / 1.016 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000167/0.6261, allocations: 0 / 1.016 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002011/0.6263, allocations: 70.73 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002651/0.6266, allocations: 0.6879 MB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.6266, allocations: 4.125 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of Templates: time 0.001953/0.6286, allocations: 442 kB / 1.017 GB, free: 2.887 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[510]=10.000000 File[5004]=1.000000 Error: Could not read variable les.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable les.t in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.t from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable les.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable les.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! Error: Could not read variable lesHys.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat. Warning: Get data of variable lesHys.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.mat failed! " Variables in the reference:time,les.u,les.t,les.y,lesHys.y Variables in the result:lesThr.threshold,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time