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.001875/0.001876, allocations: 108.6 kB / 15.99 MB, free: 5.91 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.001931/0.001931, allocations: 193.7 kB / 16.91 MB, free: 5.754 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.365/1.365, allocations: 222.9 MB / 240.6 MB, free: 13.5 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.559/2.559, allocations: 469.8 MB / 0.7427 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 68.34 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3165, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002108/0.3187, allocations: 0.905 MB / 1.065 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.00112/0.3198, allocations: 0.8857 MB / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.481e-05/0.3199, allocations: 0 / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.769e-05/0.3199, allocations: 3.938 kB / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.333e-05/0.32, allocations: 11.88 kB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.3202, allocations: 43.94 kB / 1.066 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000134/0.3203, allocations: 111.7 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.3204, allocations: 25.09 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.3206, allocations: 51.78 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.3207, allocations: 55.75 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.3207, allocations: 12 kB / 1.066 GB, free: 13 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.099e-05/0.3207, allocations: 15.94 kB / 1.066 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3e-05/0.3208, allocations: 23.91 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.589e-05/0.3208, allocations: 47.73 kB / 1.066 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.321, allocations: 88.05 kB / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.321, allocations: 0 / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.282e-06/0.321, allocations: 0 / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.321, allocations: 0 / 1.066 GB, free: 12.83 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.0006821/0.3217, allocations: 442.9 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.3217, allocations: 12.03 kB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.3218, allocations: 8.844 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004894/0.3222, allocations: 258 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.3223, allocations: 8.375 kB / 1.067 GB, free: 12.03 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.3223, allocations: 8.375 kB / 1.067 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.3226, allocations: 116.8 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.3226, allocations: 7.875 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.3226, allocations: 4 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.3226, allocations: 3.984 kB / 1.067 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002694/0.3229, allocations: 83.86 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000647/0.3236, allocations: 0.497 MB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.3238, allocations: 111.8 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.324, allocations: 54.61 kB / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.324, allocations: 0 / 1.068 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.3241, allocations: 34.56 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 8.91e-07/0.3241, allocations: 0 / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0005795/0.3247, allocations: 173.3 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.845e-05/0.3247, allocations: 102.8 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001234/0.3249, allocations: 144.9 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/0.3249, allocations: 33.7 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.325, allocations: 104.3 kB / 1.068 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.325, allocations: 23.66 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.3251, allocations: 37.89 kB / 1.069 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.3252, allocations: 326.8 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.3254, allocations: 39.97 kB / 1.069 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.3256, allocations: 81.11 kB / 1.069 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.3258, allocations: 90.45 kB / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3259, allocations: 0 / 1.069 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000354/0.3262, allocations: 145.4 kB / 1.069 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3262, allocations: 8 kB / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3262, allocations: 0 / 1.069 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3263, allocations: 4 kB / 1.069 GB, free: 9.613 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3264, allocations: 15.98 kB / 1.069 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.3264, allocations: 3.938 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.3265, allocations: 23.97 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.357e-06/0.3266, allocations: 0 / 1.069 GB, free: 9.57 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.0001084/0.3267, allocations: 131.5 kB / 1.069 GB, free: 9.434 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.031e-05/0.3267, allocations: 7.906 kB / 1.069 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.327, allocations: 90.2 kB / 1.069 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.327, allocations: 4 kB / 1.069 GB, free: 9.32 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.327, allocations: 3.938 kB / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.327, allocations: 0 / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003181/0.3274, allocations: 209.5 kB / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3274, allocations: 0 / 1.07 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.3275, allocations: 24.05 kB / 1.07 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3275, allocations: 4 kB / 1.07 GB, free: 9.035 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.3275, allocations: 4 kB / 1.07 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.3275, allocations: 3.984 kB / 1.07 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3276, allocations: 7.938 kB / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004397/0.328, allocations: 369.9 kB / 1.07 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.3281, allocations: 88.95 kB / 1.07 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.3281, allocations: 0 / 1.07 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.3283, allocations: 23.91 kB / 1.07 GB, free: 8.512 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.128e-05/0.3284, allocations: 23.97 kB / 1.07 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.3284, allocations: 4 kB / 1.07 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.664e-05/0.3285, allocations: 115.2 kB / 1.07 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3285, allocations: 0 / 1.07 GB, free: 8.371 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003062/0.3288, allocations: 20 kB / 1.07 GB, free: 8.352 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.0001364/0.3289, allocations: 103.2 kB / 1.07 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003639/0.3293, allocations: 99.86 kB / 1.071 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3293, allocations: 0 / 1.071 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.3295, allocations: 51.91 kB / 1.071 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.3299, allocations: 15.91 kB / 1.071 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/0.3304, allocations: 275.1 kB / 1.071 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.3307, allocations: 0.6963 MB / 1.072 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.767e-05/0.3308, allocations: 23.44 kB / 1.072 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.3308, allocations: 0 / 1.072 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of Templates: time 0.003123/0.3339, allocations: 1.5 MB / 1.073 GB, free: 5.531 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