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.517/1.517, allocations: 249.5 MB / 257 MB, free: 6.828 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.00107/0.00107, allocations: 179.3 kB / 316.3 MB, free: 3.266 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.611/1.611, allocations: 205.3 MB / 0.5671 GB, free: 15.83 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.001005/0.001005, allocations: 86.48 kB / 0.6714 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.38e-05/2.376e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2366, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7586/0.9953, allocations: 131.8 MB / 1.014 GB, free: 5.922 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.9955, allocations: 74.86 kB / 1.014 GB, free: 5.883 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003778/0.9993, allocations: 1.366 MB / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.585e-06/0.9993, allocations: 0 / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.9994, allocations: 3.938 kB / 1.015 GB, free: 4.703 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003752/0.9997, allocations: 354 kB / 1.016 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.9998, allocations: 8.031 kB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.9998, allocations: 11.91 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/1, allocations: 187.4 kB / 1.016 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/1, allocations: 0 / 1.016 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/1, allocations: 7.938 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.78e-05/1, allocations: 19.31 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.915e-05/1, allocations: 41.38 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/1, allocations: 3.938 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/1, allocations: 3.938 kB / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/1, allocations: 0 / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004162/1.001, allocations: 276 kB / 1.016 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.716e-05/1.001, allocations: 41.75 kB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.573e-05/1.001, allocations: 16.36 kB / 1.016 GB, free: 3.66 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/1.001, allocations: 7.984 kB / 1.016 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/1.001, allocations: 34.55 kB / 1.016 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/1.001, allocations: 0 / 1.016 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001673/1.001, allocations: 53.03 kB / 1.016 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/1.001, allocations: 51.41 kB / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.659e-05/1.001, allocations: 96.5 kB / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/1.001, allocations: 25.7 kB / 1.017 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.679e-05/1.001, allocations: 95.94 kB / 1.017 GB, free: 3.273 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/1.001, allocations: 15.25 kB / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/1.001, allocations: 0 / 1.017 GB, free: 3.262 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001139/1.001, allocations: 318.8 kB / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.271e-05/1.002, allocations: 11.62 kB / 1.017 GB, free: 2.934 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.842e-05/1.002, allocations: 11.69 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.865e-05/1.002, allocations: 15.3 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/1.002, allocations: 0 / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.632e-05/1.002, allocations: 56.8 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/1.002, allocations: 6.188 kB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/1.002, allocations: 15.91 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/1.002, allocations: 0 / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/1.002, allocations: 12 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/1.002, allocations: 0 / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.051e-05/1.002, allocations: 11.98 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/1.002, allocations: 0 / 1.017 GB, free: 2.82 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: 0 () * Number of discrete 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 7.585e-05/1.002, allocations: 111.5 kB / 1.017 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/1.002, allocations: 7.906 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001223/1.002, allocations: 65.02 kB / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/1.002, allocations: 0 / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/1.002, allocations: 384 / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/1.002, allocations: 0 / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/1.002, allocations: 149.5 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/1.002, allocations: 0 / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.742e-05/1.002, allocations: 19.92 kB / 1.017 GB, free: 2.438 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/1.002, allocations: 4 kB / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/1.003, allocations: 0 / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/1.003, allocations: 0 / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.003, allocations: 192 / 1.017 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/1.003, allocations: 174 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.685e-05/1.003, allocations: 81.14 kB / 1.018 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.804e-05/1.003, allocations: 3.984 kB / 1.018 GB, free: 2.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.603e-05/1.003, allocations: 8.062 kB / 1.018 GB, free: 2.152 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.846e-05/1.003, allocations: 11.55 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-06/1.003, allocations: 0 / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.1e-05/1.003, allocations: 87.03 kB / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.31e-07/1.003, allocations: 0 / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002282/1.003, allocations: 7.938 kB / 1.018 GB, free: 2.055 MB / 0.6355 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 () * 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.000159/1.003, allocations: 103.2 kB / 1.018 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.69e-05/1.003, allocations: 30.67 kB / 1.018 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/1.003, allocations: 4 kB / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.651e-05/1.004, allocations: 11.5 kB / 1.018 GB, free: 1.91 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/1.004, allocations: 8.125 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002711/1.004, allocations: 96.72 kB / 1.018 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/1.004, allocations: 0.6846 MB / 1.019 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.955e-05/1.004, allocations: 7.984 kB / 1.019 GB, free: 1.074 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.969e-05/1.004, allocations: 11.44 kB / 1.019 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/1.004, allocations: 0 / 1.019 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of Templates: time 0.002364/1.007, allocations: 469.3 kB / 1.019 GB, free: 0.6172 MB / 0.6355 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