Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 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.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001655/0.001655, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.951/2.951, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004035/0.0004037, allocations: 15.03 kB / 0.9022 GB, free: 36.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4112, allocations: 159.6 MB / 1.058 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001029/0.4123, allocations: 0.5393 MB / 1.059 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009499/0.4132, allocations: 0.878 MB / 1.059 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.4133, allocations: 0 / 1.059 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.743e-05/0.4133, allocations: 7.922 kB / 1.059 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.595e-05/0.4134, allocations: 11.88 kB / 1.059 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001828/0.4136, allocations: 27.95 kB / 1.059 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.4138, allocations: 103.6 kB / 1.06 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001194/0.4139, allocations: 25.11 kB / 1.06 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.414, allocations: 43.84 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.868e-05/0.4141, allocations: 47.8 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.4142, allocations: 4 kB / 1.06 GB, free: 3.598 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.699e-05/0.4142, allocations: 4 kB / 1.06 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.4142, allocations: 19.92 kB / 1.06 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.048e-05/0.4143, allocations: 45.64 kB / 1.06 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.4144, allocations: 80.03 kB / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.4144, allocations: 0 / 1.06 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.234e-06/0.4144, allocations: 3.938 kB / 1.06 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.4144, allocations: 0 / 1.06 GB, free: 3.441 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006936/0.4151, allocations: 442.8 kB / 1.06 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4152, allocations: 8.031 kB / 1.06 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.4152, allocations: 11.91 kB / 1.06 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.4157, allocations: 266.6 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.4158, allocations: 11.95 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.4158, allocations: 12 kB / 1.061 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.4161, allocations: 122.8 kB / 1.061 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.4161, allocations: 3.938 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.4161, allocations: 11.92 kB / 1.061 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.4161, allocations: 4 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.4164, allocations: 91.92 kB / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.417, allocations: 0.4932 MB / 1.061 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.4172, allocations: 119.8 kB / 1.061 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.4174, allocations: 66.61 kB / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.4174, allocations: 0 / 1.061 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.4175, allocations: 46.48 kB / 1.061 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.4175, allocations: 0 / 1.061 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005602/0.418, allocations: 185.6 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.4181, allocations: 102.8 kB / 1.062 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.4182, allocations: 148.5 kB / 1.062 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.551e-05/0.4182, allocations: 33.7 kB / 1.062 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.103e-05/0.4183, allocations: 104.3 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.4183, allocations: 27.77 kB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-06/0.4184, allocations: 0 / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4185, allocations: 330.8 kB / 1.062 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.4186, allocations: 48 kB / 1.062 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.4188, allocations: 93.05 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.4189, allocations: 48.02 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.419, allocations: 7.938 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003431/0.4193, allocations: 153.4 kB / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4193, allocations: 8 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4193, allocations: 4 kB / 1.063 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.4194, allocations: 3.984 kB / 1.063 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.4195, allocations: 23.98 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.4195, allocations: 3.938 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.4196, allocations: 19.92 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.4197, allocations: 4 kB / 1.063 GB, free: 144 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.hysteresis.y,hysteresis.y,$PRE.hysteresis1.y,hysteresis1.y,$PRE.hysteresis2.y,hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.4198, allocations: 133.8 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.54e-05/0.4198, allocations: 8.078 kB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00025/0.4201, allocations: 94.22 kB / 1.063 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.4201, allocations: 4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4201, allocations: 4 kB / 1.063 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4201, allocations: 7.969 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.4204, allocations: 201.3 kB / 1.063 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4204, allocations: 4.062 kB / 1.063 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.4205, allocations: 27.97 kB / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.4206, allocations: 0 / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.4206, allocations: 0 / 1.063 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.4206, allocations: 4 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4206, allocations: 4 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004065/0.421, allocations: 397.8 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.421, allocations: 88.95 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.4211, allocations: 4 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.4213, allocations: 15.98 kB / 1.064 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.4214, allocations: 35.94 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.4214, allocations: 0 / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.971e-05/0.4215, allocations: 114.1 kB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4215, allocations: 0 / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003088/0.4218, allocations: 16 kB / 1.064 GB, free: 14.9 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001438/0.4219, allocations: 99.25 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003606/0.4223, allocations: 115.9 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4223, allocations: 0 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.4225, allocations: 63.91 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.4229, allocations: 15.94 kB / 1.064 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004436/0.4234, allocations: 255.1 kB / 1.064 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4236, allocations: 0.7004 MB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.668e-05/0.4237, allocations: 12.66 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.887e-05/0.4238, allocations: 23.42 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.4238, allocations: 0 / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of Templates: time 0.003467/0.4273, allocations: 1.07 MB / 1.066 GB, free: 12.49 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches