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.009021/0.009021, allocations: 101.1 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.001987/0.001987, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.91 kB / 1.054 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.403, allocations: 157.4 MB / 1.208 GB, free: 9.574 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002086/0.4052, allocations: 0.8515 MB / 1.209 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.4064, allocations: 0.8701 MB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.41e-05/0.4064, allocations: 0 / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.638e-05/0.4065, allocations: 11.81 kB / 1.209 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.4066, allocations: 27.78 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.4069, allocations: 35.95 kB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.407, allocations: 119.6 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.4072, allocations: 29.09 kB / 1.21 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.4073, allocations: 47.86 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001042/0.4074, allocations: 59.73 kB / 1.21 GB, free: 7.516 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.4075, allocations: 12 kB / 1.21 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.893e-05/0.4075, allocations: 8 kB / 1.21 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.725e-05/0.4075, allocations: 19.92 kB / 1.21 GB, free: 7.477 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.4076, allocations: 55.7 kB / 1.21 GB, free: 7.422 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.4078, allocations: 123.4 kB / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.4078, allocations: 0 / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.655e-06/0.4078, allocations: 0 / 1.21 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.4078, allocations: 0 / 1.21 GB, free: 7.301 MB / 0.9669 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.0007503/0.4086, allocations: 442.9 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.4086, allocations: 12.62 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.568e-05/0.4087, allocations: 12.75 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005179/0.4092, allocations: 252.1 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.4092, allocations: 8.375 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.4093, allocations: 4.375 kB / 1.211 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002775/0.4095, allocations: 120.7 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.4096, allocations: 7.875 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.095e-05/0.4096, allocations: 8 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.4096, allocations: 4 kB / 1.211 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.4099, allocations: 83.83 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006739/0.4106, allocations: 0.4932 MB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.4108, allocations: 107.8 kB / 1.211 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.411, allocations: 58.61 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.411, allocations: 3.938 kB / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.4111, allocations: 38.56 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.4111, allocations: 0 / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0005965/0.4117, allocations: 157.4 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.4117, allocations: 110.8 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.4119, allocations: 157 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.4119, allocations: 29.7 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.418e-05/0.412, allocations: 112.2 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.412, allocations: 27.72 kB / 1.212 GB, free: 4.824 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/0.4121, allocations: 29.95 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4122, allocations: 330.8 kB / 1.213 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/0.4124, allocations: 35.97 kB / 1.213 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.4126, allocations: 85.05 kB / 1.213 GB, free: 4.32 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.4128, allocations: 98.45 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4128, allocations: 0 / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003512/0.4132, allocations: 141.5 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.4132, allocations: 9.719 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4132, allocations: 0 / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.4133, allocations: 4 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.4134, allocations: 15.98 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.4134, allocations: 0 / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.4136, allocations: 19.97 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.4136, allocations: 0 / 1.213 GB, free: 4.023 MB / 0.9669 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.0001593/0.4138, allocations: 133.7 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.778e-05/0.4138, allocations: 11.81 kB / 1.213 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003017/0.4141, allocations: 86.22 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4142, allocations: 48 / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.4142, allocations: 7.984 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.4142, allocations: 0 / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003674/0.4146, allocations: 205.5 kB / 1.213 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4146, allocations: 0 / 1.213 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.4147, allocations: 23.92 kB / 1.213 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.76e-06/0.4147, allocations: 4 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.4147, allocations: 7.922 kB / 1.213 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4147, allocations: 0 / 1.213 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.4147, allocations: 7.938 kB / 1.213 GB, free: 3.473 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.4152, allocations: 365.9 kB / 1.214 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.248e-05/0.4153, allocations: 92.86 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.4154, allocations: 4 kB / 1.214 GB, free: 2.984 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.4156, allocations: 20.03 kB / 1.214 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.4157, allocations: 27.91 kB / 1.214 GB, free: 2.938 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.4157, allocations: 4 kB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.474e-05/0.4158, allocations: 118 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4158, allocations: 0 / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003265/0.4161, allocations: 16 kB / 1.214 GB, free: 2.805 MB / 0.9669 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.0002704/0.4164, allocations: 111.2 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000437/0.4169, allocations: 103.8 kB / 1.214 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.4169, allocations: 0 / 1.214 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000183/0.4171, allocations: 47.91 kB / 1.214 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/0.4176, allocations: 13.03 kB / 1.214 GB, free: 2.527 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005886/0.4182, allocations: 199.5 kB / 1.214 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.4187, allocations: 0.7042 MB / 1.215 GB, free: 1.566 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.838e-05/0.4188, allocations: 16.64 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.054e-05/0.4188, allocations: 15.44 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of SimCode: time 6.42e-07/0.4188, allocations: 0 / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of Templates: time 0.004936/0.4238, allocations: 1.363 MB / 1.216 GB, free: 184 kB / 0.9669 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