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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008516/0.0008516, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005241/0.005241, allocations: 170.8 kB / 16.27 MB, free: 6.648 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.241/1.241, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.385/2.385, allocations: 437.8 MB / 0.7121 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002837, allocations: 16 kB / 0.873 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.535/0.5353, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.0008486/0.5362, allocations: 0.5641 MB / 1.024 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008557/0.5371, allocations: 0.8819 MB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.773e-05/0.5371, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.866e-05/0.5372, allocations: 3.938 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.691e-05/0.5372, allocations: 11.88 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001526/0.5374, allocations: 35.95 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000109/0.5375, allocations: 103.7 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.719e-05/0.5376, allocations: 33.09 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.5377, allocations: 43.78 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.428e-05/0.5378, allocations: 51.75 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.5378, allocations: 4 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.463e-05/0.5379, allocations: 4 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.313e-05/0.5379, allocations: 19.91 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/0.5379, allocations: 65.44 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.5381, allocations: 113.8 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.5381, allocations: 4 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.213e-06/0.5381, allocations: 3.938 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.5381, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 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.0005585/0.5387, allocations: 448.5 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.5387, allocations: 8.031 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.216e-05/0.5387, allocations: 38.73 kB / 1.026 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.307e-05/0.5388, allocations: 12.84 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004448/0.5392, allocations: 269.6 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.986e-05/0.5393, allocations: 8.375 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.995e-05/0.5393, allocations: 12.38 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.5395, allocations: 124.5 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-06/0.5396, allocations: 0 / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.5396, allocations: 4 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.5396, allocations: 4 kB / 1.026 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000291/0.5399, allocations: 99.84 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.5404, allocations: 0.5009 MB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.5407, allocations: 123.8 kB / 1.027 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.5408, allocations: 62.61 kB / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.5409, allocations: 0 / 1.027 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.5409, allocations: 42.56 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.5409, allocations: 0 / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0005728/0.5415, allocations: 185.6 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.5415, allocations: 110.8 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.905e-05/0.5416, allocations: 148.7 kB / 1.027 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.5417, allocations: 29.7 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.5417, allocations: 108.3 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.5417, allocations: 27.64 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.5418, allocations: 13.72 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.998e-05/0.5419, allocations: 326.8 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.542, allocations: 51.97 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.5422, allocations: 97.05 kB / 1.028 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.5425, allocations: 106.5 kB / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5425, allocations: 0 / 1.028 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003577/0.5429, allocations: 161.4 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.5429, allocations: 8 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.5429, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.5429, allocations: 0 / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.5431, allocations: 27.92 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.5431, allocations: 0 / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.5432, allocations: 27.88 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.5432, allocations: 8 kB / 1.028 GB, free: 10.46 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.006e-05/0.5433, allocations: 126.2 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.093e-05/0.5434, allocations: 7.906 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002484/0.5436, allocations: 105.8 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.5436, allocations: 4 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.5436, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.5437, allocations: 384 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.5439, allocations: 205.6 kB / 1.029 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.5439, allocations: 0 / 1.029 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.544, allocations: 23.98 kB / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.5441, allocations: 0 / 1.029 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.839e-06/0.5441, allocations: 7.984 kB / 1.029 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.5441, allocations: 4 kB / 1.029 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5441, allocations: 0 / 1.029 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.5445, allocations: 393.7 kB / 1.029 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.388e-05/0.5445, allocations: 85.02 kB / 1.029 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.5445, allocations: 4 kB / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.5448, allocations: 23.97 kB / 1.029 GB, free: 9.387 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.548e-05/0.5448, allocations: 23.97 kB / 1.029 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-06/0.5448, allocations: 7.922 kB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.203e-05/0.5449, allocations: 108.5 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5449, allocations: 0 / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002961/0.5452, allocations: 20 kB / 1.029 GB, free: 9.23 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.0006373/0.5458, allocations: 0.9256 MB / 1.03 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003354/0.5462, allocations: 115.8 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5462, allocations: 0 / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.5464, allocations: 63.89 kB / 1.03 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.5468, allocations: 24 kB / 1.03 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.5487, allocations: 1.854 MB / 1.032 GB, free: 6.117 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.5489, allocations: 0.7004 MB / 1.033 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.29e-05/0.549, allocations: 16.64 kB / 1.033 GB, free: 5.375 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.262e-05/0.5491, allocations: 27.42 kB / 1.033 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.5491, allocations: 4 kB / 1.033 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.197/1.747, allocations: 2.266 MB / 1.035 GB, free: 3.207 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/1.747, allocations: 206.9 kB / 1.035 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.727/3.474, allocations: 0 / 1.035 GB, free: 2.953 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