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.001244/0.001244, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 191 kB / 16.53 MB, free: 6.391 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.258/1.258, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.425/2.425, allocations: 461.9 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 76.31 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2162, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001735/0.218, allocations: 0.8539 MB / 1.054 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007756/0.2188, allocations: 0.8857 MB / 1.055 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.495e-05/0.2188, allocations: 0 / 1.055 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.624e-05/0.2189, allocations: 11.88 kB / 1.055 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.556e-05/0.219, allocations: 15.75 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001408/0.2191, allocations: 35.94 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001109/0.2192, allocations: 115.7 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.223e-05/0.2193, allocations: 29.11 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.782e-05/0.2194, allocations: 51.77 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.787e-05/0.2195, allocations: 51.77 kB / 1.055 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.2195, allocations: 12 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.714e-05/0.2196, allocations: 8 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.803e-05/0.2196, allocations: 27.91 kB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.2196, allocations: 51.66 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.2198, allocations: 119.8 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.2198, allocations: 4 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.012e-06/0.2198, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.2198, allocations: 0 / 1.055 GB, free: 6.008 MB / 0.8106 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.0005415/0.2203, allocations: 438.9 kB / 1.056 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.2204, allocations: 8.625 kB / 1.056 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.985e-05/0.2204, allocations: 34.75 kB / 1.056 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.147e-05/0.2204, allocations: 16.84 kB / 1.056 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004126/0.2208, allocations: 264 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.2209, allocations: 4.375 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.2209, allocations: 8.375 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.2211, allocations: 123.6 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.2211, allocations: 0 / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2212, allocations: 3.938 kB / 1.056 GB, free: 5.016 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.2212, allocations: 4 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.2214, allocations: 71.92 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004779/0.2219, allocations: 0.4971 MB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002139/0.2221, allocations: 111.8 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.2223, allocations: 54.61 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.2223, allocations: 8.047 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.2223, allocations: 46.5 kB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.031e-06/0.2223, allocations: 0 / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005141/0.2229, allocations: 157.6 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.2229, allocations: 110.8 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.815e-05/0.223, allocations: 145.1 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.223, allocations: 33.7 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.2231, allocations: 108.2 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.2231, allocations: 27.64 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.199e-05/0.2232, allocations: 25.72 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.136e-05/0.2232, allocations: 326.8 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.2234, allocations: 47.89 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.2235, allocations: 85.05 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002499/0.2238, allocations: 90.52 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2238, allocations: 0 / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003251/0.2241, allocations: 141.4 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.2242, allocations: 5.25 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/0.2242, allocations: 0 / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.2242, allocations: 4.328 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.2243, allocations: 27.91 kB / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.2243, allocations: 0 / 1.058 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.2244, allocations: 19.98 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.2245, allocations: 64 / 1.058 GB, free: 2.695 MB / 0.8106 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 7.516e-05/0.2245, allocations: 125.8 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.287e-05/0.2246, allocations: 19.88 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002257/0.2248, allocations: 93.83 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2248, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2248, allocations: 4 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2249, allocations: 0 / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.2251, allocations: 201.5 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2251, allocations: 0 / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.2252, allocations: 19.97 kB / 1.058 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.2252, allocations: 4 kB / 1.059 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2252, allocations: 8 kB / 1.059 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2253, allocations: 3.984 kB / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2253, allocations: 0 / 1.059 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003602/0.2256, allocations: 377.8 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.574e-05/0.2257, allocations: 92.94 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.2257, allocations: 0 / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.2259, allocations: 11.98 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.63e-05/0.226, allocations: 31.95 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.866e-06/0.226, allocations: 3.938 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.84e-05/0.226, allocations: 115.8 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.226, allocations: 0 / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002896/0.2263, allocations: 20 kB / 1.059 GB, free: 1.48 MB / 0.8106 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.0005863/0.2269, allocations: 0.9022 MB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003143/0.2272, allocations: 107.9 kB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.2273, allocations: 3.938 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.2274, allocations: 43.91 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.2278, allocations: 24.06 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.2296, allocations: 1.794 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.2298, allocations: 0.7002 MB / 1.063 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.872e-05/0.2298, allocations: 16.64 kB / 1.063 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.835e-05/0.2299, allocations: 35.42 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of SimCode: time 1.332e-06/0.2299, allocations: 0 / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.533/2.763, allocations: 2.679 MB / 1.065 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/13.18, allocations: 7.281 kB / 1.065 GB, free: 11.11 MB / 0.8262 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) Reference file matches