Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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_11_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_11_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.001574/0.001574, allocations: 107.6 kB / 16.27 MB, free: 6.41 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.001589/0.00159, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.479/1.479, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.8/2.8, allocations: 469.8 MB / 0.743 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 68.11 kB / 0.9092 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.358, allocations: 159.2 MB / 1.065 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.0022/0.3603, allocations: 0.8458 MB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.3614, allocations: 0.8857 MB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.665e-05/0.3615, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.687e-05/0.3615, allocations: 7.875 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 9.65e-05/0.3616, allocations: 15.81 kB / 1.066 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002184/0.3618, allocations: 51.86 kB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.362, allocations: 111.7 kB / 1.067 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.3622, allocations: 21.09 kB / 1.067 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.3624, allocations: 55.77 kB / 1.067 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.3625, allocations: 55.77 kB / 1.067 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.3625, allocations: 11.98 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.69e-05/0.3626, allocations: 12 kB / 1.067 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.463e-05/0.3626, allocations: 31.84 kB / 1.067 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.642e-05/0.3627, allocations: 43.73 kB / 1.067 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.3629, allocations: 115.8 kB / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3629, allocations: 0 / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3629, allocations: 0 / 1.067 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.3629, allocations: 0 / 1.067 GB, free: 12.44 MB / 0.8419 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.0008893/0.3638, allocations: 450.9 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.3639, allocations: 8.031 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.3639, allocations: 12.84 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005785/0.3645, allocations: 249.4 kB / 1.068 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.3646, allocations: 384 / 1.068 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.3646, allocations: 16.36 kB / 1.068 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.365, allocations: 116.7 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.365, allocations: 3.938 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.365, allocations: 0 / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.365, allocations: 4 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002944/0.3653, allocations: 79.86 kB / 1.068 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006883/0.366, allocations: 0.4932 MB / 1.068 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.3663, allocations: 111.8 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001678/0.3665, allocations: 62.55 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.3665, allocations: 4 kB / 1.068 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.3665, allocations: 34.56 kB / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.3665, allocations: 0 / 1.068 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0006132/0.3672, allocations: 161.4 kB / 1.069 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.675e-05/0.3672, allocations: 114.8 kB / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.3674, allocations: 145.1 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.3674, allocations: 33.7 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.3675, allocations: 104.3 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.3676, allocations: 35.52 kB / 1.069 GB, free: 9.98 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.223e-05/0.3676, allocations: 25.88 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3678, allocations: 330.8 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3679, allocations: 39.95 kB / 1.069 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.3681, allocations: 77.12 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002912/0.3684, allocations: 102.4 kB / 1.07 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3684, allocations: 0 / 1.07 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003617/0.3688, allocations: 145.6 kB / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3688, allocations: 10.5 kB / 1.07 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.3688, allocations: 0 / 1.07 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.3689, allocations: 4 kB / 1.07 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.369, allocations: 19.97 kB / 1.07 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.369, allocations: 0 / 1.07 GB, free: 9.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.3692, allocations: 15.98 kB / 1.07 GB, free: 9.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.3692, allocations: 4 kB / 1.07 GB, free: 9.176 MB / 0.8419 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.000118/0.3693, allocations: 135 kB / 1.07 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.576e-05/0.3694, allocations: 7.906 kB / 1.07 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.3696, allocations: 89.89 kB / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3697, allocations: 0 / 1.07 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.3697, allocations: 4 kB / 1.07 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3697, allocations: 3.984 kB / 1.07 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003246/0.37, allocations: 205.5 kB / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.37, allocations: 0 / 1.07 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.3701, allocations: 23.92 kB / 1.07 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3701, allocations: 4 kB / 1.07 GB, free: 8.645 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.3702, allocations: 3.984 kB / 1.07 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3702, allocations: 0 / 1.07 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3702, allocations: 4 kB / 1.07 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004475/0.3706, allocations: 365.9 kB / 1.071 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.3707, allocations: 92.89 kB / 1.071 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.056e-05/0.3707, allocations: 7.984 kB / 1.071 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.3709, allocations: 12.05 kB / 1.071 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.972e-05/0.371, allocations: 31.91 kB / 1.071 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.371, allocations: 3.984 kB / 1.071 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.821e-05/0.3711, allocations: 122 kB / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3711, allocations: 0 / 1.071 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003233/0.3715, allocations: 12 kB / 1.071 GB, free: 7.969 MB / 0.8419 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.0001666/0.3716, allocations: 111.2 kB / 1.071 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004001/0.3721, allocations: 99.86 kB / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3721, allocations: 0 / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.3722, allocations: 51.91 kB / 1.071 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.3727, allocations: 19.83 kB / 1.071 GB, free: 7.684 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004657/0.3732, allocations: 233.5 kB / 1.071 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.3735, allocations: 0.6963 MB / 1.072 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.353e-05/0.3736, allocations: 27.42 kB / 1.072 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.3736, allocations: 4 kB / 1.072 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of Templates: time 0.003472/0.3771, allocations: 1.49 MB / 1.073 GB, free: 5.172 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches