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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.465/1.465, allocations: 249.3 MB / 261.8 MB, free: 6.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.0009181/0.0009183, allocations: 176.8 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0008816/0.0008815, allocations: 86.52 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.338e-05/4.351e-05, allocations: 12 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2388, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.721/0.9599, allocations: 131.3 MB / 1.02 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.9602, allocations: 71.83 kB / 1.02 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002531/0.9627, allocations: 0.859 MB / 1.021 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.643e-06/0.9627, allocations: 0 / 1.021 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.849e-06/0.9628, allocations: 4 kB / 1.021 GB, free: 2.547 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.0004755/0.9633, allocations: 361.9 kB / 1.021 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.9633, allocations: 12.03 kB / 1.021 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.9633, allocations: 3.906 kB / 1.021 GB, free: 2.137 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.9635, allocations: 167 kB / 1.022 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.9635, allocations: 0 / 1.022 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.9635, allocations: 4 kB / 1.022 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.9637, allocations: 45.19 kB / 1.022 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.9637, allocations: 3.938 kB / 1.022 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.9637, allocations: 0 / 1.022 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.9637, allocations: 0.6875 kB / 1.022 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.035e-05/0.9638, allocations: 22.88 kB / 1.022 GB, free: 1.867 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005384/0.9643, allocations: 297.9 kB / 1.022 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.53e-05/0.9644, allocations: 37.52 kB / 1.022 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.703e-05/0.9645, allocations: 16.23 kB / 1.022 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.9645, allocations: 0 / 1.022 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.9645, allocations: 34.56 kB / 1.022 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.225e-06/0.9645, allocations: 0 / 1.022 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001652/0.9647, allocations: 54.75 kB / 1.022 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.9648, allocations: 51.41 kB / 1.022 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.985e-05/0.9649, allocations: 110.6 kB / 1.022 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.9649, allocations: 29.7 kB / 1.022 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.965, allocations: 90.44 kB / 1.022 GB, free: 1.098 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.965, allocations: 3.906 kB / 1.022 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.965, allocations: 2.938 kB / 1.022 GB, free: 1.094 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.9651, allocations: 322.8 kB / 1.023 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.583e-05/0.9652, allocations: 7.438 kB / 1.023 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.15e-05/0.9652, allocations: 11.75 kB / 1.023 GB, free: 0.7578 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.394e-05/0.9652, allocations: 7.75 kB / 1.023 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.9652, allocations: 4 kB / 1.023 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.714e-05/0.9653, allocations: 60.84 kB / 1.023 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.9654, allocations: 4 kB / 1.023 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.9654, allocations: 2 kB / 1.023 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.9654, allocations: 0 / 1.023 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.9656, allocations: 19.98 kB / 1.023 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.9656, allocations: 0 / 1.023 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.212e-05/0.9657, allocations: 23.98 kB / 1.023 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.654e-06/0.9657, allocations: 0 / 1.023 GB, free: 0.6445 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.057e-05/0.9658, allocations: 108.9 kB / 1.023 GB, free: 0.5312 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.9658, allocations: 4 kB / 1.023 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.9658, allocations: 7.406 kB / 1.023 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.9659, allocations: 0 / 1.023 GB, free: 0.5195 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.9659, allocations: 3.938 kB / 1.023 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.9659, allocations: 7.938 kB / 1.023 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.9661, allocations: 167.3 kB / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.9661, allocations: 0 / 1.023 GB, free: 308 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.578e-05/0.9662, allocations: 23.97 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.9662, allocations: 0 / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.9662, allocations: 2.562 kB / 1.023 GB, free: 284 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.9662, allocations: 4 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.9662, allocations: 0 / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.9664, allocations: 156.8 kB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.469e-05/0.9664, allocations: 77.11 kB / 1.023 GB, free: 20 kB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.9664, allocations: 7.438 kB / 1.023 GB, free: 16 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.9666, allocations: 15.98 kB / 1.023 GB, free: 0 / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.076e-05/0.9667, allocations: 10.92 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.9667, allocations: 4 kB / 1.023 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 5.53e-05/0.9667, allocations: 87.09 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.084e-06/0.9667, allocations: 0 / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0001867/0.9669, allocations: 7.938 kB / 1.023 GB, free: 15.9 MB / 0.6511 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.000193/0.9671, allocations: 102.3 kB / 1.023 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001137/0.9673, allocations: 19.12 kB / 1.023 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.9673, allocations: 3.938 kB / 1.024 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.993e-05/0.9673, allocations: 19.11 kB / 1.024 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.9675, allocations: 11.33 kB / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002514/0.9678, allocations: 73.47 kB / 1.024 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.9681, allocations: 0.6887 MB / 1.024 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.525e-05/0.9681, allocations: 7.938 kB / 1.024 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.667e-05/0.9681, allocations: 7.438 kB / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of SimCode: time 3.01e-07/0.9681, allocations: 4 kB / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of Templates: time 0.002457/0.9706, allocations: 0.5539 MB / 1.025 GB, free: 14.39 MB / 0.6511 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