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.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006536/0.006536, allocations: 99.89 kB / 15.73 MB, free: 6.445 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.001749/0.001749, allocations: 194.7 kB / 16.67 MB, free: 6.348 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.726/2.726, allocations: 482.6 MB / 0.755 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 72.09 kB / 1.083 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3076, allocations: 162.3 MB / 1.242 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002778/0.3105, allocations: 0.8635 MB / 1.243 GB, free: 8.879 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.3118, allocations: 0.8779 MB / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.487e-05/0.3119, allocations: 0 / 1.244 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.948e-05/0.312, allocations: 7.875 kB / 1.244 GB, free: 7.98 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.3121, allocations: 19.81 kB / 1.244 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.3123, allocations: 43.86 kB / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.3125, allocations: 107.7 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.3126, allocations: 21.12 kB / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.3128, allocations: 59.77 kB / 1.244 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.3129, allocations: 59.75 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.313, allocations: 12 kB / 1.244 GB, free: 7.664 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.199e-05/0.313, allocations: 8 kB / 1.244 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.583e-05/0.313, allocations: 27.91 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.56e-05/0.3131, allocations: 47.72 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.3133, allocations: 115.4 kB / 1.244 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3133, allocations: 4 kB / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3133, allocations: 0 / 1.244 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.936e-06/0.3133, allocations: 0 / 1.244 GB, free: 7.465 MB / 0.9981 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.0007307/0.3141, allocations: 450.8 kB / 1.245 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3141, allocations: 8.031 kB / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.162e-05/0.3141, allocations: 38.75 kB / 1.245 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.3142, allocations: 16.84 kB / 1.245 GB, free: 6.902 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.3147, allocations: 258.5 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.3147, allocations: 8.375 kB / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.3148, allocations: 8.375 kB / 1.245 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.315, allocations: 116.5 kB / 1.245 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3151, allocations: 3.938 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3151, allocations: 4 kB / 1.245 GB, free: 6.461 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3151, allocations: 4 kB / 1.245 GB, free: 6.457 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002789/0.3154, allocations: 75.92 kB / 1.245 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006291/0.316, allocations: 0.4971 MB / 1.246 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.3163, allocations: 111.8 kB / 1.246 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.3164, allocations: 54.61 kB / 1.246 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.3165, allocations: 4 kB / 1.246 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.3165, allocations: 42.48 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.3165, allocations: 3.938 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.000578/0.3171, allocations: 157.5 kB / 1.246 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.3172, allocations: 106.8 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3173, allocations: 148.3 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.3173, allocations: 33.7 kB / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.371e-05/0.3174, allocations: 108.2 kB / 1.246 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.558e-05/0.3174, allocations: 28.03 kB / 1.246 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.114e-05/0.3175, allocations: 29.72 kB / 1.246 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.3176, allocations: 326.8 kB / 1.247 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.3178, allocations: 43.95 kB / 1.247 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.318, allocations: 81.06 kB / 1.247 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.3183, allocations: 94.72 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.3183, allocations: 4 kB / 1.247 GB, free: 4.34 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003629/0.3187, allocations: 141.5 kB / 1.247 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3187, allocations: 5.094 kB / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.3187, allocations: 0 / 1.247 GB, free: 4.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3187, allocations: 4 kB / 1.247 GB, free: 4.188 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.3189, allocations: 23.91 kB / 1.247 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.3189, allocations: 0 / 1.247 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.319, allocations: 15.98 kB / 1.247 GB, free: 4.148 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.319, allocations: 4 kB / 1.247 GB, free: 4.145 MB / 0.9981 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.0001078/0.3191, allocations: 125.8 kB / 1.247 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.303e-05/0.3192, allocations: 11.95 kB / 1.247 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.3195, allocations: 89.83 kB / 1.247 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3195, allocations: 4 kB / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3195, allocations: 0 / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3195, allocations: 3.984 kB / 1.247 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002993/0.3198, allocations: 201.5 kB / 1.247 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.3198, allocations: 4 kB / 1.247 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.3199, allocations: 23.92 kB / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3199, allocations: 0 / 1.248 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.32, allocations: 4.047 kB / 1.248 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.523e-06/0.32, allocations: 8 kB / 1.248 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.32, allocations: 0 / 1.248 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004374/0.3204, allocations: 373.9 kB / 1.248 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.3205, allocations: 92.95 kB / 1.248 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.3205, allocations: 11.98 kB / 1.248 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.3207, allocations: 11.98 kB / 1.248 GB, free: 3.09 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.3208, allocations: 19.97 kB / 1.248 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3208, allocations: 15.92 kB / 1.248 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.549e-05/0.3209, allocations: 103.3 kB / 1.248 GB, free: 2.953 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3209, allocations: 0 / 1.248 GB, free: 2.953 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003059/0.3212, allocations: 20 kB / 1.248 GB, free: 2.934 MB / 0.9981 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.0008241/0.322, allocations: 0.9067 MB / 1.249 GB, free: 2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000367/0.3224, allocations: 96.09 kB / 1.249 GB, free: 1.906 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3224, allocations: 4 kB / 1.249 GB, free: 1.902 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.3226, allocations: 55.89 kB / 1.249 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004532/0.3231, allocations: 18 kB / 1.249 GB, free: 1.832 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5504/0.8735, allocations: 1.8 MB / 1.251 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001222/0.8737, allocations: 0.7015 MB / 1.252 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001009/0.8738, allocations: 16.09 kB / 1.252 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.418e-05/0.8739, allocations: 33.52 kB / 1.252 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of SimCode: time 5.51e-07/0.8739, allocations: 1.188 kB / 1.252 GB, free: 13.03 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.645/3.519, allocations: 2.709 MB / 1.254 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/16.4, allocations: 14.05 kB / 1.254 GB, free: 12.7 MB / 0.9981 GB (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 --timeout=400 --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) 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) Reference file matches