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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001488/0.001488, allocations: 106.6 kB / 16.35 MB, free: 6.289 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.001617/0.001617, allocations: 196.2 kB / 17.3 MB, free: 5.863 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.458/1.458, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.576/2.576, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.88 kB / 0.8774 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3959, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002797/0.3988, allocations: 1.094 MB / 1.028 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001294/0.4001, allocations: 0.9947 MB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.4002, allocations: 4 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.4003, allocations: 15.75 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.078e-05/0.4004, allocations: 27.78 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.4007, allocations: 74.98 kB / 1.029 GB, free: 15.85 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.4009, allocations: 176 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.4011, allocations: 80.05 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.288e-05/0.4012, allocations: 71.75 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.4013, allocations: 79.56 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.548e-05/0.4013, allocations: 16 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.424e-05/0.4014, allocations: 20 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.994e-05/0.4014, allocations: 47.83 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.177e-05/0.4015, allocations: 67.59 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.4017, allocations: 195.2 kB / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4017, allocations: 0 / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4017, allocations: 0 / 1.03 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.4017, allocations: 0 / 1.03 GB, free: 15.11 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0008238/0.4026, allocations: 474.9 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.4026, allocations: 8.031 kB / 1.03 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.494e-05/0.4027, allocations: 24.66 kB / 1.03 GB, free: 14.56 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.403, allocations: 220.6 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.403, allocations: 12.38 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.4031, allocations: 24.28 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000327/0.4034, allocations: 150.2 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.4034, allocations: 4 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.4035, allocations: 4 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.4035, allocations: 4 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002598/0.4037, allocations: 109.1 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.4048, allocations: 0.5274 MB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.4052, allocations: 138.7 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.4054, allocations: 96.69 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.4054, allocations: 0 / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.4056, allocations: 125.2 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.252e-06/0.4056, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0005193/0.4062, allocations: 217.4 kB / 1.032 GB, free: 12.83 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.4062, allocations: 59.39 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001491/0.4064, allocations: 160.2 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.4064, allocations: 33.7 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.4065, allocations: 116.4 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.4065, allocations: 63.09 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.4066, allocations: 45.64 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.4067, allocations: 326.8 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001883/0.4069, allocations: 67.97 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.4071, allocations: 94.41 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003144/0.4075, allocations: 139.5 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4075, allocations: 4 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004574/0.4079, allocations: 215.4 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.408, allocations: 8 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.408, allocations: 0 / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.408, allocations: 4 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.4082, allocations: 39.97 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.4082, allocations: 0 / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.4084, allocations: 31.8 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.4084, allocations: 11.98 kB / 1.033 GB, free: 11.38 MB / 0.8106 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.0001213/0.4085, allocations: 133.7 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.255e-05/0.4085, allocations: 11.81 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004134/0.4089, allocations: 204.5 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.409, allocations: 0 / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.409, allocations: 0 / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.409, allocations: 4 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007747/0.4098, allocations: 0.5851 MB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4098, allocations: 3.984 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.4099, allocations: 31.98 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.41, allocations: 3.938 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.41, allocations: 8 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.41, allocations: 7.938 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.41, allocations: 0 / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00056/0.4106, allocations: 380.4 kB / 1.034 GB, free: 9.895 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.684e-05/0.4106, allocations: 104.8 kB / 1.034 GB, free: 9.773 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.628e-05/0.4107, allocations: 11.94 kB / 1.034 GB, free: 9.762 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.4108, allocations: 20.02 kB / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.762e-05/0.4109, allocations: 15.98 kB / 1.034 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.4109, allocations: 11.98 kB / 1.034 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.425e-05/0.411, allocations: 118.3 kB / 1.035 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.402e-06/0.411, allocations: 0 / 1.035 GB, free: 9.602 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002641/0.4113, allocations: 35.94 kB / 1.035 GB, free: 9.566 MB / 0.8106 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.0001644/0.4114, allocations: 115.2 kB / 1.035 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004054/0.4119, allocations: 158.4 kB / 1.035 GB, free: 9.293 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4119, allocations: 4 kB / 1.035 GB, free: 9.289 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.4121, allocations: 92.2 kB / 1.035 GB, free: 9.199 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.4124, allocations: 28.05 kB / 1.035 GB, free: 9.172 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006484/0.413, allocations: 374.7 kB / 1.035 GB, free: 8.762 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.4134, allocations: 0.7204 MB / 1.036 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.685e-05/0.4134, allocations: 21.42 kB / 1.036 GB, free: 7.992 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.394e-05/0.4135, allocations: 15.44 kB / 1.036 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.4135, allocations: 0 / 1.036 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of Templates: time 0.004555/0.4181, allocations: 1.766 MB / 1.038 GB, free: 6.223 MB / 0.8106 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 -s cvode -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