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.001565/0.001565, allocations: 117.3 kB / 16.37 MB, free: 6.012 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.00159/0.00159, allocations: 191.8 kB / 17.31 MB, free: 5.613 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.472/1.472, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.556/2.556, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 70.95 kB / 0.8774 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3981, allocations: 153 MB / 1.027 GB, free: 1.996 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00251/0.4007, allocations: 0.853 MB / 1.028 GB, free: 1.148 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.4019, allocations: 0.8857 MB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.979e-05/0.4019, allocations: 0 / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.38e-05/0.402, allocations: 7.875 kB / 1.028 GB, free: 248 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.4021, allocations: 23.73 kB / 1.028 GB, free: 224 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.4023, allocations: 35.94 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00016/0.4025, allocations: 119.7 kB / 1.029 GB, free: 68 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.4026, allocations: 17.11 kB / 1.029 GB, free: 48 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.4028, allocations: 63.78 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.143e-05/0.4029, allocations: 55.67 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.187e-05/0.4029, allocations: 8 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.864e-05/0.4029, allocations: 12 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.403, allocations: 23.92 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.871e-05/0.4031, allocations: 51.72 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.4032, allocations: 119.5 kB / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.4032, allocations: 0 / 1.029 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.236e-06/0.4033, allocations: 3.938 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.4033, allocations: 3.938 kB / 1.029 GB, free: 15.71 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.0006648/0.4039, allocations: 442.9 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.404, allocations: 15.97 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.404, allocations: 8.844 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.4045, allocations: 253.7 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.4045, allocations: 4.375 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.4045, allocations: 8.375 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.4048, allocations: 120.7 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.4049, allocations: 7.938 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.4049, allocations: 0 / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.4049, allocations: 4 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002694/0.4052, allocations: 79.92 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006315/0.4058, allocations: 0.4892 MB / 1.03 GB, free: 14.14 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.4061, allocations: 123.8 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.4062, allocations: 54.61 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.4063, allocations: 0 / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.4063, allocations: 42.5 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.4063, allocations: 0 / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005904/0.4069, allocations: 161.6 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.569e-05/0.407, allocations: 110.8 kB / 1.031 GB, free: 13.58 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.4071, allocations: 142.9 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.4071, allocations: 33.7 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.4072, allocations: 104.3 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/0.4073, allocations: 23.66 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.4073, allocations: 29.7 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4075, allocations: 326.8 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.4076, allocations: 47.91 kB / 1.031 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.4078, allocations: 81.11 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002425/0.408, allocations: 86.52 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4081, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003337/0.4084, allocations: 149.3 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.4084, allocations: 10.91 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4084, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.4085, allocations: 4 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.4086, allocations: 19.98 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.4086, allocations: 0 / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.4087, allocations: 23.97 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.4087, allocations: 4 kB / 1.032 GB, free: 12.45 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 0.0001031/0.4089, allocations: 121.3 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-05/0.4089, allocations: 7.906 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.4092, allocations: 97.83 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.4092, allocations: 7.938 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.4092, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.4092, allocations: 0 / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002937/0.4095, allocations: 209.5 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4095, allocations: 384 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.4096, allocations: 15.98 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4096, allocations: 4.062 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.4097, allocations: 7.984 kB / 1.032 GB, free: 11.92 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.4097, allocations: 4 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4097, allocations: 7.938 kB / 1.032 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.4101, allocations: 369.9 kB / 1.033 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.4101, allocations: 92.95 kB / 1.033 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.4102, allocations: 4 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.4104, allocations: 15.97 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/0.4105, allocations: 19.97 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.4105, allocations: 7.984 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.285e-05/0.4106, allocations: 115.5 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4106, allocations: 0 / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003142/0.4109, allocations: 20 kB / 1.033 GB, free: 11.24 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.0001593/0.4111, allocations: 111.2 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003629/0.4114, allocations: 99.86 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4114, allocations: 0 / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.4116, allocations: 55.91 kB / 1.033 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.412, allocations: 8 kB / 1.033 GB, free: 10.96 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000435/0.4125, allocations: 203.5 kB / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.4128, allocations: 0.708 MB / 1.034 GB, free: 9.992 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.395e-05/0.4128, allocations: 16.64 kB / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.564e-05/0.4129, allocations: 19.44 kB / 1.034 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.4129, allocations: 0 / 1.034 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of Templates: time 0.003975/0.4169, allocations: 1.346 MB / 1.035 GB, free: 8.613 MB / 0.8106 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 -s cvode -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