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: 108 kB / 15.61 MB, free: 152 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.001174/0.001174, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.653/2.653, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 70.5 kB / 0.9083 GB, free: 34.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2698, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.00241/0.2723, allocations: 0.8458 MB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.2735, allocations: 0.8834 MB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.553e-05/0.2736, allocations: 4 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.701e-05/0.2737, allocations: 11.86 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.2738, allocations: 15.81 kB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002238/0.2741, allocations: 43.88 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001522/0.2742, allocations: 111.7 kB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.2744, allocations: 25.11 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.2745, allocations: 51.84 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001071/0.2747, allocations: 59.67 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.54e-05/0.2747, allocations: 12 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.471e-05/0.2747, allocations: 8 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.506e-05/0.2748, allocations: 23.92 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.865e-05/0.2748, allocations: 55.66 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001957/0.275, allocations: 119.8 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2751, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2751, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.815e-06/0.2751, allocations: 0 / 1.066 GB, free: 12.2 MB / 0.8262 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.000806/0.2759, allocations: 442.9 kB / 1.066 GB, free: 11.72 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.2759, allocations: 8.031 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.962e-05/0.276, allocations: 38.75 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.2761, allocations: 12.75 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005592/0.2766, allocations: 252.3 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.2767, allocations: 4.375 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.2767, allocations: 8.375 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.277, allocations: 122.4 kB / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.277, allocations: 0 / 1.067 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.277, allocations: 8 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2771, allocations: 0 / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003257/0.2774, allocations: 79.86 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007062/0.2781, allocations: 0.4893 MB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.2784, allocations: 123.8 kB / 1.067 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.2786, allocations: 54.55 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.2786, allocations: 0 / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.2787, allocations: 46.55 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.2787, allocations: 0 / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.000641/0.2793, allocations: 165.3 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.2794, allocations: 106.8 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.2795, allocations: 144.7 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.2796, allocations: 33.95 kB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/0.2796, allocations: 108.3 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.599e-05/0.2797, allocations: 27.64 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-05/0.2798, allocations: 29.66 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2799, allocations: 326.8 kB / 1.068 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.2801, allocations: 43.95 kB / 1.068 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.2803, allocations: 81.12 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.2806, allocations: 90.44 kB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2806, allocations: 0 / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004131/0.281, allocations: 145.4 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.281, allocations: 4 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2811, allocations: 0 / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2811, allocations: 4 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.2812, allocations: 19.97 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2812, allocations: 0 / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.2814, allocations: 23.98 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.2814, allocations: 4 kB / 1.069 GB, free: 8.895 MB / 0.8262 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.0001126/0.2815, allocations: 121.7 kB / 1.069 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/0.2816, allocations: 7.906 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002953/0.2819, allocations: 89.89 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2819, allocations: 4 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.2819, allocations: 7.984 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.282, allocations: 384 / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003481/0.2823, allocations: 205.5 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2823, allocations: 0 / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.2824, allocations: 19.92 kB / 1.069 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.2825, allocations: 4 kB / 1.069 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.2825, allocations: 7.969 kB / 1.069 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2825, allocations: 3.938 kB / 1.069 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2825, allocations: 4.062 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005117/0.283, allocations: 373.9 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.846e-05/0.2831, allocations: 96.94 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.2831, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.2833, allocations: 23.92 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.852e-05/0.2834, allocations: 23.91 kB / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.2835, allocations: 15.92 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.861e-05/0.2835, allocations: 105.9 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2836, allocations: 0 / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003559/0.2839, allocations: 23.89 kB / 1.07 GB, free: 7.676 MB / 0.8262 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.0008674/0.2848, allocations: 0.8989 MB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004004/0.2852, allocations: 111.8 kB / 1.071 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2852, allocations: 0 / 1.071 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001952/0.2854, allocations: 47.97 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.2859, allocations: 17.03 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.2885, allocations: 1.795 MB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.2888, allocations: 0.7041 MB / 1.073 GB, free: 3.949 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.751e-05/0.2889, allocations: 20.58 kB / 1.073 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.21e-05/0.289, allocations: 35.42 kB / 1.073 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.289, allocations: 0 / 1.073 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/0.3091, allocations: 2.661 MB / 1.076 GB, free: 1.316 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.992/7.301, allocations: 9.812 kB / 1.076 GB, free: 1.309 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 & python3 -m fmpy simulate --output-file Buildings_latest_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_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.csv","/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