Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.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.Tan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan1.u|tan1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Tan,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan1.u|tan1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009244/0.0009245, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009111/0.009112, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.8/2.8, allocations: 462.7 MB / 0.7364 GB, free: 224 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004043/0.0004045, allocations: 18.64 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3982, allocations: 159.6 MB / 1.059 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Tan): time 0.001101/0.3993, allocations: 400.6 kB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.4006, allocations: 0.8001 MB / 1.06 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.542e-05/0.4007, allocations: 4 kB / 1.06 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.4007, allocations: 4 kB / 1.06 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.258e-05/0.4008, allocations: 3.984 kB / 1.06 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001591/0.401, allocations: 11.92 kB / 1.06 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.836e-05/0.401, allocations: 19.94 kB / 1.06 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.4012, allocations: 0 / 1.06 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.169e-05/0.4012, allocations: 15.92 kB / 1.06 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.707e-05/0.4013, allocations: 11.92 kB / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.4013, allocations: 0 / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.001e-05/0.4014, allocations: 0 / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.669e-05/0.4014, allocations: 8 kB / 1.06 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.4014, allocations: 33.64 kB / 1.06 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.826e-05/0.4015, allocations: 23.95 kB / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4015, allocations: 0 / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.673e-06/0.4016, allocations: 0 / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.4016, allocations: 0 / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005002/0.4021, allocations: 339.7 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4021, allocations: 12.03 kB / 1.06 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.17e-05/0.4022, allocations: 8.938 kB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.4023, allocations: 172.2 kB / 1.06 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.4023, allocations: 8.375 kB / 1.061 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.4024, allocations: 4.312 kB / 1.061 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.4026, allocations: 54.23 kB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.4026, allocations: 192 / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/0.4026, allocations: 3.938 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4026, allocations: 4 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000182/0.4028, allocations: 47.89 kB / 1.061 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003804/0.4032, allocations: 245 kB / 1.061 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.4034, allocations: 50.5 kB / 1.061 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.4035, allocations: 20.91 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.4035, allocations: 4 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001572/0.4037, allocations: 46.48 kB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.382e-06/0.4037, allocations: 0 / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003892/0.4041, allocations: 89.75 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.4041, allocations: 55.39 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.4042, allocations: 101.9 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.4043, allocations: 25.7 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.4043, allocations: 80.14 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.4043, allocations: 7.906 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.285e-05/0.4044, allocations: 9.719 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4045, allocations: 318.8 kB / 1.062 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.975e-05/0.4046, allocations: 24.02 kB / 1.062 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.662e-05/0.4047, allocations: 19.98 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.4049, allocations: 56.81 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4049, allocations: 0 / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000197/0.4051, allocations: 73.61 kB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.4051, allocations: 9.594 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.4051, allocations: 4 kB / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.4051, allocations: 0 / 1.062 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-05/0.4052, allocations: 11.98 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.4053, allocations: 0 / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.359e-05/0.4053, allocations: 11.98 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.4053, allocations: 4 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.319e-05/0.4054, allocations: 113.8 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.4055, allocations: 3.906 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002424/0.4057, allocations: 84.72 kB / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.4057, allocations: 0 / 1.062 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.4057, allocations: 7.969 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4057, allocations: 7.984 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.4059, allocations: 157.6 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.4059, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.156e-05/0.406, allocations: 15.92 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.406, allocations: 0 / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.406, allocations: 0 / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.406, allocations: 0 / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.406, allocations: 0 / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003687/0.4064, allocations: 183.4 kB / 1.062 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.4065, allocations: 77.11 kB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.4065, allocations: 0 / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.88e-05/0.4066, allocations: 20.02 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.4066, allocations: 0 / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.4066, allocations: 0 / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.577e-05/0.4066, allocations: 79.28 kB / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4067, allocations: 0 / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002043/0.4069, allocations: 7.938 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001818/0.407, allocations: 103.2 kB / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002217/0.4073, allocations: 47.97 kB / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4073, allocations: 0 / 1.063 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.525e-05/0.4074, allocations: 31.97 kB / 1.063 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.4077, allocations: 11.94 kB / 1.063 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003144/0.408, allocations: 114.6 kB / 1.063 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.4084, allocations: 0.677 MB / 1.064 GB, free: 56 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.613e-05/0.4085, allocations: 4 kB / 1.064 GB, free: 52 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.944e-05/0.4086, allocations: 11.38 kB / 1.064 GB, free: 40 kB / 0.8106 GB Notification: Performance of SimCode: time 5.51e-07/0.4086, allocations: 4.062 kB / 1.064 GB, free: 36 kB / 0.8106 GB Notification: Performance of Templates: time 0.002832/0.4114, allocations: 366 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Tan.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches