Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00754/0.00754, allocations: 96.95 kB / 15.73 MB, free: 6.039 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.001705/0.001705, allocations: 200.1 kB / 16.68 MB, free: 5.969 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.495/1.495, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.606/2.606, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001502, allocations: 68.98 kB / 0.9509 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3895, allocations: 140.4 MB / 1.088 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002848/0.3924, allocations: 1.021 MB / 1.089 GB, free: 408 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002132/0.3945, allocations: 1.305 MB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.3947, allocations: 4 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.661e-05/0.3948, allocations: 19.73 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002389/0.3951, allocations: 39.72 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009489/0.396, allocations: 264.7 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005168/0.3966, allocations: 343.4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.3967, allocations: 45.66 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000262/0.397, allocations: 127.7 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.3973, allocations: 123.5 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.804e-05/0.3974, allocations: 32 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.3975, allocations: 43.98 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.3975, allocations: 39.89 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.3977, allocations: 115.5 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.3982, allocations: 342.8 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.3982, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3982, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.038e-05/0.3982, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001152/0.3994, allocations: 0.576 MB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3994, allocations: 11.97 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.3996, allocations: 28.84 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008653/0.4004, allocations: 319.8 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.4005, allocations: 12.38 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.4005, allocations: 12.38 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.4009, allocations: 128.8 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.4009, allocations: 3.938 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.4009, allocations: 4 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.4009, allocations: 8 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003046/0.4013, allocations: 75.88 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009991/0.4023, allocations: 0.6413 MB / 1.094 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004023/0.4027, allocations: 139.9 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.4028, allocations: 50.64 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.475e-05/0.4029, allocations: 7.984 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/0.4033, allocations: 141.8 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.764e-06/0.4033, allocations: 0 / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006222/0.4039, allocations: 209.4 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.356e-05/0.404, allocations: 106.9 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.4042, allocations: 198.5 kB / 1.094 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.824e-05/0.4043, allocations: 37.7 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.841e-05/0.4044, allocations: 124.5 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.4044, allocations: 39.69 kB / 1.095 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.4046, allocations: 65.69 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.4047, allocations: 330.8 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.405, allocations: 91.94 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/0.4052, allocations: 158 kB / 1.095 GB, free: 9.77 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/0.4056, allocations: 229.2 kB / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4057, allocations: 0 / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006938/0.4064, allocations: 353.4 kB / 1.096 GB, free: 9.148 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.609e-05/0.4064, allocations: 67.39 kB / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.4064, allocations: 0 / 1.096 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.4065, allocations: 4 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.4066, allocations: 19.92 kB / 1.096 GB, free: 9.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.4066, allocations: 12.06 kB / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.407, allocations: 71.81 kB / 1.096 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.4071, allocations: 15.98 kB / 1.096 GB, free: 8.949 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001613/0.4072, allocations: 142.8 kB / 1.096 GB, free: 8.801 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.4073, allocations: 19.91 kB / 1.096 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.4076, allocations: 90.64 kB / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.4076, allocations: 0 / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.4076, allocations: 3.938 kB / 1.096 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4076, allocations: 11.92 kB / 1.096 GB, free: 8.676 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002138/0.4078, allocations: 233.5 kB / 1.096 GB, free: 8.398 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.4078, allocations: 3.984 kB / 1.096 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.464e-05/0.4079, allocations: 19.94 kB / 1.096 GB, free: 8.375 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4079, allocations: 3.938 kB / 1.096 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.408, allocations: 11.98 kB / 1.096 GB, free: 8.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.408, allocations: 0 / 1.096 GB, free: 8.359 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.408, allocations: 3.938 kB / 1.096 GB, free: 8.355 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003705/0.4084, allocations: 201.8 kB / 1.097 GB, free: 8.137 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.766e-05/0.4084, allocations: 93.02 kB / 1.097 GB, free: 8.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.4085, allocations: 7.984 kB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.4086, allocations: 11.98 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.399e-05/0.4087, allocations: 27.91 kB / 1.097 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.4087, allocations: 11.98 kB / 1.097 GB, free: 7.969 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001157/0.4088, allocations: 140.2 kB / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.3e-07/0.4088, allocations: 0 / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003034/0.4091, allocations: 44 kB / 1.097 GB, free: 7.789 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002424/0.4094, allocations: 111.2 kB / 1.097 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006229/0.41, allocations: 318.6 kB / 1.097 GB, free: 7.332 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.4101, allocations: 0 / 1.097 GB, free: 7.332 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.4102, allocations: 68.66 kB / 1.097 GB, free: 7.266 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.4106, allocations: 42.19 kB / 1.097 GB, free: 7.227 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006246/0.4112, allocations: 292.3 kB / 1.098 GB, free: 6.91 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.4116, allocations: 0.7203 MB / 1.098 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.4117, allocations: 25.53 kB / 1.098 GB, free: 6.137 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.4117, allocations: 23.42 kB / 1.098 GB, free: 6.113 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.4118, allocations: 3.938 kB / 1.098 GB, free: 6.109 MB / 0.8575 GB Notification: Performance of Templates: time 0.007383/0.4191, allocations: 3.283 MB / 1.102 GB, free: 2.859 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches