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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.007989/0.007989, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001819/0.001819, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.596/1.596, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.772/2.772, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 68.81 kB / 0.8991 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3219, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002246/0.3242, allocations: 0.9012 MB / 1.054 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.3253, allocations: 0.8858 MB / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.492e-05/0.3254, allocations: 0 / 1.055 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.455e-05/0.3255, allocations: 3.938 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.3256, allocations: 15.86 kB / 1.055 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.3258, allocations: 35.95 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.326, allocations: 111.6 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.3261, allocations: 25.11 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.3263, allocations: 43.84 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.3264, allocations: 51.75 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.3265, allocations: 11.94 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.243e-05/0.3265, allocations: 4 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.503e-05/0.3265, allocations: 23.91 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.406e-05/0.3266, allocations: 43.72 kB / 1.055 GB, free: 6.113 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.3268, allocations: 92.05 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3268, allocations: 0 / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.11e-07/0.3268, allocations: 0 / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.3268, allocations: 0 / 1.055 GB, free: 6.023 MB / 0.8106 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.0007965/0.3276, allocations: 442.9 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.3276, allocations: 12.03 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.3277, allocations: 8.844 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005146/0.3282, allocations: 260 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.3283, allocations: 8.375 kB / 1.056 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.3283, allocations: 8.312 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002884/0.3286, allocations: 116.8 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3286, allocations: 3.938 kB / 1.056 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.3286, allocations: 8 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3286, allocations: 0 / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/0.3289, allocations: 79.86 kB / 1.056 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006479/0.3296, allocations: 0.497 MB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.3299, allocations: 115.8 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001448/0.33, allocations: 50.61 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.33, allocations: 4 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.3301, allocations: 34.56 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 3.757e-06/0.3301, allocations: 0 / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005933/0.3307, allocations: 165.4 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.3308, allocations: 107.1 kB / 1.057 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3309, allocations: 149.2 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.3309, allocations: 33.7 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.344e-05/0.331, allocations: 104.3 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.331, allocations: 23.66 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.738e-05/0.3311, allocations: 33.64 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.3312, allocations: 326.8 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.3314, allocations: 43.97 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.3315, allocations: 85.05 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.3318, allocations: 90.73 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.3318, allocations: 4 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003397/0.3322, allocations: 137.5 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.3322, allocations: 4 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3322, allocations: 0 / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.3322, allocations: 4 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.3324, allocations: 23.92 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3324, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.3325, allocations: 27.88 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.3326, allocations: 4 kB / 1.058 GB, free: 2.754 MB / 0.8106 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 9.871e-05/0.3327, allocations: 121.8 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.3327, allocations: 7.906 kB / 1.058 GB, free: 2.617 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002584/0.333, allocations: 93.83 kB / 1.058 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.333, allocations: 4 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.333, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.333, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.3333, allocations: 209.5 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.3333, allocations: 0 / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.3334, allocations: 16.05 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3335, allocations: 8 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.3335, allocations: 7.938 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3335, allocations: 7.984 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3335, allocations: 4 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003967/0.3339, allocations: 365.9 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.241e-05/0.334, allocations: 92.95 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.6e-05/0.334, allocations: 7.938 kB / 1.059 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.3342, allocations: 15.97 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.966e-05/0.3343, allocations: 19.97 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3343, allocations: 7.984 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.224e-05/0.3344, allocations: 115.2 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3344, allocations: 0 / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003148/0.3347, allocations: 16 kB / 1.059 GB, free: 1.551 MB / 0.8106 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.0001481/0.3349, allocations: 107.2 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003603/0.3352, allocations: 95.86 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3352, allocations: 0 / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.3354, allocations: 55.97 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.3359, allocations: 11.98 kB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004465/0.3363, allocations: 263 kB / 1.059 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.3366, allocations: 0.7004 MB / 1.06 GB, free: 260 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.232e-05/0.3367, allocations: 19.42 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.3367, allocations: 0 / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of Templates: time 0.00327/0.34, allocations: 1.494 MB / 1.062 GB, free: 14.74 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/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