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.01219/0.01219, allocations: 103 kB / 15.73 MB, free: 6.035 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.002287/0.002288, allocations: 190 kB / 16.67 MB, free: 5.965 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.197/3.197, allocations: 461.9 MB / 0.7347 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 63.91 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.367, allocations: 157.4 MB / 1.208 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002671/0.3697, allocations: 1.056 MB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.3713, allocations: 0.9991 MB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.3715, allocations: 4 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.3717, allocations: 19.73 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.87e-05/0.3719, allocations: 23.75 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.3723, allocations: 67.83 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002667/0.3725, allocations: 188 kB / 1.21 GB, free: 7.16 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.3728, allocations: 84.03 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.3729, allocations: 63.78 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.373, allocations: 83.59 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.517e-05/0.3731, allocations: 16 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.879e-05/0.3731, allocations: 16 kB / 1.21 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.13e-05/0.3732, allocations: 43.91 kB / 1.21 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.786e-05/0.3733, allocations: 71.53 kB / 1.21 GB, free: 6.785 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.3735, allocations: 191.2 kB / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3736, allocations: 0 / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.518e-06/0.3736, allocations: 0 / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.3736, allocations: 3.938 kB / 1.211 GB, free: 6.594 MB / 0.9669 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.000921/0.3745, allocations: 482.8 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.3746, allocations: 8.031 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.002e-05/0.3746, allocations: 20.75 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.3749, allocations: 224.5 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.375, allocations: 12.38 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.578e-05/0.375, allocations: 16.38 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.3754, allocations: 162 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3754, allocations: 0 / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3754, allocations: 11.98 kB / 1.212 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.3754, allocations: 4 kB / 1.212 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002787/0.3757, allocations: 103.9 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.3768, allocations: 0.5274 MB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.3772, allocations: 138.7 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.3774, allocations: 88.67 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.224e-05/0.3775, allocations: 11.97 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.3777, allocations: 124.7 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.3777, allocations: 0 / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.0005571/0.3783, allocations: 222.6 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.543e-05/0.3784, allocations: 51.41 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.3785, allocations: 166.2 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.3785, allocations: 29.7 kB / 1.213 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.176e-05/0.3786, allocations: 116.5 kB / 1.213 GB, free: 3.91 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.455e-05/0.3787, allocations: 67 kB / 1.213 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.3788, allocations: 37.7 kB / 1.213 GB, free: 3.801 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3789, allocations: 326.8 kB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.3791, allocations: 71.89 kB / 1.214 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.3793, allocations: 89.67 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.3796, allocations: 144 kB / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.3797, allocations: 0 / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004842/0.3802, allocations: 221.3 kB / 1.214 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3802, allocations: 8 kB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3802, allocations: 0 / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3802, allocations: 0 / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.3804, allocations: 43.91 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.3804, allocations: 0 / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.3806, allocations: 27.83 kB / 1.214 GB, free: 2.863 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.3806, allocations: 4 kB / 1.214 GB, free: 2.859 MB / 0.9669 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.000118/0.3807, allocations: 137.8 kB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.3807, allocations: 11.81 kB / 1.214 GB, free: 2.703 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.3812, allocations: 193 kB / 1.214 GB, free: 2.512 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3812, allocations: 4 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3812, allocations: 0 / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.3812, allocations: 3.984 kB / 1.214 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000803/0.382, allocations: 0.5812 MB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.382, allocations: 4.188 kB / 1.215 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.3822, allocations: 39.91 kB / 1.215 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.3822, allocations: 3.938 kB / 1.215 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.3823, allocations: 8 kB / 1.215 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.3823, allocations: 4 kB / 1.215 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3823, allocations: 3.984 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.3829, allocations: 376.3 kB / 1.215 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.171e-05/0.383, allocations: 108.8 kB / 1.215 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.383, allocations: 8 kB / 1.215 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.3832, allocations: 15.98 kB / 1.215 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.125e-05/0.3833, allocations: 23.91 kB / 1.216 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.3833, allocations: 8 kB / 1.216 GB, free: 1.203 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.898e-05/0.3834, allocations: 117.4 kB / 1.216 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3834, allocations: 0 / 1.216 GB, free: 1.09 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002835/0.3837, allocations: 35.91 kB / 1.216 GB, free: 1.055 MB / 0.9669 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.0002009/0.3839, allocations: 115.2 kB / 1.216 GB, free: 0.9336 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004522/0.3843, allocations: 170.2 kB / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3843, allocations: 4 kB / 1.216 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.3846, allocations: 83.84 kB / 1.216 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.3849, allocations: 38.12 kB / 1.216 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007484/0.3857, allocations: 384.6 kB / 1.216 GB, free: 236 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.3861, allocations: 0.7243 MB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.099e-05/0.3862, allocations: 17.42 kB / 1.217 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.772e-05/0.3862, allocations: 23.42 kB / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of SimCode: time 2.21e-07/0.3862, allocations: 0 / 1.217 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of Templates: time 0.005323/0.3916, allocations: 1.816 MB / 1.219 GB, free: 13.63 MB / 0.9825 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