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.001803/0.001803, allocations: 112 kB / 16.41 MB, free: 6.477 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.00224/0.002241, allocations: 183 kB / 17.34 MB, free: 5.754 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.464/1.464, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.655/2.655, allocations: 461.9 MB / 0.7354 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001382, allocations: 71.89 kB / 1.055 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7657/0.7671, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002814/0.77, allocations: 1.062 MB / 1.21 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001617/0.7716, allocations: 0.9947 MB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.7718, allocations: 4 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.772, allocations: 19.73 kB / 1.211 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.606e-05/0.7721, allocations: 19.75 kB / 1.211 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.7725, allocations: 75.84 kB / 1.211 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.7727, allocations: 176.1 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.773, allocations: 83.97 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.7731, allocations: 67.72 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.7732, allocations: 79.61 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.7733, allocations: 23.98 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 3.223e-05/0.7733, allocations: 16 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.368e-05/0.7734, allocations: 35.91 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 8.256e-05/0.7735, allocations: 75.53 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002578/0.7737, allocations: 187 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.7737, allocations: 0 / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.804e-06/0.7737, allocations: 0 / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.7738, allocations: 4 kB / 1.211 GB, free: 10.72 MB / 0.9356 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.000889/0.7747, allocations: 484.8 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.7747, allocations: 8.031 kB / 1.212 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.479e-05/0.7748, allocations: 16.75 kB / 1.212 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.7751, allocations: 228.5 kB / 1.212 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.7752, allocations: 12.38 kB / 1.212 GB, free: 9.898 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.808e-05/0.7752, allocations: 16.38 kB / 1.212 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003476/0.7756, allocations: 161.5 kB / 1.212 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.7756, allocations: 0 / 1.212 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.015e-05/0.7756, allocations: 7.984 kB / 1.212 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.7756, allocations: 4 kB / 1.212 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/0.7759, allocations: 99.94 kB / 1.212 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.7771, allocations: 0.539 MB / 1.213 GB, free: 9.02 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004132/0.7775, allocations: 142.7 kB / 1.213 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.7777, allocations: 84.77 kB / 1.213 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.7778, allocations: 7.984 kB / 1.213 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.778, allocations: 120.6 kB / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=19): time 1.643e-06/0.778, allocations: 0 / 1.213 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of matching and sorting (n=19): time 0.0005388/0.7785, allocations: 235.8 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.7786, allocations: 51.41 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.7787, allocations: 159.8 kB / 1.214 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.7788, allocations: 29.7 kB / 1.214 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.203e-05/0.7788, allocations: 120.4 kB / 1.214 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.064e-05/0.7789, allocations: 63.09 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.396e-05/0.779, allocations: 37.7 kB / 1.214 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.7791, allocations: 326.8 kB / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.7793, allocations: 71.95 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002042/0.7795, allocations: 88.11 kB / 1.214 GB, free: 7.438 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.7798, allocations: 144.3 kB / 1.214 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.7799, allocations: 7.938 kB / 1.214 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004968/0.7804, allocations: 213.4 kB / 1.215 GB, free: 7.07 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.7804, allocations: 4 kB / 1.215 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.7804, allocations: 4 kB / 1.215 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.7804, allocations: 0 / 1.215 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.7806, allocations: 43.84 kB / 1.215 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.7806, allocations: 4 kB / 1.215 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.7808, allocations: 27.86 kB / 1.215 GB, free: 6.988 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.7808, allocations: 8 kB / 1.215 GB, free: 6.98 MB / 0.9356 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.0001183/0.7809, allocations: 137.2 kB / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.85e-05/0.781, allocations: 11.91 kB / 1.215 GB, free: 6.828 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004112/0.7814, allocations: 194.6 kB / 1.215 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.7814, allocations: 8 kB / 1.215 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.7814, allocations: 0 / 1.215 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.7814, allocations: 3.984 kB / 1.215 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008089/0.7822, allocations: 0.5773 MB / 1.216 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.7822, allocations: 8 kB / 1.216 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000173/0.7824, allocations: 43.91 kB / 1.216 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.7824, allocations: 3.938 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.7825, allocations: 4 kB / 1.216 GB, free: 5.906 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.7825, allocations: 4 kB / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7825, allocations: 0 / 1.216 GB, free: 5.902 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005846/0.7831, allocations: 380.5 kB / 1.216 GB, free: 5.496 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.117e-05/0.7831, allocations: 100.9 kB / 1.216 GB, free: 5.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/0.7832, allocations: 8 kB / 1.216 GB, free: 5.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001539/0.7833, allocations: 11.98 kB / 1.216 GB, free: 5.359 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.356e-05/0.7834, allocations: 23.97 kB / 1.216 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.7834, allocations: 7.938 kB / 1.216 GB, free: 5.328 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.011e-05/0.7835, allocations: 119.2 kB / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7835, allocations: 0 / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002725/0.7838, allocations: 43.84 kB / 1.216 GB, free: 5.168 MB / 0.9356 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.0001486/0.7839, allocations: 111.3 kB / 1.216 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000416/0.7844, allocations: 167.7 kB / 1.217 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.7844, allocations: 0 / 1.217 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002018/0.7846, allocations: 92.16 kB / 1.217 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.7849, allocations: 22.17 kB / 1.217 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006755/0.7856, allocations: 420 kB / 1.217 GB, free: 4.324 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.7859, allocations: 0.7243 MB / 1.218 GB, free: 3.57 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.509e-05/0.786, allocations: 23.42 kB / 1.218 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.786, allocations: 0 / 1.218 GB, free: 3.547 MB / 0.9356 GB Notification: Performance of Templates: time 0.003676/0.7897, allocations: 1.963 MB / 1.22 GB, free: 1.582 MB / 0.9356 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/jenkins1/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