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.008476/0.008483, allocations: 103.4 kB / 15.74 MB, free: 6.016 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.002221/0.002221, allocations: 191.9 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.266/2.266, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.348/4.348, allocations: 437.1 MB / 0.7105 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00284/0.00284, allocations: 67.89 kB / 1.018 GB, free: 9.816 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9985/1.001, allocations: 151.6 MB / 1.166 GB, free: 3.742 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.003126/1.005, allocations: 0.852 MB / 1.167 GB, free: 2.895 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001795/1.006, allocations: 0.8803 MB / 1.168 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.128e-05/1.006, allocations: 4 kB / 1.168 GB, free: 2 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 6.511e-05/1.007, allocations: 11.86 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001311/1.007, allocations: 23.73 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002383/1.007, allocations: 39.95 kB / 1.168 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000242/1.007, allocations: 115.7 kB / 1.168 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/1.007, allocations: 25.11 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001644/1.008, allocations: 51.77 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/1.008, allocations: 55.77 kB / 1.168 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/1.008, allocations: 8 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 3.316e-05/1.008, allocations: 12 kB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.391e-05/1.008, allocations: 31.84 kB / 1.168 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.943e-05/1.008, allocations: 47.72 kB / 1.168 GB, free: 1.582 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002363/1.008, allocations: 119.2 kB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/1.008, allocations: 0 / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.973e-06/1.008, allocations: 0 / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.012e-06/1.008, allocations: 0 / 1.168 GB, free: 1.469 MB / 0.8887 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.001047/1.009, allocations: 454.8 kB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/1.009, allocations: 8.922 kB / 1.169 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.55e-05/1.009, allocations: 42.75 kB / 1.169 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.731e-05/1.01, allocations: 12.84 kB / 1.169 GB, free: 0.9023 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007463/1.01, allocations: 264.3 kB / 1.169 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/1.01, allocations: 8.375 kB / 1.169 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/1.01, allocations: 4.375 kB / 1.169 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/1.011, allocations: 122.2 kB / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/1.011, allocations: 0 / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/1.011, allocations: 8 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/1.011, allocations: 0 / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005046/1.011, allocations: 71.92 kB / 1.169 GB, free: 392 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/1.012, allocations: 0.4971 MB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/1.013, allocations: 107.8 kB / 1.17 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/1.013, allocations: 62.59 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/1.013, allocations: 0 / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/1.013, allocations: 38.5 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.704e-06/1.013, allocations: 0 / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.001039/1.014, allocations: 161.6 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/1.015, allocations: 110.8 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/1.015, allocations: 149 kB / 1.17 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/1.015, allocations: 33.69 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/1.015, allocations: 108.3 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.779e-05/1.015, allocations: 27.78 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.734e-05/1.015, allocations: 33.8 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002453/1.015, allocations: 326.8 kB / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/1.016, allocations: 35.97 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003028/1.016, allocations: 81.11 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/1.016, allocations: 98.45 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/1.016, allocations: 0 / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006584/1.017, allocations: 141.7 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/1.017, allocations: 8 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/1.017, allocations: 0 / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/1.017, allocations: 4.031 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/1.017, allocations: 19.98 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/1.018, allocations: 0 / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/1.018, allocations: 23.92 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/1.018, allocations: 3.984 kB / 1.171 GB, free: 14.14 MB / 0.9044 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 0.0001908/1.018, allocations: 129.8 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/1.018, allocations: 15.84 kB / 1.172 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000448/1.019, allocations: 85.89 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/1.019, allocations: 0 / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.639e-05/1.019, allocations: 8.062 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/1.019, allocations: 0 / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006165/1.019, allocations: 197.6 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/1.019, allocations: 0 / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/1.019, allocations: 23.97 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/1.02, allocations: 4 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/1.02, allocations: 7.938 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/1.02, allocations: 3.938 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.02, allocations: 0 / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000807/1.02, allocations: 377.9 kB / 1.172 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/1.021, allocations: 92.95 kB / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/1.021, allocations: 0 / 1.172 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/1.021, allocations: 15.98 kB / 1.172 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001176/1.021, allocations: 27.95 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/1.021, allocations: 3.938 kB / 1.172 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001478/1.021, allocations: 117.5 kB / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.266e-06/1.021, allocations: 0 / 1.172 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0006553/1.022, allocations: 19.94 kB / 1.172 GB, free: 12.93 MB / 0.9044 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.001306/1.023, allocations: 0.8985 MB / 1.173 GB, free: 12 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006112/1.024, allocations: 95.86 kB / 1.173 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/1.024, allocations: 0 / 1.173 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003312/1.024, allocations: 51.91 kB / 1.173 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00087/1.025, allocations: 26.16 kB / 1.173 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004008/1.029, allocations: 1.802 MB / 1.175 GB, free: 9.93 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/1.03, allocations: 0.7041 MB / 1.176 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001457/1.03, allocations: 16.97 kB / 1.176 GB, free: 9.184 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/1.03, allocations: 35.42 kB / 1.176 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of SimCode: time 8.72e-07/1.03, allocations: 0 / 1.176 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03733/1.067, allocations: 2.71 MB / 1.179 GB, free: 6.535 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 12/13.06, allocations: 12.42 kB / 1.179 GB, free: 6.527 MB / 0.9044 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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