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.001543/0.001542, allocations: 103.7 kB / 16.27 MB, free: 6.418 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.001732/0.001732, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.556/1.556, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.571/2.571, allocations: 469.4 MB / 0.7427 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 68.88 kB / 0.9088 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3687, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002479/0.3713, allocations: 0.8441 MB / 1.065 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3725, allocations: 0.8818 MB / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.599e-05/0.3726, allocations: 0 / 1.066 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.962e-05/0.3727, allocations: 7.875 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.3728, allocations: 27.72 kB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.373, allocations: 39.95 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001447/0.3732, allocations: 111.7 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.3733, allocations: 29.11 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.3735, allocations: 47.78 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.3736, allocations: 59.75 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.985e-05/0.3737, allocations: 8 kB / 1.066 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 2.409e-05/0.3737, allocations: 12 kB / 1.066 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.251e-05/0.3737, allocations: 19.91 kB / 1.066 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.541e-05/0.3738, allocations: 55.66 kB / 1.066 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001966/0.374, allocations: 115.8 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.374, allocations: 4 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.383e-06/0.374, allocations: 0 / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.374, allocations: 0 / 1.066 GB, free: 12.75 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.0008123/0.3749, allocations: 442.9 kB / 1.067 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.3749, allocations: 12.62 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/0.375, allocations: 8.844 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005271/0.3755, allocations: 260.1 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.3755, allocations: 4.375 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.994e-05/0.3756, allocations: 8.375 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.3759, allocations: 112.8 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.3759, allocations: 3.938 kB / 1.067 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.3759, allocations: 4 kB / 1.067 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.3759, allocations: 0 / 1.067 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/0.3762, allocations: 83.86 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00072/0.377, allocations: 0.4931 MB / 1.068 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.3773, allocations: 119.8 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.3774, allocations: 50.61 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.3775, allocations: 7.984 kB / 1.068 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.3775, allocations: 38.56 kB / 1.068 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/0.3775, allocations: 0 / 1.068 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0006259/0.3782, allocations: 161.3 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.3782, allocations: 107.1 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.3784, allocations: 148.1 kB / 1.068 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.3784, allocations: 33.7 kB / 1.068 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.595e-05/0.3785, allocations: 104.3 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.3785, allocations: 27.72 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.3786, allocations: 29.66 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3787, allocations: 326.8 kB / 1.069 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.3789, allocations: 51.89 kB / 1.069 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.3791, allocations: 85.05 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003068/0.3794, allocations: 94.67 kB / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3794, allocations: 0 / 1.069 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003817/0.3798, allocations: 141.4 kB / 1.069 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3798, allocations: 4 kB / 1.069 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3798, allocations: 0 / 1.069 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.3799, allocations: 4 kB / 1.069 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.38, allocations: 23.91 kB / 1.069 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.38, allocations: 4 kB / 1.069 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.3802, allocations: 15.98 kB / 1.069 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.3802, allocations: 8 kB / 1.069 GB, free: 9.477 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 9.917e-05/0.3803, allocations: 121.8 kB / 1.069 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.925e-05/0.3804, allocations: 7.906 kB / 1.069 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002906/0.3807, allocations: 97.83 kB / 1.07 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3807, allocations: 4 kB / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3807, allocations: 0 / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.3807, allocations: 0 / 1.07 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000325/0.3811, allocations: 205.5 kB / 1.07 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.3811, allocations: 0 / 1.07 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.3812, allocations: 19.97 kB / 1.07 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3812, allocations: 4 kB / 1.07 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.3812, allocations: 4.062 kB / 1.07 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3812, allocations: 4 kB / 1.07 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3812, allocations: 4 kB / 1.07 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.3817, allocations: 365.8 kB / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.3817, allocations: 96.94 kB / 1.07 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.154e-05/0.3818, allocations: 8 kB / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/0.382, allocations: 11.98 kB / 1.07 GB, free: 8.434 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.414e-05/0.3821, allocations: 23.95 kB / 1.07 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.3821, allocations: 4 kB / 1.07 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.188e-05/0.3822, allocations: 117.8 kB / 1.07 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3822, allocations: 3.938 kB / 1.07 GB, free: 8.289 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003382/0.3825, allocations: 16 kB / 1.07 GB, free: 8.273 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.0001392/0.3827, allocations: 107.8 kB / 1.071 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004005/0.3831, allocations: 99.8 kB / 1.071 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3831, allocations: 0 / 1.071 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.3833, allocations: 56.08 kB / 1.071 GB, free: 8.008 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004515/0.3837, allocations: 15.84 kB / 1.071 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004976/0.3842, allocations: 241.3 kB / 1.071 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.3845, allocations: 0.7002 MB / 1.072 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.104e-05/0.3846, allocations: 23.42 kB / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.3846, allocations: 0 / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of Templates: time 0.003328/0.388, allocations: 1.497 MB / 1.073 GB, free: 5.477 MB / 0.8419 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