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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00685/0.00685, allocations: 101.4 kB / 15.73 MB, free: 6.457 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.001178/0.001178, allocations: 204.4 kB / 16.68 MB, free: 6.355 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.931/2.931, allocations: 472.6 MB / 0.7453 GB, free: 4.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001228, allocations: 64.12 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3821, allocations: 159.9 MB / 1.226 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002494/0.3847, allocations: 1.089 MB / 1.227 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3862, allocations: 0.9947 MB / 1.228 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.3863, allocations: 0 / 1.228 GB, free: 7.047 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.3865, allocations: 27.73 kB / 1.228 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.135e-05/0.3866, allocations: 15.81 kB / 1.228 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.3869, allocations: 75.84 kB / 1.228 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.3872, allocations: 180 kB / 1.228 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.3874, allocations: 76.05 kB / 1.228 GB, free: 6.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.3875, allocations: 71.69 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.3877, allocations: 83.61 kB / 1.228 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.799e-05/0.3877, allocations: 20 kB / 1.228 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.915e-05/0.3877, allocations: 16 kB / 1.228 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.3878, allocations: 31.92 kB / 1.228 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.939e-05/0.3879, allocations: 79.52 kB / 1.228 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.3882, allocations: 187.1 kB / 1.229 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3882, allocations: 0 / 1.229 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3882, allocations: 0 / 1.229 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.744e-06/0.3882, allocations: 0 / 1.229 GB, free: 6.199 MB / 0.9825 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.0009376/0.3892, allocations: 494.6 kB / 1.229 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3892, allocations: 12.03 kB / 1.229 GB, free: 5.652 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.026e-05/0.3893, allocations: 16.84 kB / 1.229 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.3897, allocations: 224.6 kB / 1.229 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.11e-05/0.3897, allocations: 8.375 kB / 1.229 GB, free: 5.371 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.3898, allocations: 20.38 kB / 1.229 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.3901, allocations: 153.6 kB / 1.229 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.3901, allocations: 0 / 1.229 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.3901, allocations: 8 kB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.3902, allocations: 4 kB / 1.229 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002899/0.3905, allocations: 107.9 kB / 1.23 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.3916, allocations: 0.5391 MB / 1.23 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003883/0.392, allocations: 142.6 kB / 1.23 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.3922, allocations: 92.67 kB / 1.23 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.3923, allocations: 4 kB / 1.23 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002548/0.3925, allocations: 115.3 kB / 1.23 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 1.473e-06/0.3925, allocations: 0 / 1.23 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.0005691/0.3931, allocations: 227.2 kB / 1.231 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.3932, allocations: 59.34 kB / 1.231 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.3933, allocations: 162.6 kB / 1.231 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.3934, allocations: 29.7 kB / 1.231 GB, free: 3.621 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.3935, allocations: 120.5 kB / 1.231 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.787e-05/0.3935, allocations: 71.41 kB / 1.231 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.3936, allocations: 37.7 kB / 1.231 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3937, allocations: 330.8 kB / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.394, allocations: 67.95 kB / 1.231 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.3942, allocations: 92.05 kB / 1.232 GB, free: 2.891 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.3945, allocations: 145.2 kB / 1.232 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3945, allocations: 0 / 1.232 GB, free: 2.746 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004812/0.395, allocations: 213.4 kB / 1.232 GB, free: 2.531 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.395, allocations: 5.562 kB / 1.232 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3951, allocations: 3.984 kB / 1.232 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3951, allocations: 4 kB / 1.232 GB, free: 2.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.3953, allocations: 39.92 kB / 1.232 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.318e-06/0.3953, allocations: 8.031 kB / 1.232 GB, free: 2.473 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001382/0.3954, allocations: 31.81 kB / 1.232 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/0.3955, allocations: 8 kB / 1.232 GB, free: 2.434 MB / 0.9825 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.0001244/0.3956, allocations: 126.3 kB / 1.232 GB, free: 2.301 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.553e-05/0.3956, allocations: 19.84 kB / 1.232 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004485/0.3961, allocations: 190.8 kB / 1.232 GB, free: 2.086 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.3961, allocations: 4 kB / 1.232 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3961, allocations: 0 / 1.232 GB, free: 2.082 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.3961, allocations: 3.984 kB / 1.232 GB, free: 2.078 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009466/0.3971, allocations: 0.5851 MB / 1.233 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3971, allocations: 4 kB / 1.233 GB, free: 1.414 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001861/0.3973, allocations: 35.92 kB / 1.233 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.3973, allocations: 7.938 kB / 1.233 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3973, allocations: 7.984 kB / 1.233 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3973, allocations: 0 / 1.233 GB, free: 1.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.3973, allocations: 4 kB / 1.233 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008912/0.3982, allocations: 386.3 kB / 1.233 GB, free: 0.9492 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.802e-05/0.3983, allocations: 100.8 kB / 1.233 GB, free: 0.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/0.3984, allocations: 12.03 kB / 1.233 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.3985, allocations: 11.98 kB / 1.233 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.3986, allocations: 23.97 kB / 1.233 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.3986, allocations: 4 kB / 1.233 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.876e-05/0.3987, allocations: 123.2 kB / 1.234 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3988, allocations: 0 / 1.234 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003126/0.3991, allocations: 35.95 kB / 1.234 GB, free: 0.625 MB / 0.9825 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.0002689/0.3994, allocations: 107.2 kB / 1.234 GB, free: 0.5117 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006366/0.4, allocations: 169.2 kB / 1.234 GB, free: 356 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4, allocations: 4 kB / 1.234 GB, free: 352 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003075/0.4003, allocations: 87.91 kB / 1.234 GB, free: 264 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.4009, allocations: 23.98 kB / 1.234 GB, free: 240 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008249/0.4017, allocations: 383.2 kB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.4022, allocations: 0.7243 MB / 1.235 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001075/0.4023, allocations: 17.42 kB / 1.235 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.681e-05/0.4024, allocations: 27.38 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of SimCode: time 3.7e-07/0.4024, allocations: 0 / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of Templates: time 0.007366/0.4098, allocations: 1.77 MB / 1.237 GB, free: 13.26 MB / 0.9981 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