Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.008526/0.008526, allocations: 96.7 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.001862/0.001862, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.769/2.769, allocations: 437 MB / 0.7105 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002525/0.002525, allocations: 63.91 kB / 1.019 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.442/0.4445, allocations: 151.6 MB / 1.167 GB, free: 6.734 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002161/0.4467, allocations: 0.8504 MB / 1.168 GB, free: 5.883 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.4479, allocations: 0.8818 MB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.116e-05/0.4479, allocations: 0 / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.48e-05/0.448, allocations: 19.86 kB / 1.168 GB, free: 4.969 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.599e-05/0.4481, allocations: 15.8 kB / 1.168 GB, free: 4.953 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.4483, allocations: 31.95 kB / 1.168 GB, free: 4.922 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.4485, allocations: 127.5 kB / 1.169 GB, free: 4.797 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.4487, allocations: 29.11 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.4488, allocations: 47.83 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.4489, allocations: 51.77 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.449, allocations: 8 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.038e-05/0.449, allocations: 12 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.389e-05/0.449, allocations: 23.91 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.4492, allocations: 51.72 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/0.4493, allocations: 119.4 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4494, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.844e-06/0.4494, allocations: 3.938 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.4494, allocations: 4 kB / 1.169 GB, free: 4.449 MB / 0.92 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.0006972/0.4501, allocations: 446.8 kB / 1.169 GB, free: 3.961 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.4501, allocations: 8.031 kB / 1.169 GB, free: 3.953 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.994e-05/0.4502, allocations: 16.84 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.4507, allocations: 256.3 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.322e-05/0.4507, allocations: 12.31 kB / 1.17 GB, free: 3.637 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.4507, allocations: 4.375 kB / 1.17 GB, free: 3.633 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.451, allocations: 120.7 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.451, allocations: 7.938 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.4511, allocations: 0 / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.4511, allocations: 0 / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.4514, allocations: 79.86 kB / 1.17 GB, free: 3.414 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006309/0.452, allocations: 0.4971 MB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.4523, allocations: 107.8 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.4525, allocations: 58.55 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.4525, allocations: 7.984 kB / 1.17 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.4525, allocations: 30.56 kB / 1.17 GB, free: 2.613 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.4525, allocations: 0 / 1.17 GB, free: 2.613 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.0005683/0.4531, allocations: 161.5 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.4532, allocations: 106.8 kB / 1.171 GB, free: 2.32 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.4533, allocations: 152.5 kB / 1.171 GB, free: 2.164 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.4533, allocations: 29.7 kB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/0.4534, allocations: 112.6 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.4534, allocations: 31.77 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.4535, allocations: 21.72 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4536, allocations: 326.8 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.4538, allocations: 43.95 kB / 1.171 GB, free: 1.582 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.454, allocations: 85.11 kB / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.4542, allocations: 106.6 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.4542, allocations: 0 / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000342/0.4546, allocations: 137.5 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.4546, allocations: 6.031 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4546, allocations: 4 kB / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.4546, allocations: 0 / 1.172 GB, free: 1.219 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.4548, allocations: 19.97 kB / 1.172 GB, free: 1.199 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.4548, allocations: 4 kB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.4549, allocations: 15.98 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.4549, allocations: 8 kB / 1.172 GB, free: 1.172 MB / 0.92 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.0001077/0.455, allocations: 129.7 kB / 1.172 GB, free: 1.035 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.899e-05/0.4551, allocations: 15.91 kB / 1.172 GB, free: 1.02 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002458/0.4554, allocations: 81.89 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.4554, allocations: 4 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4554, allocations: 0 / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.4554, allocations: 0 / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003019/0.4557, allocations: 205.5 kB / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4557, allocations: 0 / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000106/0.4558, allocations: 27.91 kB / 1.172 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.4558, allocations: 3.938 kB / 1.172 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.4559, allocations: 4 kB / 1.172 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.4559, allocations: 4 kB / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4559, allocations: 0 / 1.172 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004015/0.4563, allocations: 369.9 kB / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.4564, allocations: 93 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.4564, allocations: 4 kB / 1.173 GB, free: 148 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.4566, allocations: 19.92 kB / 1.173 GB, free: 128 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-05/0.4567, allocations: 27.95 kB / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.4567, allocations: 4.062 kB / 1.173 GB, free: 96 kB / 0.92 GB Notification: Performance of sorting global known variables: time 9.146e-05/0.4568, allocations: 113.6 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4569, allocations: 0 / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003068/0.4572, allocations: 20 kB / 1.173 GB, free: 15.96 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.0001641/0.4573, allocations: 103.2 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003614/0.4577, allocations: 99.86 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4577, allocations: 4 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002179/0.4579, allocations: 48.23 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004512/0.4584, allocations: 15.92 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004134/0.4588, allocations: 203.5 kB / 1.173 GB, free: 15.46 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.4591, allocations: 0.7002 MB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.228e-05/0.4592, allocations: 20.72 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.164e-05/0.4593, allocations: 23.42 kB / 1.174 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.4593, allocations: 0 / 1.174 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of Templates: time 0.004132/0.4634, allocations: 1.356 MB / 1.175 GB, free: 13.34 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches