Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001343/0.001343, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.67/2.67, allocations: 390.9 MB / 0.666 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003231/0.0003232, allocations: 12 kB / 0.8154 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7985/0.7988, allocations: 142.4 MB / 0.9545 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001264/0.8001, allocations: 0.701 MB / 0.9551 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001956/0.8021, allocations: 1.291 MB / 0.9564 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.8023, allocations: 1.438 kB / 0.9564 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.632e-05/0.8023, allocations: 11.88 kB / 0.9564 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00018/0.8025, allocations: 27.97 kB / 0.9564 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.8035, allocations: 217.1 kB / 0.9566 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004275/0.804, allocations: 263.5 kB / 0.9569 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.8041, allocations: 32.3 kB / 0.9569 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.8044, allocations: 96.52 kB / 0.957 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.8046, allocations: 93.31 kB / 0.9571 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.249e-05/0.8047, allocations: 14.97 kB / 0.9571 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001243/0.8048, allocations: 24.27 kB / 0.9571 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.644e-05/0.8049, allocations: 29.98 kB / 0.9572 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.805, allocations: 59.27 kB / 0.9572 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.8053, allocations: 251.5 kB / 0.9575 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.8053, allocations: 0 / 0.9575 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.524e-06/0.8053, allocations: 0 / 0.9575 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.8053, allocations: 1.156 kB / 0.9575 GB, free: 5.434 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0009368/0.8063, allocations: 0.5244 MB / 0.958 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.8063, allocations: 13.8 kB / 0.958 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.8065, allocations: 29.23 kB / 0.958 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007866/0.8073, allocations: 311.4 kB / 0.9583 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/0.8073, allocations: 13 kB / 0.9583 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.57e-05/0.8074, allocations: 17.59 kB / 0.9584 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.8077, allocations: 147.9 kB / 0.9585 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.8077, allocations: 0 / 0.9585 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.8077, allocations: 1.094 kB / 0.9585 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.8077, allocations: 3.125 kB / 0.9585 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.808, allocations: 81.48 kB / 0.9586 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006993/0.8087, allocations: 0.6472 MB / 0.9592 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.8091, allocations: 146.6 kB / 0.9593 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.8092, allocations: 62.11 kB / 0.9594 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.8092, allocations: 5.312 kB / 0.9594 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.8095, allocations: 149.9 kB / 0.9596 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.864e-06/0.8095, allocations: 0 / 0.9596 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0006202/0.8102, allocations: 210 kB / 0.9598 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.8102, allocations: 117.5 kB / 0.9599 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.8104, allocations: 196 kB / 0.9601 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.8104, allocations: 35.2 kB / 0.9601 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.894e-05/0.8105, allocations: 123.4 kB / 0.9602 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.8106, allocations: 33.05 kB / 0.9602 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-05/0.8106, allocations: 8.125 kB / 0.9602 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.817e-05/0.8107, allocations: 330.9 kB / 0.9606 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.8109, allocations: 101.7 kB / 0.9607 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.8112, allocations: 154.7 kB / 0.9608 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.8115, allocations: 148.5 kB / 0.9609 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.8115, allocations: 1.312 kB / 0.9609 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007074/0.8122, allocations: 367.1 kB / 0.9613 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.441e-05/0.8123, allocations: 64.8 kB / 0.9614 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.8123, allocations: 2.125 kB / 0.9614 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.8123, allocations: 2.688 kB / 0.9614 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000104/0.8124, allocations: 21.81 kB / 0.9614 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.8124, allocations: 11.16 kB / 0.9614 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.8129, allocations: 92.73 kB / 0.9615 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.8129, allocations: 19.42 kB / 0.9615 GB, free: 1.992 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.813, allocations: 132.2 kB / 0.9616 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.085e-05/0.8131, allocations: 16.16 kB / 0.9616 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.8133, allocations: 106.1 kB / 0.9617 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.8134, allocations: 2.25 kB / 0.9617 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.8134, allocations: 9.062 kB / 0.9618 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.8134, allocations: 1.125 kB / 0.9618 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000202/0.8136, allocations: 233.1 kB / 0.962 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.8136, allocations: 2.031 kB / 0.962 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.855e-05/0.8137, allocations: 20.48 kB / 0.962 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.8137, allocations: 5.5 kB / 0.962 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.8137, allocations: 2.344 kB / 0.962 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.8137, allocations: 2 kB / 0.962 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.8137, allocations: 8.938 kB / 0.962 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003866/0.8141, allocations: 204.9 kB / 0.9622 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.705e-05/0.8142, allocations: 105.6 kB / 0.9623 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.8142, allocations: 7.094 kB / 0.9623 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.8143, allocations: 16.27 kB / 0.9623 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.603e-05/0.8144, allocations: 22.08 kB / 0.9624 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.8145, allocations: 21.53 kB / 0.9624 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001132/0.8146, allocations: 138.9 kB / 0.9625 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8146, allocations: 0 / 0.9625 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003285/0.8149, allocations: 46.59 kB / 0.9626 GB, free: 1.098 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002523/0.8152, allocations: 112 kB / 0.9627 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005611/0.8157, allocations: 324.3 kB / 0.963 GB, free: 0.7812 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8158, allocations: 5.062 kB / 0.963 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.8159, allocations: 65.12 kB / 0.963 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.8163, allocations: 48.03 kB / 0.9631 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005876/0.8169, allocations: 327.7 kB / 0.9634 GB, free: 476 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.8171, allocations: 0.7249 MB / 0.9641 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001145/0.8172, allocations: 21.83 kB / 0.9641 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.93e-05/0.8173, allocations: 22.89 kB / 0.9641 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.8173, allocations: 0 / 0.9641 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of Templates: time 0.008446/0.8257, allocations: 2.886 MB / 0.967 GB, free: 14.27 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches