Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001645/0.001645, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002276/0.002276, allocations: 195.6 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.71/2.71, allocations: 461.8 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 69.78 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3481, allocations: 157.4 MB / 1.052 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003151/0.3514, allocations: 1.131 MB / 1.053 GB, free: 7.738 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.3528, allocations: 0.9948 MB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001876/0.353, allocations: 4 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.3532, allocations: 15.8 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.792e-05/0.3533, allocations: 7.922 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.3537, allocations: 67.88 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.3539, allocations: 168 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.3541, allocations: 72.05 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.3543, allocations: 63.77 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.3544, allocations: 75.61 kB / 1.055 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.3545, allocations: 8 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.044e-05/0.3545, allocations: 16 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.749e-05/0.3546, allocations: 39.77 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.87e-05/0.3547, allocations: 63.61 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.3549, allocations: 175.6 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3549, allocations: 7.938 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.032e-06/0.355, allocations: 0 / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.355, allocations: 0 / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009706/0.3559, allocations: 482.8 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.356, allocations: 8.031 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.54e-05/0.3561, allocations: 20.66 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.3563, allocations: 226.7 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.3564, allocations: 8.375 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.3564, allocations: 20.38 kB / 1.056 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000327/0.3567, allocations: 154 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3568, allocations: 7.984 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.3568, allocations: 8 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3568, allocations: 4 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002799/0.3571, allocations: 103.9 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.3582, allocations: 0.5351 MB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.3586, allocations: 142.7 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.3588, allocations: 88.8 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.3589, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003359/0.3592, allocations: 124.5 kB / 1.057 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.383e-06/0.3592, allocations: 4 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0005362/0.3597, allocations: 222.7 kB / 1.057 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.3598, allocations: 51.41 kB / 1.057 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.3599, allocations: 160.9 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.518e-05/0.36, allocations: 29.7 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.781e-05/0.3601, allocations: 120.4 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/0.3601, allocations: 71.03 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.191e-05/0.3602, allocations: 37.7 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3603, allocations: 330.8 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.3605, allocations: 63.97 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.3607, allocations: 89.66 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.3611, allocations: 147 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3611, allocations: 0 / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004584/0.3615, allocations: 213.3 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.3616, allocations: 8 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.3616, allocations: 3.938 kB / 1.058 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.3616, allocations: 4.031 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.3618, allocations: 39.97 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.3618, allocations: 4 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001432/0.362, allocations: 27.81 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.362, allocations: 8 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.3621, allocations: 129.7 kB / 1.058 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.3621, allocations: 15.81 kB / 1.058 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004227/0.3626, allocations: 199.7 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.3626, allocations: 4 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.3626, allocations: 0 / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3626, allocations: 0 / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007938/0.3634, allocations: 0.585 MB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3634, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.3636, allocations: 31.98 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.3636, allocations: 4.125 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.3636, allocations: 12 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-06/0.3636, allocations: 11.92 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3636, allocations: 0 / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.3642, allocations: 380.1 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.3643, allocations: 104.8 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.3643, allocations: 48 / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.3645, allocations: 23.97 kB / 1.06 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.297e-05/0.3645, allocations: 23.97 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/0.3646, allocations: 4 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.698e-05/0.3647, allocations: 121.4 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3647, allocations: 3.938 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002644/0.3649, allocations: 28 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001653/0.3651, allocations: 111.2 kB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004207/0.3655, allocations: 163.8 kB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3655, allocations: 0 / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.3657, allocations: 91.83 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.3661, allocations: 25.55 kB / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006717/0.3668, allocations: 436.8 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.367, allocations: 0.7285 MB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.285e-05/0.3671, allocations: 13.42 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.636e-05/0.3672, allocations: 19.44 kB / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.3672, allocations: 0 / 1.062 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of Templates: time 0.004268/0.3715, allocations: 1.585 MB / 1.063 GB, free: 13.19 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches