Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis,fileNamePrefix="Buildings_10_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.007191/0.007191, allocations: 102 kB / 15.73 MB, free: 6.051 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.001263/0.001263, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.692/2.692, allocations: 437 MB / 0.7105 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 64.03 kB / 1.018 GB, free: 9.812 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8959/0.8973, allocations: 151.6 MB / 1.166 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002293/0.8997, allocations: 0.8442 MB / 1.167 GB, free: 3.012 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00126/0.901, allocations: 0.8997 MB / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.107e-05/0.9011, allocations: 0 / 1.168 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.191e-05/0.9011, allocations: 7.875 kB / 1.168 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.9013, allocations: 19.8 kB / 1.168 GB, free: 2.074 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002337/0.9015, allocations: 39.88 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.9017, allocations: 111.7 kB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.9018, allocations: 25.12 kB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000175/0.902, allocations: 55.77 kB / 1.168 GB, free: 1.844 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.9021, allocations: 59.75 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.977e-05/0.9022, allocations: 8 kB / 1.168 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 2.063e-05/0.9022, allocations: 8 kB / 1.168 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.678e-05/0.9022, allocations: 23.91 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.636e-05/0.9023, allocations: 55.72 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.9025, allocations: 117.8 kB / 1.168 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.9025, allocations: 0 / 1.168 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9025, allocations: 0 / 1.168 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.9025, allocations: 0 / 1.168 GB, free: 1.578 MB / 0.8887 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.0007536/0.9033, allocations: 446.9 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.9033, allocations: 20.86 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.9034, allocations: 30.75 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.232e-05/0.9034, allocations: 16.75 kB / 1.169 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004878/0.9039, allocations: 256.1 kB / 1.169 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.904, allocations: 8.375 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.904, allocations: 8.375 kB / 1.169 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.9043, allocations: 118.1 kB / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.9043, allocations: 0 / 1.169 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.9043, allocations: 4 kB / 1.169 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.9043, allocations: 4 kB / 1.169 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002642/0.9046, allocations: 75.86 kB / 1.169 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006969/0.9053, allocations: 0.5009 MB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.9056, allocations: 111.8 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.9057, allocations: 54.61 kB / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.9058, allocations: 0 / 1.17 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.9058, allocations: 38.55 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.9058, allocations: 3.938 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0005734/0.9064, allocations: 157.4 kB / 1.17 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.9065, allocations: 107.1 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.9066, allocations: 156.3 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.9066, allocations: 25.7 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.9067, allocations: 112.3 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.9068, allocations: 19.73 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.188e-05/0.9068, allocations: 29.66 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.907, allocations: 326.8 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.9071, allocations: 47.95 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.9073, allocations: 81.05 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.9076, allocations: 98.73 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.9076, allocations: 0 / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003369/0.9079, allocations: 133.4 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.9079, allocations: 8 kB / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.9079, allocations: 0 / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.908, allocations: 0 / 1.171 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.9081, allocations: 31.91 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.363e-06/0.9081, allocations: 4 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.9083, allocations: 11.98 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.9083, allocations: 4 kB / 1.171 GB, free: 14.27 MB / 0.9044 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.0001073/0.9084, allocations: 129.7 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.7e-05/0.9085, allocations: 15.8 kB / 1.171 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000248/0.9087, allocations: 89.84 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.9087, allocations: 3.984 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.9087, allocations: 0 / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.9088, allocations: 7.938 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002966/0.9091, allocations: 197.6 kB / 1.172 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.9091, allocations: 4 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.9092, allocations: 15.98 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.9092, allocations: 0 / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.9092, allocations: 11.98 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.9092, allocations: 8.062 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.9092, allocations: 0 / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004038/0.9096, allocations: 365.8 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/0.9097, allocations: 96.91 kB / 1.172 GB, free: 13.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.9097, allocations: 7.938 kB / 1.172 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001991/0.9099, allocations: 15.98 kB / 1.172 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.543e-05/0.91, allocations: 19.97 kB / 1.172 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/0.91, allocations: 11.92 kB / 1.172 GB, free: 13.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.437e-05/0.9101, allocations: 115.1 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9101, allocations: 0 / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003203/0.9105, allocations: 16 kB / 1.172 GB, free: 13.05 MB / 0.9044 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.0007601/0.9112, allocations: 0.9023 MB / 1.173 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003599/0.9116, allocations: 103.8 kB / 1.173 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.9116, allocations: 0 / 1.173 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.9118, allocations: 47.89 kB / 1.173 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.9123, allocations: 24.16 kB / 1.173 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002182/0.9145, allocations: 1.811 MB / 1.175 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.9148, allocations: 0.6963 MB / 1.176 GB, free: 9.316 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.288e-05/0.9148, allocations: 20.64 kB / 1.176 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.694e-05/0.9149, allocations: 39.36 kB / 1.176 GB, free: 9.258 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.9149, allocations: 0 / 1.176 GB, free: 9.258 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.9355, allocations: 2.704 MB / 1.179 GB, free: 6.652 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/8.599, allocations: 17.83 kB / 1.179 GB, free: 6.637 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hysteresis.u,hysteresis.y,hysteresis1.u,hysteresis1.y,hysteresis2.u,hysteresis2.y Variables in the result:hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,hysteresis1.pre_y_start,hysteresis1.u,hysteresis1.uHigh,hysteresis1.uLow,hysteresis1.y,hysteresis2.pre_y_start,hysteresis2.u,hysteresis2.uHigh,hysteresis2.uLow,hysteresis2.y,time