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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001178/0.001178, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001268/0.001268, allocations: 192.7 kB / 16.13 MB, free: 6.691 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.199/1.199, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.375/2.375, allocations: 461.8 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 68.92 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2169, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001811/0.2187, allocations: 0.9206 MB / 1.053 GB, free: 7.277 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000891/0.2197, allocations: 0.878 MB / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.405e-05/0.2197, allocations: 0 / 1.054 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.966e-05/0.2198, allocations: 7.922 kB / 1.054 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.553e-05/0.2198, allocations: 19.86 kB / 1.054 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.22, allocations: 31.97 kB / 1.054 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.2201, allocations: 107.6 kB / 1.054 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.235e-05/0.2202, allocations: 25.11 kB / 1.054 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.2203, allocations: 43.84 kB / 1.054 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.313e-05/0.2204, allocations: 59.73 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.2204, allocations: 8 kB / 1.054 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.695e-05/0.2205, allocations: 4 kB / 1.054 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.2205, allocations: 19.92 kB / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/0.2206, allocations: 47.66 kB / 1.054 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.2207, allocations: 111.8 kB / 1.054 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2207, allocations: 3.984 kB / 1.054 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.71e-07/0.2207, allocations: 0 / 1.054 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.447e-06/0.2207, allocations: 0 / 1.054 GB, free: 5.906 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.0005903/0.2213, allocations: 442.9 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.2213, allocations: 15.97 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.2214, allocations: 38.73 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.507e-05/0.2214, allocations: 12.84 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004447/0.2219, allocations: 252.1 kB / 1.055 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.2219, allocations: 4.375 kB / 1.055 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.2219, allocations: 12.38 kB / 1.055 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002381/0.2222, allocations: 123.4 kB / 1.055 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.78e-06/0.2222, allocations: 0 / 1.055 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.2222, allocations: 4 kB / 1.055 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.2222, allocations: 4 kB / 1.055 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.2225, allocations: 71.92 kB / 1.055 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005277/0.223, allocations: 0.497 MB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.2232, allocations: 115.8 kB / 1.056 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.2234, allocations: 62.55 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.2234, allocations: 0 / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.2234, allocations: 34.5 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.2234, allocations: 8 kB / 1.056 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005273/0.224, allocations: 165.3 kB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.224, allocations: 106.8 kB / 1.056 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.2241, allocations: 144.9 kB / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.2241, allocations: 33.7 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.803e-05/0.2242, allocations: 108.3 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.2242, allocations: 23.66 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.2243, allocations: 33.64 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.2244, allocations: 322.8 kB / 1.057 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.2245, allocations: 43.91 kB / 1.057 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.2247, allocations: 85.11 kB / 1.057 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002376/0.225, allocations: 94.45 kB / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.225, allocations: 0 / 1.057 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003237/0.2253, allocations: 145.4 kB / 1.057 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.2253, allocations: 8 kB / 1.057 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.2253, allocations: 0 / 1.057 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.2253, allocations: 0 / 1.057 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.2255, allocations: 19.98 kB / 1.057 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2255, allocations: 0 / 1.057 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.2256, allocations: 23.97 kB / 1.057 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.2256, allocations: 4 kB / 1.057 GB, free: 2.586 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 8.672e-05/0.2257, allocations: 121.8 kB / 1.057 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.2258, allocations: 11.84 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.226, allocations: 89.89 kB / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.226, allocations: 0 / 1.058 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.226, allocations: 4 kB / 1.058 GB, free: 2.344 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.226, allocations: 4 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.2263, allocations: 209.5 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2263, allocations: 0 / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.919e-05/0.2264, allocations: 15.98 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2264, allocations: 0 / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.2264, allocations: 4 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.476e-05/0.2265, allocations: 7.922 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2265, allocations: 0 / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003639/0.2268, allocations: 373.9 kB / 1.058 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.2269, allocations: 85.33 kB / 1.058 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.2269, allocations: 4 kB / 1.058 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.2271, allocations: 19.97 kB / 1.058 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.2272, allocations: 19.97 kB / 1.058 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.2272, allocations: 19.8 kB / 1.058 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.015e-05/0.2273, allocations: 110.1 kB / 1.058 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.343e-06/0.2273, allocations: 0 / 1.058 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002948/0.2276, allocations: 19.94 kB / 1.058 GB, free: 1.387 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.0006354/0.2282, allocations: 0.918 MB / 1.059 GB, free: 452 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003196/0.2285, allocations: 99.86 kB / 1.059 GB, free: 352 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2285, allocations: 4 kB / 1.059 GB, free: 348 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.2287, allocations: 51.89 kB / 1.059 GB, free: 296 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.2291, allocations: 14.33 kB / 1.06 GB, free: 284 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.231, allocations: 1.815 MB / 1.061 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.2312, allocations: 0.7043 MB / 1.062 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.517e-05/0.2313, allocations: 16.64 kB / 1.062 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.54e-05/0.2314, allocations: 31.42 kB / 1.062 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2314, allocations: 0 / 1.062 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.613/1.844, allocations: 2.32 MB / 1.064 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002775/1.844, allocations: 217.4 kB / 1.064 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/3.661, allocations: 0 / 1.064 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