Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001325/0.001325, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002338/0.002338, allocations: 216.1 kB / 22.24 MB, free: 5.258 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.55/1.55, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.368/3.368, allocations: 0.49 GB / 0.7951 GB, free: 35.37 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_12_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.002058/0.002058, allocations: 67.16 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4012, allocations: 176.1 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002211/0.4035, allocations: 0.8204 MB / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.4048, allocations: 0.9171 MB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.716e-05/0.4049, allocations: 0 / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.952e-05/0.405, allocations: 11.86 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.4051, allocations: 23.73 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000253/0.4053, allocations: 39.95 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.4055, allocations: 119.6 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.4056, allocations: 21.3 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.4058, allocations: 51.84 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.4059, allocations: 59.75 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.633e-05/0.4059, allocations: 12 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 4.454e-05/0.406, allocations: 8 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.07e-05/0.406, allocations: 27.91 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.316e-05/0.4061, allocations: 39.8 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.4063, allocations: 131.6 kB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.4063, allocations: 0 / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.763e-06/0.4063, allocations: 0 / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.4063, allocations: 4 kB / 1.328 GB, free: 15.16 MB / 1.029 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.0007175/0.407, allocations: 373.7 kB / 1.328 GB, free: 14.76 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.407, allocations: 8.031 kB / 1.328 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.469e-05/0.4071, allocations: 38.73 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.4074, allocations: 28.88 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000505/0.4079, allocations: 199.1 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.4079, allocations: 12.36 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/0.4079, allocations: 16.31 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.4082, allocations: 111.8 kB / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.4082, allocations: 0 / 1.329 GB, free: 14.31 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.4082, allocations: 4 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4082, allocations: 4 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.4085, allocations: 79.86 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006678/0.4092, allocations: 460.1 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.4094, allocations: 115.8 kB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.4096, allocations: 54.59 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.4096, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.4097, allocations: 34.56 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.4097, allocations: 3.938 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0006057/0.4103, allocations: 161.6 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.582e-05/0.4103, allocations: 110.7 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.4105, allocations: 154.3 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/0.4105, allocations: 29.7 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.51e-05/0.4106, allocations: 112.2 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.405e-05/0.4106, allocations: 27.78 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.15e-05/0.4107, allocations: 29.7 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4109, allocations: 326.8 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.411, allocations: 40.03 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002296/0.4112, allocations: 166.2 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.4115, allocations: 86.45 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4115, allocations: 4 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003782/0.4119, allocations: 137.8 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4119, allocations: 7.984 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.4119, allocations: 0 / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.4119, allocations: 4 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.4121, allocations: 16.03 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.4121, allocations: 4 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.4122, allocations: 19.92 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.4123, allocations: 11.98 kB / 1.331 GB, free: 11.93 MB / 1.029 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.0001394/0.4124, allocations: 126.2 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.873e-05/0.4125, allocations: 11.95 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002733/0.4127, allocations: 85.98 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.4127, allocations: 4 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4127, allocations: 0 / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4128, allocations: 0 / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.4131, allocations: 168.7 kB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.4131, allocations: 8 kB / 1.331 GB, free: 11.47 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.4132, allocations: 27.86 kB / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.4132, allocations: 0 / 1.331 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.4132, allocations: 8 kB / 1.331 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.4132, allocations: 3.984 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.4132, allocations: 0 / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004529/0.4137, allocations: 365.9 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.083e-05/0.4137, allocations: 11.89 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.4137, allocations: 7.938 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.4139, allocations: 23.97 kB / 1.332 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.414, allocations: 19.95 kB / 1.332 GB, free: 11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.414, allocations: 7.938 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.572e-05/0.4141, allocations: 111.2 kB / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4141, allocations: 0 / 1.332 GB, free: 10.88 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003294/0.4144, allocations: 19.95 kB / 1.332 GB, free: 10.86 MB / 1.029 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.0008131/0.4152, allocations: 0.9062 MB / 1.333 GB, free: 9.926 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000374/0.4156, allocations: 91.86 kB / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4156, allocations: 0 / 1.333 GB, free: 9.836 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.4158, allocations: 48.03 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005168/0.4163, allocations: 13.81 kB / 1.333 GB, free: 9.777 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.4187, allocations: 1.801 MB / 1.335 GB, free: 7.871 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.596e-05/0.4188, allocations: 84.19 kB / 1.335 GB, free: 7.77 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.45e-05/0.4189, allocations: 20.91 kB / 1.335 GB, free: 7.75 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.419, allocations: 35.42 kB / 1.335 GB, free: 7.715 MB / 1.029 GB Notification: Performance of SimCode: time 8.72e-07/0.419, allocations: 0 / 1.335 GB, free: 7.715 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0307/0.4497, allocations: 3.337 MB / 1.338 GB, free: 4.52 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.64, allocations: 6.219 kB / 1.338 GB, free: 4.516 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 18.564873377996264]