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.001422/0.001422, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001536/0.001536, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.256/1.256, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.498/2.498, allocations: 469.4 MB / 0.7428 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 71.89 kB / 1.066 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6816/0.6828, allocations: 159.1 MB / 1.221 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001924/0.6848, allocations: 0.8445 MB / 1.222 GB, free: 1.5 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009915/0.6858, allocations: 0.8895 MB / 1.223 GB, free: 0.5977 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.609e-05/0.6859, allocations: 3.938 kB / 1.223 GB, free: 0.5938 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.684e-05/0.6859, allocations: 7.875 kB / 1.223 GB, free: 0.5859 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.394e-05/0.686, allocations: 23.78 kB / 1.223 GB, free: 0.5625 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.6862, allocations: 39.89 kB / 1.223 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.6864, allocations: 119.7 kB / 1.223 GB, free: 416 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.6865, allocations: 21.11 kB / 1.223 GB, free: 396 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.6867, allocations: 51.78 kB / 1.223 GB, free: 344 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.819e-05/0.6868, allocations: 55.75 kB / 1.223 GB, free: 288 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.6868, allocations: 12 kB / 1.223 GB, free: 276 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 2.079e-05/0.6868, allocations: 12 kB / 1.223 GB, free: 264 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.875e-05/0.6868, allocations: 19.92 kB / 1.223 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.6869, allocations: 55.7 kB / 1.223 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.6871, allocations: 119.4 kB / 1.223 GB, free: 72 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6871, allocations: 0 / 1.223 GB, free: 72 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.072e-06/0.6871, allocations: 0 / 1.223 GB, free: 72 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.6871, allocations: 0 / 1.223 GB, free: 72 kB / 0.9356 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.0006623/0.6877, allocations: 444.8 kB / 1.224 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.6878, allocations: 8.625 kB / 1.224 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.315e-05/0.6878, allocations: 12.75 kB / 1.224 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004645/0.6883, allocations: 260.1 kB / 1.224 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.6883, allocations: 8.375 kB / 1.224 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.6884, allocations: 8.375 kB / 1.224 GB, free: 15.26 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.6886, allocations: 116.8 kB / 1.224 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.6887, allocations: 3.938 kB / 1.224 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.6887, allocations: 4 kB / 1.224 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.6887, allocations: 0 / 1.224 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.689, allocations: 79.86 kB / 1.224 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005683/0.6895, allocations: 0.4892 MB / 1.225 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.6898, allocations: 115.8 kB / 1.225 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.6899, allocations: 50.61 kB / 1.225 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.69, allocations: 4 kB / 1.225 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.69, allocations: 34.56 kB / 1.225 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.273e-06/0.69, allocations: 0 / 1.225 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.000565/0.6906, allocations: 165.6 kB / 1.225 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.6906, allocations: 106.8 kB / 1.225 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.6907, allocations: 148.1 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.6908, allocations: 29.7 kB / 1.225 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.704e-05/0.6908, allocations: 108.3 kB / 1.225 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.6909, allocations: 27.72 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.205e-05/0.6909, allocations: 29.64 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.489e-05/0.691, allocations: 326.8 kB / 1.226 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.6912, allocations: 43.97 kB / 1.226 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.6913, allocations: 85.05 kB / 1.226 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.6916, allocations: 102.7 kB / 1.226 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.6916, allocations: 4 kB / 1.226 GB, free: 13 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000344/0.692, allocations: 133.5 kB / 1.226 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.692, allocations: 4 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.692, allocations: 0 / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.692, allocations: 8 kB / 1.226 GB, free: 12.86 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.6922, allocations: 23.92 kB / 1.226 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.6922, allocations: 0 / 1.226 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.6923, allocations: 19.97 kB / 1.226 GB, free: 12.81 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.6923, allocations: 4 kB / 1.226 GB, free: 12.81 MB / 0.9512 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 8.823e-05/0.6924, allocations: 126.2 kB / 1.226 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.349e-05/0.6925, allocations: 15.81 kB / 1.226 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002442/0.6928, allocations: 89.83 kB / 1.226 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.6928, allocations: 4 kB / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6928, allocations: 0 / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6928, allocations: 0 / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.6931, allocations: 201.5 kB / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.6931, allocations: 0 / 1.226 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.6932, allocations: 19.98 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.6932, allocations: 0 / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.6932, allocations: 11.98 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.6932, allocations: 4 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.6932, allocations: 0 / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003937/0.6936, allocations: 373.8 kB / 1.227 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.6937, allocations: 88.92 kB / 1.227 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/0.6937, allocations: 4 kB / 1.227 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.6939, allocations: 23.91 kB / 1.227 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.694, allocations: 19.97 kB / 1.227 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.694, allocations: 7.984 kB / 1.227 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.228e-05/0.6941, allocations: 109 kB / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6941, allocations: 0 / 1.227 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003068/0.6944, allocations: 24 kB / 1.227 GB, free: 11.6 MB / 0.9512 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.0001248/0.6945, allocations: 111.2 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003486/0.6949, allocations: 96.09 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.6949, allocations: 0 / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/0.6951, allocations: 55.91 kB / 1.227 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.6955, allocations: 15.94 kB / 1.227 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004255/0.6959, allocations: 245.3 kB / 1.228 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.6962, allocations: 0.7042 MB / 1.228 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.499e-05/0.6963, allocations: 19.38 kB / 1.228 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of SimCode: time 3.1e-07/0.6963, allocations: 0 / 1.228 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of Templates: time 0.002867/0.6991, allocations: 1.508 MB / 1.23 GB, free: 8.785 MB / 0.9512 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/jenkins1/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