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.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.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.001535/0.001535, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001722/0.001722, allocations: 190.7 kB / 16.14 MB, free: 6.645 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.374/1.374, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.759/2.759, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001522, allocations: 65.28 kB / 0.8984 GB, free: 37.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.308, allocations: 157.4 MB / 1.052 GB, free: 8.816 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00247/0.3105, allocations: 0.9167 MB / 1.053 GB, free: 7.898 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.3116, allocations: 0.8819 MB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.692e-05/0.3117, allocations: 7.938 kB / 1.054 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.464e-05/0.3117, allocations: 7.922 kB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.3118, allocations: 15.86 kB / 1.054 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.312, allocations: 31.97 kB / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001305/0.3122, allocations: 107.7 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.3123, allocations: 29.05 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.3124, allocations: 43.84 kB / 1.054 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.646e-05/0.3125, allocations: 55.73 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.3126, allocations: 8 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.985e-05/0.3126, allocations: 4 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.868e-05/0.3126, allocations: 19.92 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.321e-05/0.3127, allocations: 47.72 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.3128, allocations: 111.8 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.272e-05/0.3129, allocations: 3.984 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.41e-07/0.3129, allocations: 4 kB / 1.054 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.3129, allocations: 0 / 1.054 GB, free: 6.516 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.0006594/0.3135, allocations: 442.9 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3136, allocations: 12.03 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.334e-05/0.3136, allocations: 8.844 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004603/0.3141, allocations: 264 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.3141, allocations: 8.375 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.3141, allocations: 4.375 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002619/0.3144, allocations: 116.8 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.3144, allocations: 3.938 kB / 1.055 GB, free: 5.57 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.3145, allocations: 11.98 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.3145, allocations: 0 / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.3147, allocations: 71.88 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006052/0.3153, allocations: 0.4931 MB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/0.3156, allocations: 115.8 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.3157, allocations: 54.59 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.3158, allocations: 4 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.3158, allocations: 38.56 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.3158, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005819/0.3164, allocations: 157.4 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.3165, allocations: 107 kB / 1.056 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3166, allocations: 153 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.3166, allocations: 29.7 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.717e-05/0.3167, allocations: 108.3 kB / 1.056 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.385e-05/0.3167, allocations: 31.7 kB / 1.056 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.3168, allocations: 25.7 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3169, allocations: 330.8 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.3171, allocations: 39.97 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.3172, allocations: 88.98 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3175, allocations: 94.45 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3175, allocations: 4 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003388/0.3179, allocations: 133.5 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3179, allocations: 4.938 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.3179, allocations: 0 / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3179, allocations: 7.984 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.3181, allocations: 19.92 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3181, allocations: 4 kB / 1.057 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3182, allocations: 19.89 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.3182, allocations: 4 kB / 1.057 GB, free: 3.246 MB / 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 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.3183, allocations: 127.3 kB / 1.057 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.659e-05/0.3184, allocations: 12.23 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002588/0.3187, allocations: 93.81 kB / 1.057 GB, free: 3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3187, allocations: 4 kB / 1.057 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.3187, allocations: 4.062 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3187, allocations: 0 / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/0.319, allocations: 205.5 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.319, allocations: 0 / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.3191, allocations: 23.97 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3191, allocations: 0 / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.3192, allocations: 0 / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.3192, allocations: 4 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3192, allocations: 4 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.3196, allocations: 377.8 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.3196, allocations: 88.95 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.3197, allocations: 8 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.3199, allocations: 15.98 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.32, allocations: 19.95 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.32, allocations: 8 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.87e-05/0.3201, allocations: 111.8 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.342e-06/0.3201, allocations: 0 / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000313/0.3204, allocations: 19.94 kB / 1.058 GB, free: 2.039 MB / 0.8106 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 (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.0001677/0.3206, allocations: 107.2 kB / 1.058 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003629/0.321, allocations: 95.86 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.321, allocations: 0 / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.3211, allocations: 56.02 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.3217, allocations: 12 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004322/0.3221, allocations: 237.2 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3224, allocations: 0.7004 MB / 1.059 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.015e-05/0.3225, allocations: 20.58 kB / 1.059 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.23e-05/0.3225, allocations: 15.44 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/0.3225, allocations: 0 / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of Templates: time 0.003592/0.3261, allocations: 1.114 MB / 1.061 GB, free: 15.63 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