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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001219/0.001219, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001612/0.001612, allocations: 191.3 kB / 16.25 MB, free: 6.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.618/1.618, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.065/3.065, allocations: 472.6 MB / 0.7448 GB, free: 4.914 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 77.09 kB / 0.9116 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3818, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00242/0.3843, allocations: 0.8955 MB / 1.069 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3856, allocations: 0.8896 MB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.766e-05/0.3857, allocations: 4 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.243e-05/0.3857, allocations: 3.938 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3859, allocations: 15.8 kB / 1.07 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.3861, allocations: 39.95 kB / 1.07 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.3863, allocations: 107.7 kB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.3864, allocations: 33.09 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.3866, allocations: 51.78 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.452e-05/0.3867, allocations: 51.75 kB / 1.07 GB, free: 8.688 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.829e-05/0.3867, allocations: 12 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.97e-05/0.3868, allocations: 8 kB / 1.07 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.096e-05/0.3868, allocations: 31.91 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.17e-05/0.3869, allocations: 47.67 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.3871, allocations: 119.8 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3871, allocations: 0 / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3871, allocations: 0 / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.417e-06/0.3871, allocations: 0 / 1.07 GB, free: 8.473 MB / 0.8262 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.0007099/0.3878, allocations: 444.5 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3878, allocations: 12.03 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.527e-05/0.3879, allocations: 16.75 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.3884, allocations: 252.1 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.3885, allocations: 8.375 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.3885, allocations: 8.312 kB / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.3888, allocations: 120.7 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.3888, allocations: 3.938 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/0.3888, allocations: 0 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3888, allocations: 0 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.3891, allocations: 79.86 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006729/0.3898, allocations: 0.4933 MB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.3901, allocations: 115.8 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.3902, allocations: 58.55 kB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3903, allocations: 11.98 kB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.3903, allocations: 30.56 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.3903, allocations: 0 / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0006062/0.3909, allocations: 165.5 kB / 1.072 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.391, allocations: 106.8 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3911, allocations: 149.1 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.3912, allocations: 29.7 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.358e-05/0.3912, allocations: 112.3 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.537e-05/0.3913, allocations: 19.64 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.651e-05/0.3914, allocations: 29.72 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3915, allocations: 326.8 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.3917, allocations: 47.89 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.3918, allocations: 81.11 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.3921, allocations: 98.45 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3921, allocations: 0 / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000363/0.3925, allocations: 133.4 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3925, allocations: 8 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.3925, allocations: 0 / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.3925, allocations: 4.062 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.3927, allocations: 23.97 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3927, allocations: 4 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3928, allocations: 15.98 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.3929, allocations: 4 kB / 1.073 GB, free: 5.207 MB / 0.8262 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.0001146/0.393, allocations: 125.7 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.897e-05/0.3931, allocations: 23.8 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.3933, allocations: 85.89 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3933, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3934, allocations: 384 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.3934, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.3937, allocations: 201.6 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3937, allocations: 4 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.3938, allocations: 23.91 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3938, allocations: 7.984 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3938, allocations: 11.94 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3938, allocations: 0 / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3938, allocations: 0 / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004389/0.3943, allocations: 369.9 kB / 1.074 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.077e-05/0.3944, allocations: 92.94 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.3944, allocations: 4 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.3946, allocations: 11.98 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.941e-05/0.3947, allocations: 31.89 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.3947, allocations: 4 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.98e-05/0.3948, allocations: 117.6 kB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3948, allocations: 8 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003296/0.3951, allocations: 19.91 kB / 1.074 GB, free: 3.98 MB / 0.8262 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.0001711/0.3953, allocations: 99.25 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003786/0.3957, allocations: 99.86 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.3957, allocations: 4 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.3959, allocations: 51.89 kB / 1.074 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.3964, allocations: 12 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004512/0.3968, allocations: 235.6 kB / 1.074 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.3971, allocations: 0.6963 MB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001067/0.3973, allocations: 20.42 kB / 1.075 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.64e-05/0.3973, allocations: 19.42 kB / 1.075 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3973, allocations: 4 kB / 1.075 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of Templates: time 0.003812/0.4011, allocations: 1.18 MB / 1.076 GB, free: 1.512 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