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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008413/0.008413, allocations: 99.64 kB / 15.73 MB, free: 6.031 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.001598/0.001598, allocations: 189.7 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.801/2.801, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002452/0.002452, allocations: 67.89 kB / 1.054 GB, free: 7.598 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4356, allocations: 157.4 MB / 1.207 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00228/0.438, allocations: 0.844 MB / 1.208 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.4393, allocations: 0.8779 MB / 1.209 GB, free: 8.359 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.727e-05/0.4394, allocations: 8 kB / 1.209 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.793e-05/0.4394, allocations: 11.86 kB / 1.209 GB, free: 8.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001145/0.4396, allocations: 11.81 kB / 1.209 GB, free: 8.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.4398, allocations: 43.88 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.44, allocations: 107.7 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.4402, allocations: 41.08 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.4403, allocations: 47.78 kB / 1.209 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.4404, allocations: 59.75 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.4405, allocations: 8 kB / 1.209 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.19e-05/0.4405, allocations: 12 kB / 1.209 GB, free: 8.016 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.297e-05/0.4406, allocations: 27.91 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.569e-05/0.4406, allocations: 39.73 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.4408, allocations: 123.8 kB / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4408, allocations: 0 / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4408, allocations: 4 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.4408, allocations: 0 / 1.21 GB, free: 7.824 MB / 0.9669 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.0007473/0.4416, allocations: 442.9 kB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.4417, allocations: 8.625 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.4417, allocations: 38.75 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.615e-05/0.4418, allocations: 12.75 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.4423, allocations: 260 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.827e-05/0.4423, allocations: 8.375 kB / 1.21 GB, free: 6.973 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.4424, allocations: 8.375 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.4427, allocations: 120.5 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.4427, allocations: 0 / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.4427, allocations: 15.88 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.4427, allocations: 0 / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.443, allocations: 71.92 kB / 1.21 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006529/0.4437, allocations: 0.4971 MB / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002592/0.4439, allocations: 111.8 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.4441, allocations: 58.59 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.4442, allocations: 3.984 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.4442, allocations: 46.5 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.4442, allocations: 4 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0006079/0.4448, allocations: 153.4 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.4449, allocations: 106.8 kB / 1.211 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.445, allocations: 153.1 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.445, allocations: 41.69 kB / 1.212 GB, free: 5.434 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.533e-05/0.4451, allocations: 104.2 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.4452, allocations: 27.64 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.4452, allocations: 29.7 kB / 1.212 GB, free: 5.262 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.4453, allocations: 326.8 kB / 1.212 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.4455, allocations: 35.97 kB / 1.212 GB, free: 4.898 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.4457, allocations: 88.98 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.446, allocations: 90.52 kB / 1.212 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.446, allocations: 0 / 1.212 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000398/0.4464, allocations: 145.5 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.4464, allocations: 4 kB / 1.212 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4464, allocations: 0 / 1.212 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.4464, allocations: 0 / 1.212 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.4466, allocations: 23.92 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.4466, allocations: 0 / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.4467, allocations: 19.98 kB / 1.212 GB, free: 4.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.4468, allocations: 3.984 kB / 1.212 GB, free: 4.496 MB / 0.9669 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.0001056/0.4469, allocations: 125.8 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.873e-05/0.447, allocations: 11.81 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002701/0.4473, allocations: 93.83 kB / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.4473, allocations: 0 / 1.213 GB, free: 4.246 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.4473, allocations: 8 kB / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.4473, allocations: 0 / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000299/0.4476, allocations: 201.6 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4476, allocations: 0 / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.4477, allocations: 19.97 kB / 1.213 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.4477, allocations: 4 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.4477, allocations: 384 / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4478, allocations: 3.938 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4478, allocations: 64 / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004288/0.4482, allocations: 385.8 kB / 1.213 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.4483, allocations: 96.84 kB / 1.213 GB, free: 3.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.4483, allocations: 4 kB / 1.213 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/0.4485, allocations: 15.98 kB / 1.213 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.634e-05/0.4486, allocations: 27.95 kB / 1.213 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.4486, allocations: 3.938 kB / 1.213 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.286e-05/0.4487, allocations: 111.2 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4487, allocations: 0 / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003331/0.449, allocations: 16 kB / 1.214 GB, free: 3.281 MB / 0.9669 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.000764/0.4498, allocations: 0.9102 MB / 1.214 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003966/0.4502, allocations: 103.9 kB / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4502, allocations: 0 / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001767/0.4504, allocations: 47.91 kB / 1.215 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004789/0.4509, allocations: 19.92 kB / 1.215 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.4531, allocations: 1.801 MB / 1.216 GB, free: 280 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.4534, allocations: 0.7002 MB / 1.217 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.374e-05/0.4535, allocations: 16.64 kB / 1.217 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.945e-05/0.4536, allocations: 35.42 kB / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.4536, allocations: 0 / 1.217 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02122/0.4748, allocations: 2.758 MB / 1.22 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.948, allocations: 7.938 kB / 1.22 GB, free: 12.84 MB / 0.9825 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=50 --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) "" 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