Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001664/0.001664, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001696/0.001696, allocations: 190.8 kB / 16.25 MB, free: 6.637 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.505/1.505, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.9/2.9, allocations: 469.8 MB / 0.742 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 71.28 kB / 0.9081 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3501, allocations: 159.1 MB / 1.063 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002333/0.3525, allocations: 0.9147 MB / 1.064 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001217/0.3537, allocations: 0.8819 MB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.217e-05/0.3538, allocations: 0 / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.919e-05/0.3538, allocations: 3.938 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.354, allocations: 19.8 kB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.3542, allocations: 35.97 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.3544, allocations: 119.7 kB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.3545, allocations: 21.11 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.3547, allocations: 51.78 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.3548, allocations: 55.75 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.3549, allocations: 12 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.625e-05/0.3549, allocations: 12 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.545e-05/0.355, allocations: 23.92 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.546e-05/0.3551, allocations: 55.64 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.3553, allocations: 111.8 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3553, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.395e-06/0.3553, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.3553, allocations: 0 / 1.066 GB, free: 12.27 MB / 0.8262 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.0008982/0.3562, allocations: 446.9 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 7.607e-05/0.3563, allocations: 12.03 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.172e-05/0.3564, allocations: 8.844 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005598/0.3569, allocations: 252.2 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.357, allocations: 4.375 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.95e-05/0.357, allocations: 12.38 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.3573, allocations: 116.7 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3573, allocations: 7.938 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.3574, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.3574, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002905/0.3577, allocations: 83.86 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007882/0.3585, allocations: 497 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.3588, allocations: 115.8 kB / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.3589, allocations: 62.55 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.359, allocations: 4 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.35e-05/0.359, allocations: 30.56 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.359, allocations: 0 / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.000641/0.3597, allocations: 169.4 kB / 1.067 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.99e-05/0.3598, allocations: 106.8 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.36, allocations: 144.9 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.36, allocations: 33.7 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3601, allocations: 104.3 kB / 1.068 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.3602, allocations: 27.72 kB / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.946e-05/0.3602, allocations: 33.86 kB / 1.068 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3604, allocations: 330.7 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.3606, allocations: 43.91 kB / 1.068 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001881/0.3608, allocations: 81.11 kB / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.3611, allocations: 98.67 kB / 1.068 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3611, allocations: 0 / 1.068 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003609/0.3614, allocations: 141.4 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3615, allocations: 8 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3615, allocations: 4 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3615, allocations: 0 / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.3617, allocations: 15.98 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.3617, allocations: 4 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.3618, allocations: 19.97 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.3618, allocations: 8.062 kB / 1.069 GB, free: 9.004 MB / 0.8262 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.0001657/0.362, allocations: 126.5 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/0.3621, allocations: 11.91 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002629/0.3623, allocations: 85.89 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.3624, allocations: 4 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3624, allocations: 0 / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3624, allocations: 0 / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.3627, allocations: 205.5 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3627, allocations: 0 / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.3628, allocations: 27.92 kB / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3628, allocations: 0 / 1.069 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3629, allocations: 3.984 kB / 1.069 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.3629, allocations: 4 kB / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3629, allocations: 0 / 1.069 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004573/0.3633, allocations: 369.9 kB / 1.069 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.796e-05/0.3634, allocations: 92.95 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.3635, allocations: 4 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.3637, allocations: 19.91 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/0.3637, allocations: 19.97 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.24e-05/0.3638, allocations: 11.98 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001049/0.3639, allocations: 117 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3639, allocations: 0 / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003045/0.3642, allocations: 16 kB / 1.07 GB, free: 7.805 MB / 0.8262 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.0002091/0.3644, allocations: 107.2 kB / 1.07 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003883/0.3648, allocations: 99.86 kB / 1.07 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3648, allocations: 4 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001773/0.365, allocations: 48.23 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.3655, allocations: 14.7 kB / 1.07 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004924/0.366, allocations: 239.7 kB / 1.07 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.3664, allocations: 0.7002 MB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.317e-05/0.3665, allocations: 24.72 kB / 1.071 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.3666, allocations: 19.44 kB / 1.071 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.3666, allocations: 3.938 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of Templates: time 0.004569/0.3711, allocations: 1.176 MB / 1.072 GB, free: 5.324 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches