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.Derivative.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.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.596/1.596, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 188 kB / 326.5 MB, free: 2.254 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.887/1.887, allocations: 205.4 MB / 0.5775 GB, free: 20.32 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.0009066/0.0009066, allocations: 93.98 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003426, allocations: 15.72 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2715, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.189/0.4606, allocations: 131.6 MB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.4609, allocations: 71.95 kB / 1.029 GB, free: 12.08 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004201/0.4652, allocations: 1.391 MB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.837e-06/0.4652, allocations: 0 / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.4652, allocations: 3.938 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004795/0.4657, allocations: 367.1 kB / 1.03 GB, free: 10.27 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.4658, allocations: 12.03 kB / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.4658, allocations: 0 / 1.03 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.4661, allocations: 194.9 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.4661, allocations: 0 / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.4662, allocations: 4 kB / 1.031 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001801/0.4663, allocations: 61.67 kB / 1.031 GB, free: 9.957 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4664, allocations: 0 / 1.031 GB, free: 9.957 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.4664, allocations: 3.938 kB / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4664, allocations: 4 kB / 1.031 GB, free: 9.949 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.4666, allocations: 55.95 kB / 1.031 GB, free: 9.895 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000504/0.4671, allocations: 304.8 kB / 1.031 GB, free: 9.547 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.4673, allocations: 46.66 kB / 1.031 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.4673, allocations: 3.984 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/0.4673, allocations: 46.5 kB / 1.031 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.4674, allocations: 0 / 1.031 GB, free: 9.434 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0004033/0.4678, allocations: 105.5 kB / 1.031 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.4678, allocations: 55.41 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.87e-05/0.4679, allocations: 116.9 kB / 1.031 GB, free: 9.137 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.4679, allocations: 25.7 kB / 1.031 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.886e-05/0.468, allocations: 88.12 kB / 1.031 GB, free: 9.016 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.468, allocations: 11.81 kB / 1.032 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.4681, allocations: 0 / 1.032 GB, free: 9.004 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.00016/0.4682, allocations: 314.8 kB / 1.032 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.4683, allocations: 35.97 kB / 1.032 GB, free: 8.652 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.323e-05/0.4684, allocations: 27.92 kB / 1.032 GB, free: 8.625 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.898e-05/0.4685, allocations: 28.11 kB / 1.032 GB, free: 8.598 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4685, allocations: 3.938 kB / 1.032 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002113/0.4688, allocations: 97.66 kB / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.4688, allocations: 4 kB / 1.032 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4688, allocations: 0 / 1.032 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.4688, allocations: 0 / 1.032 GB, free: 8.488 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.4689, allocations: 15.98 kB / 1.032 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.4689, allocations: 8 kB / 1.032 GB, free: 8.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.389e-05/0.469, allocations: 11.89 kB / 1.032 GB, free: 8.453 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.4691, allocations: 7.953 kB / 1.032 GB, free: 8.445 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 5 * 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.849e-05/0.4692, allocations: 115.3 kB / 1.032 GB, free: 8.324 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.4692, allocations: 4 kB / 1.032 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.4695, allocations: 101.7 kB / 1.032 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.4695, allocations: 0 / 1.032 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4695, allocations: 0 / 1.032 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4695, allocations: 0 / 1.032 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.4697, allocations: 181.5 kB / 1.032 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.4697, allocations: 0 / 1.032 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.4698, allocations: 15.98 kB / 1.032 GB, free: 7.973 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.4699, allocations: 4 kB / 1.032 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.4699, allocations: 0 / 1.032 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4699, allocations: 0 / 1.032 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.4699, allocations: 0 / 1.032 GB, free: 7.969 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003874/0.4703, allocations: 231.3 kB / 1.033 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/0.4703, allocations: 81.02 kB / 1.033 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.4704, allocations: 3.984 kB / 1.033 GB, free: 7.625 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.356e-05/0.4705, allocations: 8.031 kB / 1.033 GB, free: 7.617 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.4705, allocations: 3.984 kB / 1.033 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.4705, allocations: 8.062 kB / 1.033 GB, free: 7.605 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.265e-05/0.4706, allocations: 87.59 kB / 1.033 GB, free: 7.52 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4706, allocations: 0 / 1.033 GB, free: 7.52 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002053/0.4708, allocations: 8 kB / 1.033 GB, free: 7.512 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der1.x) * 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 (4): * Single equations (assignments): 4 * 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.0002316/0.4711, allocations: 103.2 kB / 1.033 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002563/0.4713, allocations: 71.89 kB / 1.033 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4713, allocations: 0 / 1.033 GB, free: 7.332 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.904e-05/0.4714, allocations: 27.98 kB / 1.033 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.4717, allocations: 15.88 kB / 1.033 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000375/0.4721, allocations: 164.6 kB / 1.033 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.4724, allocations: 0.6809 MB / 1.034 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.11e-05/0.4724, allocations: 8.234 kB / 1.034 GB, free: 6.383 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.133e-05/0.4724, allocations: 7.438 kB / 1.034 GB, free: 6.375 MB / 0.6823 GB Notification: Performance of SimCode: time 1.493e-06/0.4724, allocations: 0 / 1.034 GB, free: 6.375 MB / 0.6823 GB Notification: Performance of Templates: time 0.002421/0.4749, allocations: 0.5029 MB / 1.034 GB, free: 5.883 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=10.000000 File[5002]=2.000000 Error: Could not read variable intWitRes.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat. Warning: Get data of variable intWitRes.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat failed! Error: Could not read variable der2.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat. Warning: Get data of variable der2.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat failed! " Variables in the reference:time,der1.y,intWitRes.u,der2.y,der1.T Variables in the result:der1.T,der1.k,der1.x_start,der1.y,der1.y_start,der1.zeroGain,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time