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.Less.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.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Less,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|les.u1|les.u2|les.y|lesHys.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less") [: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.328/1.328, allocations: 249.4 MB / 256.7 MB, free: 7.043 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.001032/0.001033, allocations: 181.2 kB / 316 MB, free: 3.594 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.404/1.404, allocations: 205.2 MB / 0.5667 GB, free: 15.64 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.001034/0.001034, allocations: 83.38 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.088e-05/1.09e-05, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2287, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.686/0.9147, allocations: 131.6 MB / 1.013 GB, free: 7.059 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.915, allocations: 64.97 kB / 1.013 GB, free: 7.027 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002499/0.9175, allocations: 0.573 MB / 1.014 GB, free: 6.527 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.9175, allocations: 4 kB / 1.014 GB, free: 6.523 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000568/0.9181, allocations: 373.8 kB / 1.014 GB, free: 6.117 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.085e-05/0.9182, allocations: 8.031 kB / 1.014 GB, free: 6.109 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.9183, allocations: 8.656 kB / 1.014 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.9185, allocations: 171.7 kB / 1.014 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.9185, allocations: 0 / 1.014 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.9185, allocations: 0 / 1.014 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001011/0.9186, allocations: 22.41 kB / 1.014 GB, free: 5.879 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.94e-05/0.9187, allocations: 41.56 kB / 1.014 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.9187, allocations: 0 / 1.014 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.733e-05/0.9187, allocations: 0 / 1.014 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.9188, allocations: 7.875 kB / 1.014 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005383/0.9193, allocations: 289.5 kB / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.666e-05/0.9194, allocations: 26.52 kB / 1.015 GB, free: 5.492 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/0.9194, allocations: 13.67 kB / 1.015 GB, free: 5.48 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.9194, allocations: 4 kB / 1.015 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.9195, allocations: 34.56 kB / 1.015 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.373e-06/0.9195, allocations: 0 / 1.015 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001806/0.9197, allocations: 57.31 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.354e-05/0.9197, allocations: 51.41 kB / 1.015 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.069e-05/0.9198, allocations: 103.5 kB / 1.015 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.9198, allocations: 25.7 kB / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.9199, allocations: 84.08 kB / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.9199, allocations: 15.77 kB / 1.015 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.9199, allocations: 0 / 1.015 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.9201, allocations: 314.8 kB / 1.015 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.46e-05/0.9201, allocations: 7.875 kB / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.006e-05/0.9201, allocations: 7.688 kB / 1.015 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.906e-05/0.9201, allocations: 4.141 kB / 1.015 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.9202, allocations: 0 / 1.015 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.161e-05/0.9202, allocations: 60.39 kB / 1.015 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.9203, allocations: 4 kB / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.9203, allocations: 0 / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.9203, allocations: 0 / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.9205, allocations: 27.92 kB / 1.015 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.9205, allocations: 0 / 1.015 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.9206, allocations: 31.97 kB / 1.015 GB, free: 4.637 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.9206, allocations: 0 / 1.015 GB, free: 4.637 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 (less1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.283e-05/0.9207, allocations: 104.9 kB / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.9208, allocations: 4 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.9208, allocations: 7.375 kB / 1.016 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.9208, allocations: 3.906 kB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.9208, allocations: 8 kB / 1.016 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.9208, allocations: 0 / 1.016 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.921, allocations: 144.2 kB / 1.016 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.921, allocations: 3.938 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.9211, allocations: 19.98 kB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.9211, allocations: 4 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.9211, allocations: 0 / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.9211, allocations: 4 kB / 1.016 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.9211, allocations: 0 / 1.016 GB, free: 4.301 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001368/0.9213, allocations: 146.4 kB / 1.016 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/0.9214, allocations: 85.02 kB / 1.016 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.9214, allocations: 3.938 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.9215, allocations: 27.97 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.9216, allocations: 3.5 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.9216, allocations: 0 / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.171e-05/0.9217, allocations: 90.64 kB / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002038/0.9219, allocations: 4 kB / 1.016 GB, free: 3.926 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 (less1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001691/0.922, allocations: 103.2 kB / 1.016 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001088/0.9222, allocations: 18.38 kB / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.9222, allocations: 0 / 1.016 GB, free: 3.805 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.889e-05/0.9222, allocations: 15.62 kB / 1.016 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002225/0.9224, allocations: 16.23 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000267/0.9227, allocations: 79.19 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/0.9231, allocations: 0.6915 MB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of SimCode: time 2.1e-07/0.9231, allocations: 0 / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of Templates: time 0.002685/0.9258, allocations: 0.6467 MB / 1.018 GB, free: 2.344 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Less.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[509]=10.000000 File[5004]=1.000000 Error: Could not read variable les.u1 in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat. Warning: Get data of variable les.u1 from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat failed! Error: Could not read variable les.u2 in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat. Warning: Get data of variable les.u2 from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat failed! Error: Could not read variable les.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat. Warning: Get data of variable les.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat failed! Error: Could not read variable lesHys.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat. Warning: Get data of variable lesHys.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Less_res.mat failed! " Variables in the reference:time,les.u1,les.u2,les.y,lesHys.y Variables in the result:ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,time