Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001955/0.001954, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.449/1.449, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.552/2.552, allocations: 390.2 MB / 0.6643 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001508, allocations: 67.91 kB / 0.8121 GB, free: 14.74 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.851/0.8525, allocations: 140.4 MB / 0.9491 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002529/0.8551, allocations: 1.09 MB / 0.9502 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001148/0.8563, allocations: 0.9935 MB / 0.9512 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.8564, allocations: 4 kB / 0.9512 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.8566, allocations: 15.8 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.286e-05/0.8566, allocations: 9.312 kB / 0.9512 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.8569, allocations: 71 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000189/0.8571, allocations: 163.5 kB / 0.9514 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.8573, allocations: 83.98 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.913e-05/0.8574, allocations: 65.75 kB / 0.9515 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.481e-05/0.8575, allocations: 82.78 kB / 0.9516 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.8576, allocations: 20.44 kB / 0.9516 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.832e-05/0.8576, allocations: 15.44 kB / 0.9517 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.703e-05/0.8576, allocations: 36.44 kB / 0.9517 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.666e-05/0.8577, allocations: 74.97 kB / 0.9518 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.8579, allocations: 170.1 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.8579, allocations: 1.281 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.473e-06/0.858, allocations: 0 / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.083e-06/0.858, allocations: 0 / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007487/0.8587, allocations: 476.9 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.8588, allocations: 8.844 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/0.8588, allocations: 18.81 kB / 0.9524 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000201/0.859, allocations: 217.8 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.8591, allocations: 11.59 kB / 0.9526 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.8591, allocations: 14.94 kB / 0.9526 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.8594, allocations: 143.7 kB / 0.9528 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.8594, allocations: 192 / 0.9528 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.8595, allocations: 9.281 kB / 0.9528 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.8595, allocations: 6.719 kB / 0.9528 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.8598, allocations: 109.2 kB / 0.9529 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.8608, allocations: 0.5249 MB / 0.9534 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003836/0.8612, allocations: 141.1 kB / 0.9535 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.8614, allocations: 86.78 kB / 0.9536 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.8615, allocations: 2.375 kB / 0.9536 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/0.8618, allocations: 134.5 kB / 0.9538 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.863e-06/0.8618, allocations: 0 / 0.9538 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0005994/0.8624, allocations: 222.8 kB / 0.954 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.8625, allocations: 62.23 kB / 0.954 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.8626, allocations: 153.2 kB / 0.9542 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.8626, allocations: 31.11 kB / 0.9542 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.704e-05/0.8627, allocations: 115 kB / 0.9543 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.8627, allocations: 66.39 kB / 0.9544 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.559e-05/0.8628, allocations: 39.95 kB / 0.9544 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.724e-05/0.8629, allocations: 325.5 kB / 0.9547 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.8631, allocations: 71.02 kB / 0.9548 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.8633, allocations: 87.64 kB / 0.9549 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.8636, allocations: 152 kB / 0.955 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.8637, allocations: 0 / 0.955 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000455/0.8641, allocations: 218.2 kB / 0.9552 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.8641, allocations: 4.75 kB / 0.9552 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.8642, allocations: 1.156 kB / 0.9552 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.8642, allocations: 1.25 kB / 0.9552 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.8644, allocations: 41.38 kB / 0.9553 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.8644, allocations: 6.438 kB / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.8645, allocations: 25.95 kB / 0.9553 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.8646, allocations: 4.562 kB / 0.9553 GB, free: 4.254 MB / 0.7169 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 9.224e-05/0.8647, allocations: 132.5 kB / 0.9554 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.8647, allocations: 14.78 kB / 0.9555 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004241/0.8651, allocations: 193.3 kB / 0.9556 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.8651, allocations: 2.406 kB / 0.9556 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.8652, allocations: 3.984 kB / 0.9556 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.8652, allocations: 0 / 0.9556 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007144/0.8659, allocations: 0.5779 MB / 0.9562 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.8659, allocations: 1.219 kB / 0.9562 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001757/0.8661, allocations: 43.22 kB / 0.9563 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.8661, allocations: 3.094 kB / 0.9563 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.8661, allocations: 7.625 kB / 0.9563 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.8661, allocations: 5.938 kB / 0.9563 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.8661, allocations: 6.281 kB / 0.9563 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.8667, allocations: 387 kB / 0.9566 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.978e-05/0.8667, allocations: 90.98 kB / 0.9567 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.866e-05/0.8667, allocations: 11.06 kB / 0.9567 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.8669, allocations: 16.33 kB / 0.9568 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.201e-05/0.867, allocations: 17.78 kB / 0.9568 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.867, allocations: 10.12 kB / 0.9568 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.277e-05/0.867, allocations: 123.1 kB / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.867, allocations: 0 / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002683/0.8673, allocations: 36.91 kB / 0.9569 GB, free: 2.914 MB / 0.7169 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.0001463/0.8675, allocations: 112.4 kB / 0.957 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004327/0.8679, allocations: 166.9 kB / 0.9572 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.8679, allocations: 4.062 kB / 0.9572 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.8681, allocations: 85.41 kB / 0.9573 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.8685, allocations: 32.92 kB / 0.9573 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000604/0.8691, allocations: 419.3 kB / 0.9577 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002098/0.8693, allocations: 0.7256 MB / 0.9584 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.9e-05/0.8694, allocations: 19.86 kB / 0.9584 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.815e-05/0.8695, allocations: 21.59 kB / 0.9585 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.8695, allocations: 3.938 kB / 0.9585 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of Templates: time 0.00453/0.874, allocations: 1.634 MB / 0.9601 GB, free: 0.7852 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches