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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008671/0.0008671, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.00543/0.00543, allocations: 172.7 kB / 16.27 MB, free: 6.652 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.219/1.219, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.101/2.101, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002703, allocations: 12 kB / 0.8161 GB, free: 13.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5283/0.5286, allocations: 142.4 MB / 0.9552 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.0009322/0.5295, allocations: 0.7277 MB / 0.9559 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.5308, allocations: 1.33 MB / 0.9572 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.965e-05/0.5308, allocations: 2.188 kB / 0.9572 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.5308, allocations: 11.86 kB / 0.9572 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.498e-05/0.5309, allocations: 27.41 kB / 0.9572 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.5314, allocations: 247.9 kB / 0.9575 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.5316, allocations: 289 kB / 0.9578 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.569e-05/0.5317, allocations: 39.97 kB / 0.9578 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.5318, allocations: 100.8 kB / 0.9579 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.591e-05/0.5319, allocations: 97.03 kB / 0.958 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.005e-05/0.5319, allocations: 12.88 kB / 0.958 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.694e-05/0.532, allocations: 22.55 kB / 0.958 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.343e-05/0.532, allocations: 29.81 kB / 0.958 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.025e-05/0.5321, allocations: 118 kB / 0.9582 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.5323, allocations: 314.2 kB / 0.9585 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5323, allocations: 3.984 kB / 0.9585 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.71e-07/0.5323, allocations: 3.938 kB / 0.9585 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.5323, allocations: 0 / 0.9585 GB, free: 5.055 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.0004733/0.5328, allocations: 0.5311 MB / 0.959 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.464e-05/0.5328, allocations: 10.59 kB / 0.959 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.139e-05/0.5328, allocations: 36.31 kB / 0.959 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.787e-05/0.5329, allocations: 27.69 kB / 0.9591 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000614/0.5335, allocations: 321.4 kB / 0.9594 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.5335, allocations: 15.56 kB / 0.9594 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.5336, allocations: 18.12 kB / 0.9594 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.5338, allocations: 140.2 kB / 0.9595 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.591e-06/0.5338, allocations: 5.312 kB / 0.9595 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.5338, allocations: 9.312 kB / 0.9595 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.006e-06/0.5338, allocations: 5.375 kB / 0.9595 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.534, allocations: 82.62 kB / 0.9596 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004523/0.5345, allocations: 0.6384 MB / 0.9602 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002897/0.5348, allocations: 146.8 kB / 0.9604 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.5349, allocations: 55.39 kB / 0.9604 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5349, allocations: 1.375 kB / 0.9604 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.5352, allocations: 156.5 kB / 0.9606 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.243e-06/0.5352, allocations: 0 / 0.9606 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.000441/0.5356, allocations: 214.7 kB / 0.9608 GB, free: 3 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.5356, allocations: 113.3 kB / 0.9609 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.5358, allocations: 193.4 kB / 0.9611 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.5358, allocations: 38.64 kB / 0.9611 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.442e-05/0.5359, allocations: 128.1 kB / 0.9612 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.5359, allocations: 40.39 kB / 0.9613 GB, free: 2.523 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.536, allocations: 32.23 kB / 0.9613 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.795e-05/0.536, allocations: 326.7 kB / 0.9616 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.5362, allocations: 94.44 kB / 0.9617 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.5364, allocations: 164.9 kB / 0.9619 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003175/0.5368, allocations: 234.5 kB / 0.9621 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.5368, allocations: 0.9062 kB / 0.9621 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005682/0.5374, allocations: 366.3 kB / 0.9624 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.5374, allocations: 60.41 kB / 0.9625 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.5374, allocations: 1.25 kB / 0.9625 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-06/0.5374, allocations: 3.031 kB / 0.9625 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/0.5375, allocations: 26.23 kB / 0.9625 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.5375, allocations: 14.03 kB / 0.9625 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003809/0.5379, allocations: 90.03 kB / 0.9626 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.5379, allocations: 18.98 kB / 0.9627 GB, free: 1.457 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,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.716e-05/0.538, allocations: 132.8 kB / 0.9628 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.5381, allocations: 23.73 kB / 0.9628 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002307/0.5383, allocations: 98.3 kB / 0.9629 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.5383, allocations: 2.188 kB / 0.9629 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.5383, allocations: 9 kB / 0.9629 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.5383, allocations: 1.219 kB / 0.9629 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.5385, allocations: 237.3 kB / 0.9631 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5385, allocations: 1.219 kB / 0.9631 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.679e-05/0.5386, allocations: 24.55 kB / 0.9632 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.5386, allocations: 0.8438 kB / 0.9632 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.5386, allocations: 2.875 kB / 0.9632 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5386, allocations: 0.9688 kB / 0.9632 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.5386, allocations: 9.25 kB / 0.9632 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.5389, allocations: 202.4 kB / 0.9634 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.828e-05/0.5389, allocations: 97.8 kB / 0.9635 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.539, allocations: 2.719 kB / 0.9635 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.5391, allocations: 16.3 kB / 0.9635 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.474e-05/0.5391, allocations: 33.86 kB / 0.9635 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.5391, allocations: 12.7 kB / 0.9635 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.741e-05/0.5392, allocations: 140.8 kB / 0.9637 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5392, allocations: 0 / 0.9637 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002436/0.5395, allocations: 45.98 kB / 0.9637 GB, free: 0.5703 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 (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.000496/0.54, allocations: 0.747 MB / 0.9644 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004872/0.5405, allocations: 329.6 kB / 0.9647 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.5405, allocations: 0 / 0.9647 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001592/0.5406, allocations: 66.38 kB / 0.9648 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.5409, allocations: 54.92 kB / 0.9649 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.5435, allocations: 2.347 MB / 0.9671 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.5437, allocations: 0.7248 MB / 0.9679 GB, free: 13.01 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.471e-05/0.5438, allocations: 22.55 kB / 0.9679 GB, free: 13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.818e-05/0.5439, allocations: 58.34 kB / 0.9679 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.5439, allocations: 0 / 0.9679 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2409/0.7848, allocations: 4.466 MB / 0.9723 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002595/0.7851, allocations: 215.5 kB / 0.9725 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.566/2.351, allocations: 0 / 0.9725 GB, free: 10.56 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > 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/jenkins1/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