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.001117/0.001117, 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.001106/0.001106, allocations: 193 kB / 16.25 MB, free: 6.637 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.25/1.25, allocations: 222.9 MB / 239.9 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.478/2.478, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 61.36 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2493, allocations: 157.4 MB / 1.052 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002002/0.2513, allocations: 0.9167 MB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008939/0.2523, allocations: 0.8897 MB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.581e-05/0.2523, allocations: 0 / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.929e-05/0.2524, allocations: 3.938 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.345e-05/0.2525, allocations: 23.84 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.2526, allocations: 31.91 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001215/0.2528, allocations: 115.7 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.2529, allocations: 17.11 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.253, allocations: 51.84 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.83e-05/0.2531, allocations: 59.75 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.2531, allocations: 8 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.806e-05/0.2532, allocations: 12 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.949e-05/0.2532, allocations: 23.91 kB / 1.055 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.2532, allocations: 51.66 kB / 1.055 GB, free: 6.465 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.2534, allocations: 115.8 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2534, allocations: 0 / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2534, allocations: 3.938 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.2534, allocations: 0 / 1.055 GB, free: 6.348 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.0005828/0.254, allocations: 446.9 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.254, allocations: 12.62 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.2541, allocations: 34.75 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.2541, allocations: 12.84 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.2545, allocations: 256.1 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.2546, allocations: 4.375 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.2546, allocations: 12.38 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.2548, allocations: 120.4 kB / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.2549, allocations: 0 / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2549, allocations: 7.938 kB / 1.056 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.2549, allocations: 7.984 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.2551, allocations: 75.86 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005229/0.2557, allocations: 0.4932 MB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.2559, allocations: 107.8 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.2561, allocations: 58.59 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.2561, allocations: 3.938 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.2561, allocations: 34.56 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.2561, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.000538/0.2567, allocations: 165.3 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.2567, allocations: 102.8 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.784e-05/0.2568, allocations: 148.9 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.2569, allocations: 37.88 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.661e-05/0.2569, allocations: 108.3 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.913e-05/0.257, allocations: 27.72 kB / 1.057 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.76e-05/0.257, allocations: 29.7 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.2571, allocations: 322.8 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.2572, allocations: 43.91 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.2574, allocations: 85.11 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/0.2577, allocations: 90.45 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.2577, allocations: 4 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003269/0.258, allocations: 145.4 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.258, allocations: 8 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.258, allocations: 0 / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-06/0.258, allocations: 0 / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.2582, allocations: 19.98 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.2582, allocations: 0 / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.2583, allocations: 19.97 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2583, allocations: 4 kB / 1.058 GB, free: 3.031 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.485e-05/0.2584, allocations: 129.7 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/0.2585, allocations: 7.906 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.2587, allocations: 94.2 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2587, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2587, allocations: 4 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2587, allocations: 4 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.259, allocations: 201.5 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.259, allocations: 7.984 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.2591, allocations: 15.98 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2591, allocations: 0 / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.2591, allocations: 7.938 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2591, allocations: 0 / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2591, allocations: 0 / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003701/0.2595, allocations: 377.8 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.404e-05/0.2596, allocations: 84.95 kB / 1.059 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.2596, allocations: 8 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.2598, allocations: 15.98 kB / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.2599, allocations: 23.95 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.2599, allocations: 11.88 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.24e-05/0.2599, allocations: 118.2 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2599, allocations: 0 / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003093/0.2603, allocations: 16 kB / 1.059 GB, free: 1.824 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.00065/0.2609, allocations: 0.9141 MB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003232/0.2612, allocations: 103.9 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2613, allocations: 3.938 kB / 1.06 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.2614, allocations: 43.97 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.2618, allocations: 17.12 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.2637, allocations: 1.828 MB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.2639, allocations: 0.7002 MB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.501e-05/0.264, allocations: 16.64 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.595e-05/0.2641, allocations: 31.42 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of SimCode: time 1.423e-06/0.2641, allocations: 3.938 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3321/0.5961, allocations: 2.423 MB / 1.065 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/0.5963, allocations: 208.7 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.632, allocations: 0 / 1.065 GB, free: 11.46 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