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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 110.9 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.218/3.218, allocations: 497.2 MB / 0.7811 GB, free: 33.68 MB / 0.6231 GB " [Timeout remaining time 176] 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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 66.44 kB / 1.134 GB, free: 33.63 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3668/0.3687, allocations: 173.9 MB / 1.304 GB, free: 1.477 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002198/0.3709, allocations: 0.8683 MB / 1.305 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.3721, allocations: 0.8779 MB / 1.306 GB, free: 15.72 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.204e-05/0.3722, allocations: 0 / 1.306 GB, free: 15.72 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 4.008e-05/0.3722, allocations: 7.875 kB / 1.306 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.81e-05/0.3723, allocations: 23.73 kB / 1.306 GB, free: 15.69 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.3725, allocations: 39.94 kB / 1.306 GB, free: 15.65 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.3726, allocations: 119.6 kB / 1.306 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.3728, allocations: 25.09 kB / 1.306 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.3729, allocations: 51.78 kB / 1.306 GB, free: 15.46 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.373, allocations: 51.75 kB / 1.306 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.373, allocations: 12 kB / 1.306 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 1.806e-05/0.373, allocations: 8 kB / 1.306 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.3731, allocations: 27.91 kB / 1.306 GB, free: 15.36 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.762e-05/0.3731, allocations: 47.73 kB / 1.306 GB, free: 15.31 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.3733, allocations: 119.8 kB / 1.306 GB, free: 15.2 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3733, allocations: 15.81 kB / 1.306 GB, free: 15.18 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3733, allocations: 0 / 1.306 GB, free: 15.18 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.3733, allocations: 0 / 1.306 GB, free: 15.18 MB / 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.0007145/0.374, allocations: 444.5 kB / 1.307 GB, free: 14.7 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3741, allocations: 12.92 kB / 1.307 GB, free: 14.68 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.52e-05/0.3741, allocations: 34.75 kB / 1.307 GB, free: 14.64 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.3742, allocations: 12.89 kB / 1.307 GB, free: 14.63 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004933/0.3747, allocations: 252.3 kB / 1.307 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.3747, allocations: 8.375 kB / 1.307 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.885e-05/0.3747, allocations: 8.375 kB / 1.307 GB, free: 14.33 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.375, allocations: 120.5 kB / 1.307 GB, free: 14.2 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.375, allocations: 0 / 1.307 GB, free: 14.2 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.375, allocations: 3.984 kB / 1.307 GB, free: 14.19 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.375, allocations: 4 kB / 1.307 GB, free: 14.19 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002602/0.3753, allocations: 71.88 kB / 1.307 GB, free: 14.12 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006844/0.376, allocations: 0.5049 MB / 1.308 GB, free: 13.55 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.3762, allocations: 107.8 kB / 1.308 GB, free: 13.42 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.3764, allocations: 54.61 kB / 1.308 GB, free: 13.36 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.3764, allocations: 7.922 kB / 1.308 GB, free: 13.35 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.3764, allocations: 30.56 kB / 1.308 GB, free: 13.31 MB / 1.014 GB Notification: Performance of pre-optimization done (n=8): time 1.173e-06/0.3764, allocations: 4 kB / 1.308 GB, free: 13.31 MB / 1.014 GB Notification: Performance of matching and sorting (n=8): time 0.0005597/0.377, allocations: 157.4 kB / 1.308 GB, free: 13.15 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.3771, allocations: 106.8 kB / 1.308 GB, free: 13.02 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.3772, allocations: 152.7 kB / 1.308 GB, free: 12.86 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.3772, allocations: 33.7 kB / 1.308 GB, free: 12.82 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.3773, allocations: 104.4 kB / 1.308 GB, free: 12.71 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.3773, allocations: 27.73 kB / 1.308 GB, free: 12.69 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.3774, allocations: 33.7 kB / 1.308 GB, free: 12.65 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3776, allocations: 318.8 kB / 1.309 GB, free: 12.33 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.3777, allocations: 43.95 kB / 1.309 GB, free: 12.29 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001745/0.3779, allocations: 89.05 kB / 1.309 GB, free: 12.18 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.3782, allocations: 90.45 kB / 1.309 GB, free: 12.08 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3782, allocations: 4 kB / 1.309 GB, free: 12.08 MB / 1.014 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003372/0.3785, allocations: 133.5 kB / 1.309 GB, free: 11.94 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3785, allocations: 8 kB / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3785, allocations: 0 / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.3785, allocations: 0 / 1.309 GB, free: 11.93 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.3787, allocations: 23.97 kB / 1.309 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.69e-06/0.3787, allocations: 0 / 1.309 GB, free: 11.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.3788, allocations: 23.94 kB / 1.309 GB, free: 11.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.3788, allocations: 4.062 kB / 1.309 GB, free: 11.88 MB / 1.014 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.0001154/0.3789, allocations: 137.6 kB / 1.309 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.711e-05/0.379, allocations: 15.89 kB / 1.309 GB, free: 11.72 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.3793, allocations: 90.22 kB / 1.309 GB, free: 11.62 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.3793, allocations: 4 kB / 1.309 GB, free: 11.62 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3793, allocations: 0 / 1.309 GB, free: 11.62 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.3793, allocations: 8.031 kB / 1.309 GB, free: 11.61 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003307/0.3796, allocations: 197.6 kB / 1.31 GB, free: 11.37 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3796, allocations: 4 kB / 1.31 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.3797, allocations: 19.97 kB / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3797, allocations: 3.938 kB / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.3797, allocations: 4 kB / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3797, allocations: 0 / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3797, allocations: 0 / 1.31 GB, free: 11.34 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004414/0.3802, allocations: 377.9 kB / 1.31 GB, free: 10.95 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 5.284e-05/0.3802, allocations: 85.06 kB / 1.31 GB, free: 10.85 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.3802, allocations: 4 kB / 1.31 GB, free: 10.84 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.3804, allocations: 15.98 kB / 1.31 GB, free: 10.83 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.528e-05/0.3805, allocations: 23.95 kB / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.3805, allocations: 11.88 kB / 1.31 GB, free: 10.79 MB / 1.014 GB Notification: Performance of sorting global known variables: time 8.597e-05/0.3806, allocations: 117.9 kB / 1.31 GB, free: 10.68 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3806, allocations: 0 / 1.31 GB, free: 10.68 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002998/0.3809, allocations: 12 kB / 1.31 GB, free: 10.67 MB / 1.014 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.0008275/0.3817, allocations: 0.9102 MB / 1.311 GB, free: 9.73 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0003603/0.3821, allocations: 99.86 kB / 1.311 GB, free: 9.633 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3821, allocations: 3.938 kB / 1.311 GB, free: 9.629 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001633/0.3823, allocations: 47.91 kB / 1.311 GB, free: 9.582 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.3827, allocations: 13.97 kB / 1.311 GB, free: 9.57 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.3852, allocations: 1.81 MB / 1.313 GB, free: 7.66 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.3855, allocations: 0.7039 MB / 1.314 GB, free: 6.93 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.113e-05/0.3856, allocations: 16.64 kB / 1.314 GB, free: 6.91 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.144e-05/0.3857, allocations: 31.42 kB / 1.314 GB, free: 6.879 MB / 1.014 GB Notification: Performance of SimCode: time 3.41e-07/0.3857, allocations: 4 kB / 1.314 GB, free: 6.875 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02699/0.4127, allocations: 2.726 MB / 1.316 GB, free: 4.25 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/8.659, allocations: 12.25 kB / 1.316 GB, free: 4.246 MB / 1.014 GB " [Timeout remaining time 291] (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_2/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: 15.358035025186837]