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.009265/0.009266, allocations: 103.4 kB / 15.73 MB, free: 6.047 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.001519/0.00152, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.67/2.67, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 67.89 kB / 1.054 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.043/1.044, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002378/1.047, allocations: 0.8475 MB / 1.209 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00121/1.048, allocations: 0.8895 MB / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.205e-05/1.048, allocations: 0 / 1.209 GB, free: 11.83 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.65e-05/1.048, allocations: 7.875 kB / 1.209 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.996e-05/1.048, allocations: 15.81 kB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000222/1.048, allocations: 43.88 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001462/1.049, allocations: 115.7 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/1.049, allocations: 25.09 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/1.049, allocations: 47.84 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/1.049, allocations: 59.73 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/1.049, allocations: 12 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.951e-05/1.049, allocations: 8 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.288e-05/1.049, allocations: 27.86 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/1.049, allocations: 47.73 kB / 1.21 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/1.049, allocations: 127.3 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/1.049, allocations: 0 / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.573e-06/1.049, allocations: 0 / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.442e-06/1.049, allocations: 0 / 1.21 GB, free: 11.3 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.0007072/1.05, allocations: 436.8 kB / 1.21 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/1.05, allocations: 12.03 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/1.05, allocations: 16.69 kB / 1.21 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004737/1.051, allocations: 256.1 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/1.051, allocations: 12.31 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/1.051, allocations: 8.375 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002859/1.051, allocations: 112.8 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/1.051, allocations: 3.938 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/1.051, allocations: 8 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/1.051, allocations: 0 / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/1.051, allocations: 75.88 kB / 1.211 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/1.052, allocations: 0.4893 MB / 1.211 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002468/1.052, allocations: 115.8 kB / 1.211 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/1.052, allocations: 54.53 kB / 1.212 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/1.052, allocations: 4 kB / 1.212 GB, free: 9.527 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/1.052, allocations: 34.56 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/1.052, allocations: 0 / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0006115/1.053, allocations: 173.6 kB / 1.212 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/1.053, allocations: 106.8 kB / 1.212 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/1.053, allocations: 144.3 kB / 1.212 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/1.053, allocations: 29.7 kB / 1.212 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/1.053, allocations: 104.4 kB / 1.212 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/1.053, allocations: 27.64 kB / 1.212 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/1.053, allocations: 25.7 kB / 1.212 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001988/1.054, allocations: 330.8 kB / 1.212 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/1.054, allocations: 47.94 kB / 1.213 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/1.054, allocations: 77.11 kB / 1.213 GB, free: 8.355 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/1.054, allocations: 94.45 kB / 1.213 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/1.054, allocations: 0 / 1.213 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003587/1.055, allocations: 137.4 kB / 1.213 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/1.055, allocations: 7.984 kB / 1.213 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/1.055, allocations: 4 kB / 1.213 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/1.055, allocations: 8 kB / 1.213 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/1.055, allocations: 19.98 kB / 1.213 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/1.055, allocations: 0 / 1.213 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/1.055, allocations: 15.98 kB / 1.213 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/1.055, allocations: 7.922 kB / 1.213 GB, free: 8.051 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.000118/1.055, allocations: 129.7 kB / 1.213 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.603e-05/1.055, allocations: 11.81 kB / 1.213 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002756/1.056, allocations: 89.89 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/1.056, allocations: 4 kB / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/1.056, allocations: 0 / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/1.056, allocations: 0 / 1.213 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003276/1.056, allocations: 201.6 kB / 1.213 GB, free: 7.547 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/1.056, allocations: 3.938 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/1.056, allocations: 23.91 kB / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/1.056, allocations: 4 kB / 1.213 GB, free: 7.516 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/1.056, allocations: 8 kB / 1.213 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/1.056, allocations: 0 / 1.213 GB, free: 7.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/1.056, allocations: 4 kB / 1.213 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004564/1.057, allocations: 373.8 kB / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/1.057, allocations: 85.02 kB / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/1.057, allocations: 0 / 1.214 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/1.057, allocations: 19.98 kB / 1.214 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.813e-05/1.057, allocations: 24.19 kB / 1.214 GB, free: 6.977 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/1.057, allocations: 3.938 kB / 1.214 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.925e-05/1.057, allocations: 117.6 kB / 1.214 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.057, allocations: 0 / 1.214 GB, free: 6.859 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00031/1.057, allocations: 27.91 kB / 1.214 GB, free: 6.832 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.0001693/1.058, allocations: 99.25 kB / 1.214 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003914/1.058, allocations: 99.84 kB / 1.214 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.058, allocations: 0 / 1.214 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001801/1.058, allocations: 59.89 kB / 1.214 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/1.059, allocations: 15.94 kB / 1.214 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005347/1.059, allocations: 211.5 kB / 1.214 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/1.06, allocations: 0.7003 MB / 1.215 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.132e-05/1.06, allocations: 16.64 kB / 1.215 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.429e-05/1.06, allocations: 19.42 kB / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of SimCode: time 1.764e-06/1.06, allocations: 0 / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of Templates: time 0.004578/1.064, allocations: 1.406 MB / 1.217 GB, free: 4.145 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/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