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.441/1.441, allocations: 249.3 MB / 261.8 MB, free: 5.984 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.001012/0.001012, allocations: 172.9 kB / 321.3 MB, free: 14.67 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.473/1.473, allocations: 205.2 MB / 0.572 GB, free: 10.73 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.0007818/0.000782, allocations: 98.47 kB / 0.6764 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.59e-05/3.593e-05, allocations: 7.984 kB / 0.788 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2095, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6959/0.9054, allocations: 131.5 MB / 1.02 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.9057, allocations: 80.19 kB / 1.02 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003857/0.9096, allocations: 1.368 MB / 1.022 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.447e-06/0.9096, allocations: 0 / 1.022 GB, free: 1.957 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.9096, allocations: 3.938 kB / 1.022 GB, free: 1.953 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.0004031/0.91, allocations: 364.5 kB / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.9101, allocations: 8.031 kB / 1.022 GB, free: 1.551 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.28e-05/0.9101, allocations: 7.906 kB / 1.022 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.9103, allocations: 182.1 kB / 1.022 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.9104, allocations: 4 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.9104, allocations: 3.5 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.9105, allocations: 58.25 kB / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.9106, allocations: 0 / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.9106, allocations: 0 / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.9106, allocations: 0 / 1.022 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.749e-05/0.9107, allocations: 22.11 kB / 1.022 GB, free: 1.254 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006043/0.9113, allocations: 301.4 kB / 1.023 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001073/0.9114, allocations: 44.03 kB / 1.023 GB, free: 0.8828 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.856e-05/0.9115, allocations: 16.42 kB / 1.023 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.9115, allocations: 0 / 1.023 GB, free: 0.8672 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.9116, allocations: 33.62 kB / 1.023 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.9116, allocations: 0 / 1.023 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0002257/0.9118, allocations: 57.58 kB / 1.023 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.9119, allocations: 55.41 kB / 1.023 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.912, allocations: 107.9 kB / 1.023 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.912, allocations: 25.7 kB / 1.023 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.835e-05/0.9121, allocations: 91.75 kB / 1.023 GB, free: 488 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.9121, allocations: 15.12 kB / 1.023 GB, free: 476 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.588e-06/0.9122, allocations: 0 / 1.023 GB, free: 476 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.9123, allocations: 314.8 kB / 1.023 GB, free: 152 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.68e-05/0.9124, allocations: 14.75 kB / 1.023 GB, free: 144 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.172e-05/0.9124, allocations: 11.94 kB / 1.023 GB, free: 136 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.653e-05/0.9124, allocations: 15.67 kB / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.9125, allocations: 0 / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001039/0.9126, allocations: 60.48 kB / 1.023 GB, free: 64 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.9126, allocations: 9.859 kB / 1.023 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.9126, allocations: 3.938 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.9126, allocations: 0 / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.9128, allocations: 19.94 kB / 1.023 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.9128, allocations: 7.984 kB / 1.023 GB, free: 28 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.89e-05/0.9128, allocations: 11.95 kB / 1.023 GB, free: 16 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.9129, allocations: 0 / 1.023 GB, free: 16 kB / 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 9.418e-05/0.913, allocations: 108.9 kB / 1.024 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.913, allocations: 3.906 kB / 1.024 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/0.9132, allocations: 66.02 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.9132, allocations: 0 / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.9132, allocations: 0 / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.9132, allocations: 8 kB / 1.024 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002275/0.9134, allocations: 168.8 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.9134, allocations: 0 / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.9136, allocations: 19.92 kB / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9136, allocations: 0 / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.9136, allocations: 0 / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.9136, allocations: 0 / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.9136, allocations: 0 / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.9139, allocations: 174.8 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.258e-05/0.914, allocations: 81.02 kB / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.914, allocations: 0 / 1.024 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.534e-05/0.9141, allocations: 15.58 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.9142, allocations: 0 / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.9142, allocations: 4 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.019e-05/0.9143, allocations: 86.78 kB / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9143, allocations: 0 / 1.024 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002358/0.9145, allocations: 12 kB / 1.024 GB, free: 15.23 MB / 0.6511 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.0002798/0.9148, allocations: 111.2 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001157/0.9149, allocations: 22.94 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.9149, allocations: 3.562 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.285e-05/0.915, allocations: 11.81 kB / 1.024 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.9152, allocations: 11.94 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003499/0.9156, allocations: 101.8 kB / 1.024 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.9159, allocations: 0.6848 MB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.269e-05/0.9159, allocations: 4.531 kB / 1.025 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.696e-05/0.9159, allocations: 7.438 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of SimCode: time 5.31e-07/0.916, allocations: 0 / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of Templates: time 0.002565/0.9185, allocations: 0.5047 MB / 1.026 GB, free: 13.75 MB / 0.6511 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