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.001225/0.001225, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001234/0.001234, allocations: 191.3 kB / 16.25 MB, free: 6.641 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.229/1.229, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.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.314/2.314, allocations: 437 MB / 0.7101 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 71.83 kB / 0.8689 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4648/0.466, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001758/0.4678, allocations: 0.9146 MB / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008694/0.4686, allocations: 0.8818 MB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.62e-05/0.4687, allocations: 4 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.704e-05/0.4688, allocations: 7.922 kB / 1.019 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.643e-05/0.4688, allocations: 11.88 kB / 1.019 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.469, allocations: 39.95 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.4691, allocations: 111.7 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.89e-05/0.4692, allocations: 25.11 kB / 1.019 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001127/0.4694, allocations: 59.77 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.985e-05/0.4694, allocations: 51.75 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.366e-05/0.4695, allocations: 12 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.63e-05/0.4695, allocations: 8 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.692e-05/0.4695, allocations: 27.91 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.693e-05/0.4696, allocations: 51.72 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.4697, allocations: 113.8 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.4697, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4697, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.4697, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 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.0005902/0.4703, allocations: 446.8 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.4704, allocations: 8.031 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.4704, allocations: 42.73 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.33e-05/0.4704, allocations: 8.844 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.4709, allocations: 267.9 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.4709, allocations: 4.375 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.922e-05/0.4709, allocations: 12.36 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/0.4712, allocations: 116.5 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.4712, allocations: 0 / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.4712, allocations: 4 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.4712, allocations: 4 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.4715, allocations: 79.86 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000515/0.472, allocations: 0.4931 MB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.4722, allocations: 123.8 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.4724, allocations: 50.61 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.4724, allocations: 0 / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.4724, allocations: 34.56 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 9.02e-07/0.4724, allocations: 0 / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004996/0.4729, allocations: 169.4 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.473, allocations: 102.8 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.984e-05/0.4731, allocations: 143.5 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.4731, allocations: 33.95 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.4732, allocations: 108.3 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.835e-05/0.4732, allocations: 31.58 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.4732, allocations: 25.72 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.4733, allocations: 326.8 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.4735, allocations: 39.97 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.4736, allocations: 89.05 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.4739, allocations: 86.45 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4739, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003179/0.4742, allocations: 149.5 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.4742, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.4742, allocations: 336 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.4743, allocations: 4 kB / 1.022 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.4744, allocations: 19.92 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.4744, allocations: 3.984 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.4745, allocations: 27.89 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.877e-06/0.4745, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 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 8.653e-05/0.4746, allocations: 130.2 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.4747, allocations: 7.906 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.4749, allocations: 93.83 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.4749, allocations: 4 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4749, allocations: 0 / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.4749, allocations: 7.984 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.4752, allocations: 201.6 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.4752, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.341e-05/0.4753, allocations: 15.98 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4753, allocations: 4 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.4753, allocations: 3.984 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.4754, allocations: 3.984 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.4754, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.4757, allocations: 373.7 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.665e-05/0.4758, allocations: 89.02 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.4758, allocations: 0 / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.476, allocations: 23.97 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.4761, allocations: 19.97 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.4761, allocations: 7.922 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.734e-05/0.4761, allocations: 113.3 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.4761, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002884/0.4764, allocations: 16 kB / 1.023 GB, free: 11.89 MB / 0.7794 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.000612/0.4771, allocations: 0.9061 MB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003071/0.4774, allocations: 99.86 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4774, allocations: 0 / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.4775, allocations: 59.83 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.4779, allocations: 23.97 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.4798, allocations: 1.818 MB / 1.026 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.48, allocations: 0.7041 MB / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.6e-05/0.4801, allocations: 16.97 kB / 1.027 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.617e-05/0.4802, allocations: 35.42 kB / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.4802, allocations: 0 / 1.027 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.719/1.199, allocations: 2.418 MB / 1.029 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/1.199, allocations: 206.4 kB / 1.029 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/3.182, allocations: 0 / 1.029 GB, free: 5.523 MB / 0.7794 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) Reference file matches