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.001324/0.001324, allocations: 107.5 kB / 16.41 MB, free: 6.508 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.001578/0.001578, allocations: 187 kB / 17.34 MB, free: 5.742 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.285/1.285, 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.466/2.466, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.88 kB / 1.055 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7179/0.7193, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001853/0.7211, allocations: 0.8517 MB / 1.209 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009857/0.7222, allocations: 0.8856 MB / 1.21 GB, free: 11.85 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.771e-05/0.7222, allocations: 4 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.653e-05/0.7223, allocations: 7.875 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.447e-05/0.7224, allocations: 19.8 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.7226, allocations: 39.89 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000139/0.7227, allocations: 115.7 kB / 1.21 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.7228, allocations: 21.11 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.723, allocations: 55.83 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.606e-05/0.7231, allocations: 59.69 kB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.689e-05/0.7231, allocations: 12 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.953e-05/0.7231, allocations: 8 kB / 1.211 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.856e-05/0.7231, allocations: 23.92 kB / 1.211 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.863e-05/0.7232, allocations: 47.72 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.7234, allocations: 119.3 kB / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.7234, allocations: 0 / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of FrontEnd: time 7.61e-07/0.7234, allocations: 0 / 1.211 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.7234, allocations: 4 kB / 1.211 GB, free: 11.32 MB / 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.0006429/0.724, allocations: 440.8 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.7241, allocations: 8.031 kB / 1.211 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/0.7241, allocations: 16.75 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.7246, allocations: 264.1 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.7246, allocations: 4.375 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.3e-05/0.7247, allocations: 12.38 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002629/0.7249, allocations: 112.8 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.725, allocations: 3.938 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.725, allocations: 0 / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.725, allocations: 8 kB / 1.212 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002679/0.7253, allocations: 71.88 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.7258, allocations: 0.4893 MB / 1.212 GB, free: 9.754 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.7261, allocations: 111.8 kB / 1.212 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.7262, allocations: 66.53 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.7263, allocations: 0 / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.7263, allocations: 34.64 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.7263, allocations: 0 / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0005686/0.7269, allocations: 169.4 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.7269, allocations: 110.8 kB / 1.213 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.7271, allocations: 144.5 kB / 1.213 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.7271, allocations: 29.7 kB / 1.213 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.7272, allocations: 108.3 kB / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.7272, allocations: 23.64 kB / 1.213 GB, free: 8.875 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.092e-05/0.7273, allocations: 41.89 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.7274, allocations: 322.8 kB / 1.213 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.7275, allocations: 39.97 kB / 1.213 GB, free: 8.465 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.7277, allocations: 81.11 kB / 1.213 GB, free: 8.367 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.728, allocations: 94.45 kB / 1.213 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.728, allocations: 0 / 1.213 GB, free: 8.266 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003644/0.7284, allocations: 137.4 kB / 1.214 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.7284, allocations: 12 kB / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.7284, allocations: 3.984 kB / 1.214 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.7284, allocations: 0 / 1.214 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.7285, allocations: 19.98 kB / 1.214 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.7286, allocations: 3.938 kB / 1.214 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.7287, allocations: 15.98 kB / 1.214 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.7287, allocations: 7.984 kB / 1.214 GB, free: 8.062 MB / 0.9356 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.0001046/0.7288, allocations: 129.7 kB / 1.214 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.449e-05/0.7289, allocations: 11.81 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.7291, allocations: 89.89 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.7292, allocations: 0 / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.7292, allocations: 0 / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.7292, allocations: 7.938 kB / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.7295, allocations: 193.6 kB / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.7295, allocations: 4 kB / 1.214 GB, free: 7.559 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.7296, allocations: 23.97 kB / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.7296, allocations: 0 / 1.214 GB, free: 7.535 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.097e-05/0.7296, allocations: 4 kB / 1.214 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.7296, allocations: 64 / 1.214 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.7296, allocations: 4 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004157/0.73, allocations: 381.8 kB / 1.214 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.001e-05/0.7301, allocations: 81.02 kB / 1.214 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.7301, allocations: 8 kB / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.7303, allocations: 15.92 kB / 1.214 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.205e-05/0.7304, allocations: 24.19 kB / 1.215 GB, free: 6.992 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.7304, allocations: 11.94 kB / 1.215 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.094e-05/0.7305, allocations: 121.2 kB / 1.215 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.41e-07/0.7305, allocations: 0 / 1.215 GB, free: 6.863 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003432/0.7309, allocations: 15.91 kB / 1.215 GB, free: 6.848 MB / 0.9356 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.0001408/0.731, allocations: 103.2 kB / 1.215 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003568/0.7314, allocations: 107.8 kB / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7314, allocations: 0 / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.7316, allocations: 51.89 kB / 1.215 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.732, allocations: 11.94 kB / 1.215 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004291/0.7324, allocations: 237.2 kB / 1.215 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.7327, allocations: 0.7003 MB / 1.216 GB, free: 5.57 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.886e-05/0.7328, allocations: 27.36 kB / 1.216 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of SimCode: time 2.3e-07/0.7328, allocations: 0 / 1.216 GB, free: 5.543 MB / 0.9356 GB Notification: Performance of Templates: time 0.002957/0.7357, allocations: 1.512 MB / 1.217 GB, free: 4.035 MB / 0.9356 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