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.001736/0.001736, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002583/0.002583, allocations: 212.8 kB / 22.25 MB, free: 4.855 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.64/1.64, allocations: 230.6 MB / 256 MB, free: 7.812 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.31/3.31, allocations: 0.4892 GB / 0.7943 GB, free: 35.46 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.002183/0.002183, allocations: 73.2 kB / 1.153 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3812, allocations: 176.1 MB / 1.325 GB, free: 2.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002347/0.3835, allocations: 0.8244 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001219/0.3848, allocations: 0.9249 MB / 1.327 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.254e-05/0.3848, allocations: 0 / 1.327 GB, free: 0.5859 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.305e-05/0.3848, allocations: 7.875 kB / 1.327 GB, free: 0.5781 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.793e-05/0.3849, allocations: 23.75 kB / 1.327 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.3852, allocations: 43.92 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.3853, allocations: 111.6 kB / 1.327 GB, free: 412 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.3854, allocations: 25.28 kB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.3856, allocations: 51.84 kB / 1.327 GB, free: 332 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.061e-05/0.3857, allocations: 51.75 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.3857, allocations: 8 kB / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.12e-05/0.3858, allocations: 16 kB / 1.327 GB, free: 256 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.849e-05/0.3858, allocations: 23.91 kB / 1.327 GB, free: 232 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.3859, allocations: 43.78 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.3861, allocations: 131.6 kB / 1.327 GB, free: 56 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.3861, allocations: 4 kB / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3861, allocations: 0 / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.3861, allocations: 0 / 1.327 GB, free: 52 kB / 1.014 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.0008035/0.3869, allocations: 369.7 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3869, allocations: 12.03 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.387, allocations: 34.75 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002467/0.3872, allocations: 36.8 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.3877, allocations: 202.4 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.351e-05/0.3877, allocations: 8.375 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.3877, allocations: 4.375 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.388, allocations: 120.5 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.388, allocations: 0 / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.388, allocations: 0 / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3881, allocations: 4 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.3883, allocations: 79.86 kB / 1.328 GB, free: 15.12 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006332/0.389, allocations: 460.2 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002663/0.3892, allocations: 111.8 kB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.3894, allocations: 54.61 kB / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.3894, allocations: 0 / 1.329 GB, free: 14.42 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.3895, allocations: 38.55 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.3895, allocations: 0 / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=8): time 0.0006069/0.3901, allocations: 169.6 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/0.3901, allocations: 102.8 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.3903, allocations: 148.3 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3903, allocations: 29.7 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/0.3904, allocations: 116.3 kB / 1.329 GB, free: 13.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.866e-05/0.3905, allocations: 27.78 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.3905, allocations: 21.72 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3907, allocations: 326.8 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.3908, allocations: 43.95 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.3911, allocations: 158.3 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.3913, allocations: 102.7 kB / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3913, allocations: 0 / 1.33 GB, free: 13.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003659/0.3917, allocations: 137.5 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.3917, allocations: 8 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3917, allocations: 0 / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3917, allocations: 4 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3919, allocations: 23.97 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.3919, allocations: 3.938 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.392, allocations: 19.94 kB / 1.33 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-06/0.3921, allocations: 0 / 1.33 GB, free: 12.84 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.0001193/0.3922, allocations: 130.3 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.185e-05/0.3922, allocations: 7.953 kB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002725/0.3925, allocations: 85.98 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3925, allocations: 4 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3925, allocations: 3.984 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.3925, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/0.3928, allocations: 168.6 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3928, allocations: 3.938 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.3929, allocations: 23.97 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3929, allocations: 7.938 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.393, allocations: 0 / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.393, allocations: 4 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.393, allocations: 0 / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004762/0.3934, allocations: 377.8 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.986e-05/0.3935, allocations: 11.89 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.554e-05/0.3935, allocations: 4 kB / 1.331 GB, free: 11.94 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.3937, allocations: 15.98 kB / 1.331 GB, free: 11.93 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.17e-05/0.3938, allocations: 23.95 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.3938, allocations: 11.92 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.484e-05/0.3939, allocations: 109.5 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3939, allocations: 4 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003166/0.3942, allocations: 15.95 kB / 1.331 GB, free: 11.77 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.0007929/0.395, allocations: 0.9063 MB / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003615/0.3953, allocations: 91.86 kB / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3953, allocations: 0 / 1.332 GB, free: 10.74 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.3955, allocations: 56.02 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004741/0.396, allocations: 16.97 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.3985, allocations: 1.797 MB / 1.334 GB, free: 8.77 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.295e-05/0.3986, allocations: 84.19 kB / 1.334 GB, free: 8.668 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.984e-05/0.3987, allocations: 20.62 kB / 1.334 GB, free: 8.648 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.159e-05/0.3987, allocations: 35.42 kB / 1.334 GB, free: 8.613 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3987, allocations: 0 / 1.334 GB, free: 8.613 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.4293, allocations: 3.306 MB / 1.337 GB, free: 5.453 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.96, allocations: 3.938 kB / 1.337 GB, free: 5.449 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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] "Error: Could not read variable hysteresis.y in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis.y from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! Error: Could not read variable hysteresis1.y in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis1.y from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! Error: Could not read variable hysteresis2.y in file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv. Warning: Get data of variable hysteresis2.y from file Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.059276114217937]