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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002336/0.002336, allocations: 213 kB / 22.25 MB, free: 5.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.651/1.651, allocations: 230.6 MB / 256 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.469/3.469, allocations: 0.505 GB / 0.8101 GB, free: 21.97 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003003/0.003003, allocations: 70.27 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4151, allocations: 180.2 MB / 1.353 GB, free: 8.363 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002578/0.4176, allocations: 0.8601 MB / 1.354 GB, free: 7.508 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.4191, allocations: 0.9288 MB / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.75e-05/0.4192, allocations: 0 / 1.355 GB, free: 6.566 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.266e-05/0.4193, allocations: 11.88 kB / 1.355 GB, free: 6.555 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.4194, allocations: 15.8 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.4197, allocations: 39.89 kB / 1.355 GB, free: 6.5 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.4198, allocations: 115.7 kB / 1.355 GB, free: 6.387 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.42, allocations: 21.3 kB / 1.355 GB, free: 6.367 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002436/0.4202, allocations: 63.77 kB / 1.355 GB, free: 6.305 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.4203, allocations: 55.77 kB / 1.355 GB, free: 6.25 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.4204, allocations: 12 kB / 1.355 GB, free: 6.238 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.332e-05/0.4204, allocations: 16 kB / 1.355 GB, free: 6.223 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.093e-05/0.4205, allocations: 23.91 kB / 1.355 GB, free: 6.199 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.226e-05/0.4205, allocations: 55.66 kB / 1.355 GB, free: 6.145 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.4208, allocations: 123.7 kB / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4208, allocations: 0 / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.643e-06/0.4208, allocations: 0 / 1.355 GB, free: 6.023 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.4208, allocations: 0 / 1.355 GB, free: 6.023 MB / 1.045 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.001024/0.4218, allocations: 369.7 kB / 1.356 GB, free: 5.629 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/0.4219, allocations: 12.03 kB / 1.356 GB, free: 5.617 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.285e-05/0.4219, allocations: 38.73 kB / 1.356 GB, free: 5.57 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004083/0.4223, allocations: 36.77 kB / 1.356 GB, free: 5.535 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.423, allocations: 190.5 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.209e-05/0.4231, allocations: 8.375 kB / 1.356 GB, free: 5.316 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.4231, allocations: 8.375 kB / 1.356 GB, free: 5.309 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004568/0.4235, allocations: 116.4 kB / 1.356 GB, free: 5.18 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.4236, allocations: 4 kB / 1.356 GB, free: 5.176 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.4236, allocations: 8 kB / 1.356 GB, free: 5.168 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4236, allocations: 3.938 kB / 1.356 GB, free: 5.164 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000422/0.424, allocations: 75.94 kB / 1.356 GB, free: 5.09 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.425, allocations: 476.1 kB / 1.356 GB, free: 4.574 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003761/0.4254, allocations: 111.8 kB / 1.357 GB, free: 4.438 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.4256, allocations: 54.61 kB / 1.357 GB, free: 4.375 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 4.533e-05/0.4257, allocations: 4 kB / 1.357 GB, free: 4.371 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.4257, allocations: 42.48 kB / 1.357 GB, free: 4.32 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 2.855e-06/0.4257, allocations: 0 / 1.357 GB, free: 4.32 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0009384/0.4267, allocations: 157.5 kB / 1.357 GB, free: 4.16 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.4268, allocations: 102.8 kB / 1.357 GB, free: 4.035 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.427, allocations: 152.6 kB / 1.357 GB, free: 3.875 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.893e-05/0.427, allocations: 29.7 kB / 1.357 GB, free: 3.84 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.4271, allocations: 112.2 kB / 1.357 GB, free: 3.723 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.4272, allocations: 32.03 kB / 1.357 GB, free: 3.691 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-05/0.4273, allocations: 21.72 kB / 1.357 GB, free: 3.664 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001987/0.4275, allocations: 330.8 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.4277, allocations: 43.95 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.428, allocations: 81.06 kB / 1.358 GB, free: 3.191 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.4284, allocations: 90.73 kB / 1.358 GB, free: 3.094 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.4284, allocations: 4 kB / 1.358 GB, free: 3.09 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000538/0.4289, allocations: 141.5 kB / 1.358 GB, free: 2.945 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.4289, allocations: 4 kB / 1.358 GB, free: 2.941 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.4289, allocations: 0 / 1.358 GB, free: 2.941 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.429, allocations: 4 kB / 1.358 GB, free: 2.938 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.4292, allocations: 27.91 kB / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.4292, allocations: 0 / 1.358 GB, free: 2.91 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.4294, allocations: 15.98 kB / 1.358 GB, free: 2.895 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.4294, allocations: 7.984 kB / 1.358 GB, free: 2.887 MB / 1.045 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.0001495/0.4295, allocations: 129.7 kB / 1.358 GB, free: 2.75 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.4296, allocations: 15.89 kB / 1.358 GB, free: 2.734 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003716/0.43, allocations: 85.92 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.43, allocations: 7.984 kB / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.43, allocations: 0 / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.43, allocations: 0 / 1.358 GB, free: 2.633 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.4306, allocations: 176.7 kB / 1.358 GB, free: 2.418 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4306, allocations: 4 kB / 1.358 GB, free: 2.414 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.4307, allocations: 23.98 kB / 1.358 GB, free: 2.391 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4307, allocations: 0 / 1.358 GB, free: 2.391 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.4307, allocations: 8.047 kB / 1.358 GB, free: 2.383 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.672e-06/0.4307, allocations: 4 kB / 1.358 GB, free: 2.379 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4307, allocations: 0 / 1.358 GB, free: 2.379 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006528/0.4314, allocations: 369.9 kB / 1.359 GB, free: 2 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.4314, allocations: 15.84 kB / 1.359 GB, free: 1.984 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.4315, allocations: 7.984 kB / 1.359 GB, free: 1.977 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.4318, allocations: 15.98 kB / 1.359 GB, free: 1.961 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.4319, allocations: 27.95 kB / 1.359 GB, free: 1.934 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.4319, allocations: 3.938 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001304/0.4321, allocations: 112.9 kB / 1.359 GB, free: 1.82 MB / 1.045 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4321, allocations: 0 / 1.359 GB, free: 1.82 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005855/0.4327, allocations: 20 kB / 1.359 GB, free: 1.801 MB / 1.045 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.001154/0.4338, allocations: 0.8984 MB / 1.36 GB, free: 0.875 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005473/0.4344, allocations: 103.8 kB / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.4344, allocations: 0 / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.4346, allocations: 43.91 kB / 1.36 GB, free: 0.7305 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008373/0.4355, allocations: 23.92 kB / 1.36 GB, free: 0.707 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003618/0.4391, allocations: 1.797 MB / 1.362 GB, free: 14.8 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.4395, allocations: 0.6963 MB / 1.362 GB, free: 14.07 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001274/0.4396, allocations: 20.62 kB / 1.362 GB, free: 14.05 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.4398, allocations: 39.41 kB / 1.362 GB, free: 14.02 MB / 1.061 GB Notification: Performance of SimCode: time 7.82e-07/0.4398, allocations: 0 / 1.362 GB, free: 14.02 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03969/0.4794, allocations: 2.851 MB / 1.365 GB, free: 11.3 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.87, allocations: 7.969 kB / 1.365 GB, free: 11.3 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 840.0] 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.100955499801785]