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.001693/0.001693, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.564/1.564, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.128/3.128, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 71.55 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3962/0.3978, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003125/0.401, allocations: 1.068 MB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.4027, allocations: 0.9948 MB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002325/0.4029, allocations: 4 kB / 1.07 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.4031, allocations: 23.73 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.4033, allocations: 15.8 kB / 1.07 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000393/0.4037, allocations: 75.48 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000283/0.404, allocations: 180 kB / 1.071 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002612/0.4042, allocations: 80.02 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001931/0.4044, allocations: 75.77 kB / 1.071 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.4046, allocations: 79.61 kB / 1.071 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.122e-05/0.4046, allocations: 16 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.052e-05/0.4047, allocations: 16 kB / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.393e-05/0.4047, allocations: 47.83 kB / 1.071 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001009/0.4048, allocations: 71.55 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.4051, allocations: 179.6 kB / 1.071 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4051, allocations: 4 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.505e-06/0.4052, allocations: 0 / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.4052, allocations: 0 / 1.071 GB, free: 7.453 MB / 0.8262 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.0009874/0.4062, allocations: 478.8 kB / 1.072 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.4062, allocations: 8.031 kB / 1.072 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.668e-05/0.4063, allocations: 16.75 kB / 1.072 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.4066, allocations: 229.5 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.4067, allocations: 8.375 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.011e-05/0.4067, allocations: 24.38 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003724/0.4071, allocations: 149.6 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.4071, allocations: 0 / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.4072, allocations: 8 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.4072, allocations: 7.938 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.4075, allocations: 103.9 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.4087, allocations: 0.5352 MB / 1.073 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003914/0.4091, allocations: 138.7 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.4093, allocations: 90.83 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.4093, allocations: 0 / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003333/0.4097, allocations: 133.6 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 1.563e-06/0.4097, allocations: 0 / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.0005774/0.4103, allocations: 213.5 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/0.4103, allocations: 55.39 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.4105, allocations: 164.9 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.4105, allocations: 33.7 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.4106, allocations: 112.4 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.483e-05/0.4106, allocations: 71.03 kB / 1.074 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.715e-05/0.4107, allocations: 41.7 kB / 1.074 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.4108, allocations: 326.8 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.411, allocations: 63.97 kB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/0.4113, allocations: 100 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/0.4116, allocations: 144.1 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4116, allocations: 4 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004689/0.4121, allocations: 216.5 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.4121, allocations: 8 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.4121, allocations: 0 / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.4121, allocations: 0 / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001899/0.4123, allocations: 39.97 kB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.4124, allocations: 3.938 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.4125, allocations: 27.83 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.4125, allocations: 7.984 kB / 1.075 GB, free: 3.727 MB / 0.8262 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.0001283/0.4127, allocations: 133.8 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.4127, allocations: 7.906 kB / 1.075 GB, free: 3.578 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004504/0.4131, allocations: 200.5 kB / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4132, allocations: 0 / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4132, allocations: 0 / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-06/0.4132, allocations: 0 / 1.075 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008642/0.414, allocations: 0.589 MB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.4141, allocations: 8.188 kB / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001822/0.4143, allocations: 31.98 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.4143, allocations: 7.875 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.4143, allocations: 8 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.4143, allocations: 7.938 kB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.4143, allocations: 3.984 kB / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006269/0.415, allocations: 376.3 kB / 1.076 GB, free: 2.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.415, allocations: 104.8 kB / 1.076 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.4151, allocations: 4 kB / 1.076 GB, free: 2.117 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.4152, allocations: 24.11 kB / 1.076 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.809e-05/0.4153, allocations: 19.97 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.4153, allocations: 11.98 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.125e-05/0.4154, allocations: 119.4 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4154, allocations: 3.938 kB / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000271/0.4157, allocations: 35.91 kB / 1.076 GB, free: 1.91 MB / 0.8262 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.0002043/0.4159, allocations: 111.7 kB / 1.076 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004486/0.4164, allocations: 172.9 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4164, allocations: 0 / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.4167, allocations: 83.89 kB / 1.076 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.417, allocations: 28.42 kB / 1.077 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007175/0.4178, allocations: 372.6 kB / 1.077 GB, free: 1.109 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.4181, allocations: 0.7321 MB / 1.078 GB, free: 356 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.245e-05/0.4182, allocations: 13.42 kB / 1.078 GB, free: 344 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.915e-05/0.4182, allocations: 23.44 kB / 1.078 GB, free: 320 kB / 0.8262 GB Notification: Performance of SimCode: time 4.61e-07/0.4182, allocations: 7.938 kB / 1.078 GB, free: 312 kB / 0.8262 GB Notification: Performance of Templates: time 0.005507/0.4238, allocations: 1.754 MB / 1.079 GB, free: 14.55 MB / 0.8419 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