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.00719/0.00719, allocations: 101.5 kB / 15.73 MB, free: 6.012 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.00196/0.00196, allocations: 196.9 kB / 16.67 MB, free: 5.949 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.727/1.727, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.686/2.686, allocations: 390.2 MB / 0.6648 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.77 kB / 0.9509 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3931/0.3943, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002395/0.3968, allocations: 1.024 MB / 1.089 GB, free: 452 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001918/0.3987, allocations: 1.317 MB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.73e-05/0.3988, allocations: 0 / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.449e-05/0.3989, allocations: 15.8 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.399, allocations: 31.66 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007964/0.3998, allocations: 271.9 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003698/0.4002, allocations: 339.3 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001525/0.4003, allocations: 45.66 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/0.4005, allocations: 127.7 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001928/0.4007, allocations: 119.5 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.802e-05/0.4008, allocations: 32 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.4009, allocations: 43.98 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.341e-05/0.401, allocations: 43.83 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.4011, allocations: 119.5 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.4016, allocations: 339 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4016, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/0.4016, allocations: 3.938 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.4016, allocations: 0 / 1.092 GB, free: 13.61 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.001019/0.4027, allocations: 0.5644 MB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.4027, allocations: 12.02 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.54e-05/0.4028, allocations: 28.66 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007132/0.4035, allocations: 303.8 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.4036, allocations: 12.38 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.4036, allocations: 20.38 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002898/0.4039, allocations: 136.7 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.4039, allocations: 3.938 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.404, allocations: 7.938 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.404, allocations: 4 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00022/0.4042, allocations: 67.94 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007981/0.405, allocations: 0.6413 MB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.4054, allocations: 139.8 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.4056, allocations: 54.7 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.4056, allocations: 4 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.4059, allocations: 145.8 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.4059, allocations: 0 / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0005613/0.4064, allocations: 209.8 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.4065, allocations: 102.9 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.4067, allocations: 194.5 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.4068, allocations: 41.69 kB / 1.094 GB, free: 10.67 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.809e-05/0.4069, allocations: 124.5 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.208e-05/0.4069, allocations: 39.45 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.407, allocations: 61.69 kB / 1.095 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4071, allocations: 330.8 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.4074, allocations: 91.88 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002579/0.4076, allocations: 164.5 kB / 1.095 GB, free: 9.828 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.408, allocations: 225.3 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.408, allocations: 0 / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006396/0.4087, allocations: 352.6 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.603e-05/0.4087, allocations: 71.39 kB / 1.096 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.4087, allocations: 4.125 kB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.4088, allocations: 4 kB / 1.096 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.944e-05/0.4089, allocations: 15.98 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.4089, allocations: 7.875 kB / 1.096 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003813/0.4093, allocations: 71.77 kB / 1.096 GB, free: 9.027 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.4093, allocations: 15.98 kB / 1.096 GB, free: 9.012 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.0001525/0.4095, allocations: 138.8 kB / 1.096 GB, free: 8.867 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.4095, allocations: 15.81 kB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002607/0.4098, allocations: 98.52 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.4098, allocations: 4 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.4098, allocations: 3.938 kB / 1.096 GB, free: 8.746 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.4098, allocations: 7.938 kB / 1.096 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000212/0.41, allocations: 237.5 kB / 1.096 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.4101, allocations: 4 kB / 1.096 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.984e-05/0.4101, allocations: 11.98 kB / 1.096 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.4101, allocations: 4 kB / 1.096 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.4102, allocations: 8.297 kB / 1.096 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.4102, allocations: 7.938 kB / 1.096 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.4102, allocations: 7.938 kB / 1.096 GB, free: 8.414 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003476/0.4105, allocations: 190.6 kB / 1.097 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.4106, allocations: 88.92 kB / 1.097 GB, free: 8.098 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/0.4106, allocations: 11.98 kB / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.4108, allocations: 7.984 kB / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.824e-05/0.4108, allocations: 27.91 kB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.4109, allocations: 11.98 kB / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001065/0.411, allocations: 144.2 kB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.044e-06/0.411, allocations: 0 / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002737/0.4113, allocations: 55.78 kB / 1.097 GB, free: 7.844 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.0002021/0.4115, allocations: 109 kB / 1.097 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005601/0.412, allocations: 318.6 kB / 1.097 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4121, allocations: 0 / 1.097 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.4122, allocations: 67.91 kB / 1.097 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.4125, allocations: 33.34 kB / 1.097 GB, free: 7.293 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004924/0.413, allocations: 293 kB / 1.098 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.4133, allocations: 0.7242 MB / 1.098 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.973e-05/0.4134, allocations: 29.55 kB / 1.098 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.058e-05/0.4135, allocations: 23.42 kB / 1.098 GB, free: 6.172 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.4135, allocations: 0 / 1.098 GB, free: 6.172 MB / 0.8575 GB Notification: Performance of Templates: time 0.006778/0.4203, allocations: 3.364 MB / 1.102 GB, free: 2.844 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